// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/organizationmanager/v1/group_mapping.proto

package organizationmanager

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	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)
)

// Group mapping represents which external (federated) groups should match which internal (cloud) groups
type GroupMappingItem struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// External group id (received from identity provider)
	ExternalGroupId string `protobuf:"bytes,1,opt,name=external_group_id,json=externalGroupId,proto3" json:"external_group_id,omitempty"`
	// Internal cloud group id
	InternalGroupId string `protobuf:"bytes,2,opt,name=internal_group_id,json=internalGroupId,proto3" json:"internal_group_id,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*GroupMappingItem) ProtoMessage() {}

func (x *GroupMappingItem) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_organizationmanager_v1_group_mapping_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 GroupMappingItem.ProtoReflect.Descriptor instead.
func (*GroupMappingItem) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDescGZIP(), []int{0}
}

func (x *GroupMappingItem) GetExternalGroupId() string {
	if x != nil {
		return x.ExternalGroupId
	}
	return ""
}

func (x *GroupMappingItem) GetInternalGroupId() string {
	if x != nil {
		return x.InternalGroupId
	}
	return ""
}

// Group synchronization status for a specific federation
// Absence of this object for a federation means that there is no group synchronization set of for the federation.
type GroupMapping struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Federation id
	FederationId string `protobuf:"bytes,1,opt,name=federation_id,json=federationId,proto3" json:"federation_id,omitempty"`
	// Flag to show whether group synchronization should be enabled for this federation.
	Enabled       bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GroupMapping) ProtoMessage() {}

func (x *GroupMapping) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_organizationmanager_v1_group_mapping_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 GroupMapping.ProtoReflect.Descriptor instead.
func (*GroupMapping) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDescGZIP(), []int{1}
}

func (x *GroupMapping) GetFederationId() string {
	if x != nil {
		return x.FederationId
	}
	return ""
}

func (x *GroupMapping) GetEnabled() bool {
	if x != nil {
		return x.Enabled
	}
	return false
}

var File_yandex_cloud_organizationmanager_v1_group_mapping_proto protoreflect.FileDescriptor

const file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDesc = "" +
	"\n" +
	"7yandex/cloud/organizationmanager/v1/group_mapping.proto\x12#yandex.cloud.organizationmanager.v1\x1a\x1dyandex/cloud/validation.proto\"\x88\x01\n" +
	"\x10GroupMappingItem\x12:\n" +
	"\x11external_group_id\x18\x01 \x01(\tB\x0e\xe8\xc71\x01\x8a\xc81\x06<=1000R\x0fexternalGroupId\x128\n" +
	"\x11internal_group_id\x18\x02 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x0finternalGroupId\"M\n" +
	"\fGroupMapping\x12#\n" +
	"\rfederation_id\x18\x01 \x01(\tR\ffederationId\x12\x18\n" +
	"\aenabled\x18\x02 \x01(\bR\aenabledB\x86\x01\n" +
	"'yandex.cloud.api.organizationmanager.v1Z[github.com/yandex-cloud/go-genproto/yandex/cloud/organizationmanager/v1;organizationmanagerb\x06proto3"

var (
	file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDescOnce sync.Once
	file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDescData []byte
)

func file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDescGZIP() []byte {
	file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDesc), len(file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDesc)))
	})
	return file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDescData
}

var file_yandex_cloud_organizationmanager_v1_group_mapping_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_organizationmanager_v1_group_mapping_proto_goTypes = []any{
	(*GroupMappingItem)(nil), // 0: yandex.cloud.organizationmanager.v1.GroupMappingItem
	(*GroupMapping)(nil),     // 1: yandex.cloud.organizationmanager.v1.GroupMapping
}
var file_yandex_cloud_organizationmanager_v1_group_mapping_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_yandex_cloud_organizationmanager_v1_group_mapping_proto_init() }
func file_yandex_cloud_organizationmanager_v1_group_mapping_proto_init() {
	if File_yandex_cloud_organizationmanager_v1_group_mapping_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDesc), len(file_yandex_cloud_organizationmanager_v1_group_mapping_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_organizationmanager_v1_group_mapping_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_organizationmanager_v1_group_mapping_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_organizationmanager_v1_group_mapping_proto_msgTypes,
	}.Build()
	File_yandex_cloud_organizationmanager_v1_group_mapping_proto = out.File
	file_yandex_cloud_organizationmanager_v1_group_mapping_proto_goTypes = nil
	file_yandex_cloud_organizationmanager_v1_group_mapping_proto_depIdxs = nil
}
