// 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/user_service.proto

package organizationmanager

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud/api"
	oauth "github.com/yandex-cloud/go-genproto/yandex/cloud/oauth"
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	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 ListMembersRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the Organization resource to list members for.
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size], the service returns a [ListMembersResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	// Acceptable values are 0 to 1000, inclusive. Default value: 100.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. Set [page_token]
	// to the [ListMembersResponse.next_page_token]
	// returned by a previous list request to get the next page of results.
	PageToken     string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListMembersRequest) ProtoMessage() {}

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

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

func (x *ListMembersRequest) GetPageSize() int64 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListMembersRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

type ListMembersResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of users for the specified organization.
	Users []*ListMembersResponse_OrganizationUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListMembersRequest.page_size], use the [next_page_token] as the value
	// for the [ListMembersRequest.page_token] query parameter in the next list request.
	// Each subsequent list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListMembersResponse) ProtoMessage() {}

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

func (x *ListMembersResponse) GetUsers() []*ListMembersResponse_OrganizationUser {
	if x != nil {
		return x.Users
	}
	return nil
}

func (x *ListMembersResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

type DeleteMembershipRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the organization to delete membership.
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// ID of the subject that is being deleted from organization.
	// By default equals to authenticated subject.
	SubjectId     string `protobuf:"bytes,2,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteMembershipRequest) ProtoMessage() {}

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

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

func (x *DeleteMembershipRequest) GetSubjectId() string {
	if x != nil {
		return x.SubjectId
	}
	return ""
}

type DeleteMembershipMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the organization to delete membership.
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// ID of the subject that is being deleted from organization.
	SubjectId     string `protobuf:"bytes,2,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteMembershipMetadata) Reset() {
	*x = DeleteMembershipMetadata{}
	mi := &file_yandex_cloud_organizationmanager_v1_user_service_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DeleteMembershipMetadata) ProtoMessage() {}

func (x *DeleteMembershipMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_organizationmanager_v1_user_service_proto_msgTypes[3]
	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 DeleteMembershipMetadata.ProtoReflect.Descriptor instead.
func (*DeleteMembershipMetadata) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDescGZIP(), []int{3}
}

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

func (x *DeleteMembershipMetadata) GetSubjectId() string {
	if x != nil {
		return x.SubjectId
	}
	return ""
}

type DeleteMembershipResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the organization to delete membership.
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// ID of the subject that is being deleted from organization.
	SubjectId     string `protobuf:"bytes,2,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteMembershipResponse) Reset() {
	*x = DeleteMembershipResponse{}
	mi := &file_yandex_cloud_organizationmanager_v1_user_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DeleteMembershipResponse) ProtoMessage() {}

func (x *DeleteMembershipResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_organizationmanager_v1_user_service_proto_msgTypes[4]
	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 DeleteMembershipResponse.ProtoReflect.Descriptor instead.
func (*DeleteMembershipResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDescGZIP(), []int{4}
}

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

func (x *DeleteMembershipResponse) GetSubjectId() string {
	if x != nil {
		return x.SubjectId
	}
	return ""
}

type ListMembersResponse_OrganizationUser struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// OpenID standard claims with additional Cloud Organization claims.
	SubjectClaims *oauth.SubjectClaims `protobuf:"bytes,1,opt,name=subject_claims,json=subjectClaims,proto3" json:"subject_claims,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListMembersResponse_OrganizationUser) Reset() {
	*x = ListMembersResponse_OrganizationUser{}
	mi := &file_yandex_cloud_organizationmanager_v1_user_service_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListMembersResponse_OrganizationUser) ProtoMessage() {}

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

func (x *ListMembersResponse_OrganizationUser) GetSubjectClaims() *oauth.SubjectClaims {
	if x != nil {
		return x.SubjectClaims
	}
	return nil
}

var File_yandex_cloud_organizationmanager_v1_user_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDesc = "" +
	"\n" +
	"6yandex/cloud/organizationmanager/v1/user_service.proto\x12#yandex.cloud.organizationmanager.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a\x1fyandex/cloud/oauth/claims.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"\x9f\x01\n" +
	"\x12ListMembersRequest\x125\n" +
	"\x0forganization_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x0eorganizationId\x12'\n" +
	"\tpage_size\x18\x02 \x01(\x03B\n" +
	"\xfa\xc71\x060-1000R\bpageSize\x12)\n" +
	"\n" +
	"page_token\x18\x03 \x01(\tB\n" +
	"\x8a\xc81\x06<=2000R\tpageToken\"\xfc\x01\n" +
	"\x13ListMembersResponse\x12_\n" +
	"\x05users\x18\x01 \x03(\v2I.yandex.cloud.organizationmanager.v1.ListMembersResponse.OrganizationUserR\x05users\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\x1a\\\n" +
	"\x10OrganizationUser\x12H\n" +
	"\x0esubject_claims\x18\x01 \x01(\v2!.yandex.cloud.oauth.SubjectClaimsR\rsubjectClaims\"y\n" +
	"\x17DeleteMembershipRequest\x125\n" +
	"\x0forganization_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x0eorganizationId\x12'\n" +
	"\n" +
	"subject_id\x18\x02 \x01(\tB\b\x8a\xc81\x04<=50R\tsubjectId\"~\n" +
	"\x18DeleteMembershipMetadata\x125\n" +
	"\x0forganization_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x0eorganizationId\x12+\n" +
	"\n" +
	"subject_id\x18\x02 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\tsubjectId\"~\n" +
	"\x18DeleteMembershipResponse\x125\n" +
	"\x0forganization_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x0eorganizationId\x12+\n" +
	"\n" +
	"subject_id\x18\x02 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\tsubjectId2\xdc\x03\n" +
	"\vUserService\x12\xc8\x01\n" +
	"\vListMembers\x127.yandex.cloud.organizationmanager.v1.ListMembersRequest\x1a8.yandex.cloud.organizationmanager.v1.ListMembersResponse\"F\x82\xd3\xe4\x93\x02@\x12>/organization-manager/v1/organizations/{organization_id}/users\x12\x81\x02\n" +
	"\x10DeleteMembership\x12<.yandex.cloud.organizationmanager.v1.DeleteMembershipRequest\x1a!.yandex.cloud.operation.Operation\"\x8b\x01\xb2\xd2*4\n" +
	"\x18DeleteMembershipMetadata\x12\x18DeleteMembershipResponse\x82\xd3\xe4\x93\x02M*K/organization-manager/v1/organizations/{organization_id}/users/{subject_id}B\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_user_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDescData []byte
)

func file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDesc), len(file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDesc)))
	})
	return file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDescData
}

var file_yandex_cloud_organizationmanager_v1_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_yandex_cloud_organizationmanager_v1_user_service_proto_goTypes = []any{
	(*ListMembersRequest)(nil),                   // 0: yandex.cloud.organizationmanager.v1.ListMembersRequest
	(*ListMembersResponse)(nil),                  // 1: yandex.cloud.organizationmanager.v1.ListMembersResponse
	(*DeleteMembershipRequest)(nil),              // 2: yandex.cloud.organizationmanager.v1.DeleteMembershipRequest
	(*DeleteMembershipMetadata)(nil),             // 3: yandex.cloud.organizationmanager.v1.DeleteMembershipMetadata
	(*DeleteMembershipResponse)(nil),             // 4: yandex.cloud.organizationmanager.v1.DeleteMembershipResponse
	(*ListMembersResponse_OrganizationUser)(nil), // 5: yandex.cloud.organizationmanager.v1.ListMembersResponse.OrganizationUser
	(*oauth.SubjectClaims)(nil),                  // 6: yandex.cloud.oauth.SubjectClaims
	(*operation.Operation)(nil),                  // 7: yandex.cloud.operation.Operation
}
var file_yandex_cloud_organizationmanager_v1_user_service_proto_depIdxs = []int32{
	5, // 0: yandex.cloud.organizationmanager.v1.ListMembersResponse.users:type_name -> yandex.cloud.organizationmanager.v1.ListMembersResponse.OrganizationUser
	6, // 1: yandex.cloud.organizationmanager.v1.ListMembersResponse.OrganizationUser.subject_claims:type_name -> yandex.cloud.oauth.SubjectClaims
	0, // 2: yandex.cloud.organizationmanager.v1.UserService.ListMembers:input_type -> yandex.cloud.organizationmanager.v1.ListMembersRequest
	2, // 3: yandex.cloud.organizationmanager.v1.UserService.DeleteMembership:input_type -> yandex.cloud.organizationmanager.v1.DeleteMembershipRequest
	1, // 4: yandex.cloud.organizationmanager.v1.UserService.ListMembers:output_type -> yandex.cloud.organizationmanager.v1.ListMembersResponse
	7, // 5: yandex.cloud.organizationmanager.v1.UserService.DeleteMembership:output_type -> yandex.cloud.operation.Operation
	4, // [4:6] is the sub-list for method output_type
	2, // [2:4] 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_yandex_cloud_organizationmanager_v1_user_service_proto_init() }
func file_yandex_cloud_organizationmanager_v1_user_service_proto_init() {
	if File_yandex_cloud_organizationmanager_v1_user_service_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_user_service_proto_rawDesc), len(file_yandex_cloud_organizationmanager_v1_user_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_organizationmanager_v1_user_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_organizationmanager_v1_user_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_organizationmanager_v1_user_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_organizationmanager_v1_user_service_proto = out.File
	file_yandex_cloud_organizationmanager_v1_user_service_proto_goTypes = nil
	file_yandex_cloud_organizationmanager_v1_user_service_proto_depIdxs = nil
}
