// 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/idp/application/oauth/application.proto

package oauth

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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)
)

// Represents the status of an application.
type Status int32

const (
	// The status is not specified.
	Status_STATUS_UNSPECIFIED Status = 0
	// The apllication is in the process of being created.
	Status_CREATING Status = 1
	// The apllication is active and operational.
	Status_ACTIVE Status = 2
	// The apllication is suspended. I.e. authentication via this application is disabled.
	Status_SUSPENDED Status = 3
	// The apllication is in the process of being deleted.
	Status_DELETING Status = 4
)

// Enum value maps for Status.
var (
	Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATING",
		2: "ACTIVE",
		3: "SUSPENDED",
		4: "DELETING",
	}
	Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATING":           1,
		"ACTIVE":             2,
		"SUSPENDED":          3,
		"DELETING":           4,
	}
)

func (x Status) Enum() *Status {
	p := new(Status)
	*p = x
	return p
}

func (x Status) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_enumTypes[0].Descriptor()
}

func (Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_enumTypes[0]
}

func (x Status) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Status.Descriptor instead.
func (Status) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDescGZIP(), []int{0}
}

// Represents distribution type of the groups
type GroupDistributionType int32

const (
	// The distribution type is unspecified
	GroupDistributionType_GROUP_DISTRIBUTION_TYPE_UNSPECIFIED GroupDistributionType = 0
	// No groups are visible for the application users
	GroupDistributionType_NONE GroupDistributionType = 1
	// Only assigned groups are visible for the application users
	GroupDistributionType_ASSIGNED_GROUPS GroupDistributionType = 2
	// All groups are visible for the application users
	GroupDistributionType_ALL_GROUPS GroupDistributionType = 3
)

// Enum value maps for GroupDistributionType.
var (
	GroupDistributionType_name = map[int32]string{
		0: "GROUP_DISTRIBUTION_TYPE_UNSPECIFIED",
		1: "NONE",
		2: "ASSIGNED_GROUPS",
		3: "ALL_GROUPS",
	}
	GroupDistributionType_value = map[string]int32{
		"GROUP_DISTRIBUTION_TYPE_UNSPECIFIED": 0,
		"NONE":                                1,
		"ASSIGNED_GROUPS":                     2,
		"ALL_GROUPS":                          3,
	}
)

func (x GroupDistributionType) Enum() *GroupDistributionType {
	p := new(GroupDistributionType)
	*p = x
	return p
}

func (x GroupDistributionType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (GroupDistributionType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_enumTypes[1].Descriptor()
}

func (GroupDistributionType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_enumTypes[1]
}

func (x GroupDistributionType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use GroupDistributionType.Descriptor instead.
func (GroupDistributionType) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDescGZIP(), []int{1}
}

// An OAuth application resource.
type Application struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the application.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the application.
	// The name is unique within the organization. 3-63 characters long.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// ID of the organization that the application belongs to.
	OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// Description of the application. 0-256 characters long.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Settings of the group claims
	GroupClaimsSettings *GroupClaimsSettings `protobuf:"bytes,5,opt,name=group_claims_settings,json=groupClaimsSettings,proto3" json:"group_claims_settings,omitempty"`
	// Represents current connection to the OAuth client with specified scopes
	ClientGrant *ClientGrant `protobuf:"bytes,6,opt,name=client_grant,json=clientGrant,proto3" json:"client_grant,omitempty"`
	// Current status of the application.
	Status Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.organizationmanager.v1.idp.application.oauth.Status" json:"status,omitempty"`
	// Resource labels as “ key:value “ pairs.
	Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Modification timestamp.
	UpdatedAt     *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Application) ProtoMessage() {}

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

func (x *Application) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *Application) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Application) GetOrganizationId() string {
	if x != nil {
		return x.OrganizationId
	}
	return ""
}

func (x *Application) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *Application) GetGroupClaimsSettings() *GroupClaimsSettings {
	if x != nil {
		return x.GroupClaimsSettings
	}
	return nil
}

func (x *Application) GetClientGrant() *ClientGrant {
	if x != nil {
		return x.ClientGrant
	}
	return nil
}

func (x *Application) GetStatus() Status {
	if x != nil {
		return x.Status
	}
	return Status_STATUS_UNSPECIFIED
}

func (x *Application) GetLabels() map[string]string {
	if x != nil {
		return x.Labels
	}
	return nil
}

func (x *Application) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *Application) GetUpdatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdatedAt
	}
	return nil
}

// Settings of the group claims
type GroupClaimsSettings struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Represents current distribution type of the groups. I.e. which groups are visible for the application users.
	GroupDistributionType GroupDistributionType `protobuf:"varint,1,opt,name=group_distribution_type,json=groupDistributionType,proto3,enum=yandex.cloud.organizationmanager.v1.idp.application.oauth.GroupDistributionType" json:"group_distribution_type,omitempty"`
	unknownFields         protoimpl.UnknownFields
	sizeCache             protoimpl.SizeCache
}

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

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

func (*GroupClaimsSettings) ProtoMessage() {}

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

func (x *GroupClaimsSettings) GetGroupDistributionType() GroupDistributionType {
	if x != nil {
		return x.GroupDistributionType
	}
	return GroupDistributionType_GROUP_DISTRIBUTION_TYPE_UNSPECIFIED
}

// Represents connection to the OAuth client with specified scopes
type ClientGrant struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// OAuth client id
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// List of authorized client scopes by the application
	AuthorizedScopes []string `protobuf:"bytes,2,rep,name=authorized_scopes,json=authorizedScopes,proto3" json:"authorized_scopes,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *ClientGrant) Reset() {
	*x = ClientGrant{}
	mi := &file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ClientGrant) ProtoMessage() {}

func (x *ClientGrant) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_msgTypes[2]
	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 ClientGrant.ProtoReflect.Descriptor instead.
func (*ClientGrant) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDescGZIP(), []int{2}
}

func (x *ClientGrant) GetClientId() string {
	if x != nil {
		return x.ClientId
	}
	return ""
}

func (x *ClientGrant) GetAuthorizedScopes() []string {
	if x != nil {
		return x.AuthorizedScopes
	}
	return nil
}

var File_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto protoreflect.FileDescriptor

const file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDesc = "" +
	"\n" +
	"Kyandex/cloud/organizationmanager/v1/idp/application/oauth/application.proto\x129yandex.cloud.organizationmanager.v1.idp.application.oauth\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xe4\x05\n" +
	"\vApplication\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12'\n" +
	"\x0forganization_id\x18\x03 \x01(\tR\x0eorganizationId\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x82\x01\n" +
	"\x15group_claims_settings\x18\x05 \x01(\v2N.yandex.cloud.organizationmanager.v1.idp.application.oauth.GroupClaimsSettingsR\x13groupClaimsSettings\x12i\n" +
	"\fclient_grant\x18\x06 \x01(\v2F.yandex.cloud.organizationmanager.v1.idp.application.oauth.ClientGrantR\vclientGrant\x12Y\n" +
	"\x06status\x18\a \x01(\x0e2A.yandex.cloud.organizationmanager.v1.idp.application.oauth.StatusR\x06status\x12j\n" +
	"\x06labels\x18\b \x03(\v2R.yandex.cloud.organizationmanager.v1.idp.application.oauth.Application.LabelsEntryR\x06labels\x129\n" +
	"\n" +
	"created_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18\n" +
	" \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xa0\x01\n" +
	"\x13GroupClaimsSettings\x12\x88\x01\n" +
	"\x17group_distribution_type\x18\x01 \x01(\x0e2P.yandex.cloud.organizationmanager.v1.idp.application.oauth.GroupDistributionTypeR\x15groupDistributionType\"z\n" +
	"\vClientGrant\x12)\n" +
	"\tclient_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\bclientId\x12@\n" +
	"\x11authorized_scopes\x18\x02 \x03(\tB\x13\x82\xc81\x061-1000\x8a\xc81\x05<=255R\x10authorizedScopes*W\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bCREATING\x10\x01\x12\n" +
	"\n" +
	"\x06ACTIVE\x10\x02\x12\r\n" +
	"\tSUSPENDED\x10\x03\x12\f\n" +
	"\bDELETING\x10\x04*o\n" +
	"\x15GroupDistributionType\x12'\n" +
	"#GROUP_DISTRIBUTION_TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
	"\x04NONE\x10\x01\x12\x13\n" +
	"\x0fASSIGNED_GROUPS\x10\x02\x12\x0e\n" +
	"\n" +
	"ALL_GROUPS\x10\x03B\xa4\x01\n" +
	"=yandex.cloud.api.organizationmanager.v1.idp.application.oauthZcgithub.com/yandex-cloud/go-genproto/yandex/cloud/organizationmanager/v1/idp/application/oauth;oauthb\x06proto3"

var (
	file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDescOnce sync.Once
	file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDescData []byte
)

func file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDescGZIP() []byte {
	file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDesc), len(file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDesc)))
	})
	return file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDescData
}

var file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_goTypes = []any{
	(Status)(0),                   // 0: yandex.cloud.organizationmanager.v1.idp.application.oauth.Status
	(GroupDistributionType)(0),    // 1: yandex.cloud.organizationmanager.v1.idp.application.oauth.GroupDistributionType
	(*Application)(nil),           // 2: yandex.cloud.organizationmanager.v1.idp.application.oauth.Application
	(*GroupClaimsSettings)(nil),   // 3: yandex.cloud.organizationmanager.v1.idp.application.oauth.GroupClaimsSettings
	(*ClientGrant)(nil),           // 4: yandex.cloud.organizationmanager.v1.idp.application.oauth.ClientGrant
	nil,                           // 5: yandex.cloud.organizationmanager.v1.idp.application.oauth.Application.LabelsEntry
	(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
}
var file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.organizationmanager.v1.idp.application.oauth.Application.group_claims_settings:type_name -> yandex.cloud.organizationmanager.v1.idp.application.oauth.GroupClaimsSettings
	4, // 1: yandex.cloud.organizationmanager.v1.idp.application.oauth.Application.client_grant:type_name -> yandex.cloud.organizationmanager.v1.idp.application.oauth.ClientGrant
	0, // 2: yandex.cloud.organizationmanager.v1.idp.application.oauth.Application.status:type_name -> yandex.cloud.organizationmanager.v1.idp.application.oauth.Status
	5, // 3: yandex.cloud.organizationmanager.v1.idp.application.oauth.Application.labels:type_name -> yandex.cloud.organizationmanager.v1.idp.application.oauth.Application.LabelsEntry
	6, // 4: yandex.cloud.organizationmanager.v1.idp.application.oauth.Application.created_at:type_name -> google.protobuf.Timestamp
	6, // 5: yandex.cloud.organizationmanager.v1.idp.application.oauth.Application.updated_at:type_name -> google.protobuf.Timestamp
	1, // 6: yandex.cloud.organizationmanager.v1.idp.application.oauth.GroupClaimsSettings.group_distribution_type:type_name -> yandex.cloud.organizationmanager.v1.idp.application.oauth.GroupDistributionType
	7, // [7:7] is the sub-list for method output_type
	7, // [7:7] is the sub-list for method input_type
	7, // [7:7] is the sub-list for extension type_name
	7, // [7:7] is the sub-list for extension extendee
	0, // [0:7] is the sub-list for field type_name
}

func init() { file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_init() }
func file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_init() {
	if File_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_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_idp_application_oauth_application_proto_rawDesc), len(file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_msgTypes,
	}.Build()
	File_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto = out.File
	file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_goTypes = nil
	file_yandex_cloud_organizationmanager_v1_idp_application_oauth_application_proto_depIdxs = nil
}
