// Copyright IBM Corp. 2020, 2026
// SPDX-License-Identifier: BUSL-1.1

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: controller/storage/iam/store/v1/group_member.proto

package store

import (
	timestamp "github.com/hashicorp/boundary/internal/db/timestamp"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type GroupMemberUser struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// group_id is the group of this member.
	// @inject_tag: gorm:"primary_key"
	GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" gorm:"primary_key"`
	// member_id is the public_id of the user (which is the member)
	// @inject_tag: gorm:"primary_key"
	MemberId      string `protobuf:"bytes,3,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty" gorm:"primary_key"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GroupMemberUser) Reset() {
	*x = GroupMemberUser{}
	mi := &file_controller_storage_iam_store_v1_group_member_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GroupMemberUser) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GroupMemberUser) ProtoMessage() {}

func (x *GroupMemberUser) ProtoReflect() protoreflect.Message {
	mi := &file_controller_storage_iam_store_v1_group_member_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GroupMemberUser.ProtoReflect.Descriptor instead.
func (*GroupMemberUser) Descriptor() ([]byte, []int) {
	return file_controller_storage_iam_store_v1_group_member_proto_rawDescGZIP(), []int{0}
}

func (x *GroupMemberUser) GetCreateTime() *timestamp.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *GroupMemberUser) GetGroupId() string {
	if x != nil {
		return x.GroupId
	}
	return ""
}

func (x *GroupMemberUser) GetMemberId() string {
	if x != nil {
		return x.MemberId
	}
	return ""
}

type GroupMemberView struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	// group_id is the group of this member.
	// @inject_tag: gorm:"primary_key"
	GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" gorm:"primary_key"`
	// member_id is the public_id of member
	// @inject_tag: gorm:"primary_key"
	MemberId string `protobuf:"bytes,3,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty" gorm:"primary_key"`
	// Principal type (User or Group)
	Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// member_scope_id of the member
	// @inject_tag: `gorm:"default:null"`
	MemberScopeId string `protobuf:"bytes,5,opt,name=member_scope_id,json=memberScopeId,proto3" json:"member_scope_id,omitempty" gorm:"default:null"`
	// group_scope_id of the role
	// @inject_tag: `gorm:"default:null"`
	GroupScopeId string `protobuf:"bytes,6,opt,name=group_scope_id,json=groupScopeId,proto3" json:"group_scope_id,omitempty" gorm:"default:null"`
	// scoped_member_id of the member
	// @inject_tag: `gorm:"default:null"`
	ScopedMemberId string `protobuf:"bytes,7,opt,name=scoped_member_id,json=scopedMemberId,proto3" json:"scoped_member_id,omitempty" gorm:"default:null"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *GroupMemberView) Reset() {
	*x = GroupMemberView{}
	mi := &file_controller_storage_iam_store_v1_group_member_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GroupMemberView) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GroupMemberView) ProtoMessage() {}

func (x *GroupMemberView) ProtoReflect() protoreflect.Message {
	mi := &file_controller_storage_iam_store_v1_group_member_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GroupMemberView.ProtoReflect.Descriptor instead.
func (*GroupMemberView) Descriptor() ([]byte, []int) {
	return file_controller_storage_iam_store_v1_group_member_proto_rawDescGZIP(), []int{1}
}

func (x *GroupMemberView) GetCreateTime() *timestamp.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *GroupMemberView) GetGroupId() string {
	if x != nil {
		return x.GroupId
	}
	return ""
}

func (x *GroupMemberView) GetMemberId() string {
	if x != nil {
		return x.MemberId
	}
	return ""
}

func (x *GroupMemberView) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *GroupMemberView) GetMemberScopeId() string {
	if x != nil {
		return x.MemberScopeId
	}
	return ""
}

func (x *GroupMemberView) GetGroupScopeId() string {
	if x != nil {
		return x.GroupScopeId
	}
	return ""
}

func (x *GroupMemberView) GetScopedMemberId() string {
	if x != nil {
		return x.ScopedMemberId
	}
	return ""
}

var File_controller_storage_iam_store_v1_group_member_proto protoreflect.FileDescriptor

const file_controller_storage_iam_store_v1_group_member_proto_rawDesc = "" +
	"\n" +
	"2controller/storage/iam/store/v1/group_member.proto\x12\x1fcontroller.storage.iam.store.v1\x1a/controller/storage/timestamp/v1/timestamp.proto\"\x96\x01\n" +
	"\x0fGroupMemberUser\x12K\n" +
	"\vcreate_time\x18\x01 \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
	"createTime\x12\x19\n" +
	"\bgroup_id\x18\x02 \x01(\tR\agroupId\x12\x1b\n" +
	"\tmember_id\x18\x03 \x01(\tR\bmemberId\"\xa2\x02\n" +
	"\x0fGroupMemberView\x12K\n" +
	"\vcreate_time\x18\x01 \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
	"createTime\x12\x19\n" +
	"\bgroup_id\x18\x02 \x01(\tR\agroupId\x12\x1b\n" +
	"\tmember_id\x18\x03 \x01(\tR\bmemberId\x12\x12\n" +
	"\x04type\x18\x04 \x01(\tR\x04type\x12&\n" +
	"\x0fmember_scope_id\x18\x05 \x01(\tR\rmemberScopeId\x12$\n" +
	"\x0egroup_scope_id\x18\x06 \x01(\tR\fgroupScopeId\x12(\n" +
	"\x10scoped_member_id\x18\a \x01(\tR\x0escopedMemberIdB8Z6github.com/hashicorp/boundary/internal/iam/store;storeb\x06proto3"

var (
	file_controller_storage_iam_store_v1_group_member_proto_rawDescOnce sync.Once
	file_controller_storage_iam_store_v1_group_member_proto_rawDescData []byte
)

func file_controller_storage_iam_store_v1_group_member_proto_rawDescGZIP() []byte {
	file_controller_storage_iam_store_v1_group_member_proto_rawDescOnce.Do(func() {
		file_controller_storage_iam_store_v1_group_member_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_storage_iam_store_v1_group_member_proto_rawDesc), len(file_controller_storage_iam_store_v1_group_member_proto_rawDesc)))
	})
	return file_controller_storage_iam_store_v1_group_member_proto_rawDescData
}

var file_controller_storage_iam_store_v1_group_member_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_storage_iam_store_v1_group_member_proto_goTypes = []any{
	(*GroupMemberUser)(nil),     // 0: controller.storage.iam.store.v1.GroupMemberUser
	(*GroupMemberView)(nil),     // 1: controller.storage.iam.store.v1.GroupMemberView
	(*timestamp.Timestamp)(nil), // 2: controller.storage.timestamp.v1.Timestamp
}
var file_controller_storage_iam_store_v1_group_member_proto_depIdxs = []int32{
	2, // 0: controller.storage.iam.store.v1.GroupMemberUser.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
	2, // 1: controller.storage.iam.store.v1.GroupMemberView.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_controller_storage_iam_store_v1_group_member_proto_init() }
func file_controller_storage_iam_store_v1_group_member_proto_init() {
	if File_controller_storage_iam_store_v1_group_member_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_storage_iam_store_v1_group_member_proto_rawDesc), len(file_controller_storage_iam_store_v1_group_member_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_controller_storage_iam_store_v1_group_member_proto_goTypes,
		DependencyIndexes: file_controller_storage_iam_store_v1_group_member_proto_depIdxs,
		MessageInfos:      file_controller_storage_iam_store_v1_group_member_proto_msgTypes,
	}.Build()
	File_controller_storage_iam_store_v1_group_member_proto = out.File
	file_controller_storage_iam_store_v1_group_member_proto_goTypes = nil
	file_controller_storage_iam_store_v1_group_member_proto_depIdxs = nil
}
