// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/lockbox/v1/payload_service.proto

package lockbox

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "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 GetPayloadRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the secret.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// Optional ID of the version.
	VersionId     string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetPayloadRequest) ProtoMessage() {}

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

func (x *GetPayloadRequest) GetSecretId() string {
	if x != nil {
		return x.SecretId
	}
	return ""
}

func (x *GetPayloadRequest) GetVersionId() string {
	if x != nil {
		return x.VersionId
	}
	return ""
}

type GetExRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Identifier:
	//
	//	*GetExRequest_SecretId
	//	*GetExRequest_FolderAndName
	Identifier    isGetExRequest_Identifier `protobuf_oneof:"identifier"`
	VersionId     string                    `protobuf:"bytes,21,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetExRequest) ProtoMessage() {}

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

func (x *GetExRequest) GetIdentifier() isGetExRequest_Identifier {
	if x != nil {
		return x.Identifier
	}
	return nil
}

func (x *GetExRequest) GetSecretId() string {
	if x != nil {
		if x, ok := x.Identifier.(*GetExRequest_SecretId); ok {
			return x.SecretId
		}
	}
	return ""
}

func (x *GetExRequest) GetFolderAndName() *FolderAndName {
	if x != nil {
		if x, ok := x.Identifier.(*GetExRequest_FolderAndName); ok {
			return x.FolderAndName
		}
	}
	return nil
}

func (x *GetExRequest) GetVersionId() string {
	if x != nil {
		return x.VersionId
	}
	return ""
}

type isGetExRequest_Identifier interface {
	isGetExRequest_Identifier()
}

type GetExRequest_SecretId struct {
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3,oneof"`
}

type GetExRequest_FolderAndName struct {
	FolderAndName *FolderAndName `protobuf:"bytes,2,opt,name=folder_and_name,json=folderAndName,proto3,oneof"`
}

func (*GetExRequest_SecretId) isGetExRequest_Identifier() {}

func (*GetExRequest_FolderAndName) isGetExRequest_Identifier() {}

type FolderAndName struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	FolderId      string                 `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	SecretName    string                 `protobuf:"bytes,2,opt,name=secret_name,json=secretName,proto3" json:"secret_name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*FolderAndName) ProtoMessage() {}

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

func (x *FolderAndName) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

func (x *FolderAndName) GetSecretName() string {
	if x != nil {
		return x.SecretName
	}
	return ""
}

type GetExResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	SecretId      string                 `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	VersionId     string                 `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	Entries       map[string][]byte      `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetExResponse) ProtoMessage() {}

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

func (x *GetExResponse) GetSecretId() string {
	if x != nil {
		return x.SecretId
	}
	return ""
}

func (x *GetExResponse) GetVersionId() string {
	if x != nil {
		return x.VersionId
	}
	return ""
}

func (x *GetExResponse) GetEntries() map[string][]byte {
	if x != nil {
		return x.Entries
	}
	return nil
}

var File_yandex_cloud_lockbox_v1_payload_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_lockbox_v1_payload_service_proto_rawDesc = "" +
	"\n" +
	"-yandex/cloud/lockbox/v1/payload_service.proto\x12\x17yandex.cloud.lockbox.v1\x1a\x1cgoogle/api/annotations.proto\x1a%yandex/cloud/lockbox/v1/payload.proto\x1a\x1dyandex/cloud/validation.proto\"g\n" +
	"\x11GetPayloadRequest\x12)\n" +
	"\tsecret_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\bsecretId\x12'\n" +
	"\n" +
	"version_id\x18\x02 \x01(\tB\b\x8a\xc81\x04<=50R\tversionId\"\xcc\x01\n" +
	"\fGetExRequest\x12'\n" +
	"\tsecret_id\x18\x01 \x01(\tB\b\x8a\xc81\x04<=50H\x00R\bsecretId\x12P\n" +
	"\x0ffolder_and_name\x18\x02 \x01(\v2&.yandex.cloud.lockbox.v1.FolderAndNameH\x00R\rfolderAndName\x12'\n" +
	"\n" +
	"version_id\x18\x15 \x01(\tB\b\x8a\xc81\x04<=50R\tversionIdB\x12\n" +
	"\n" +
	"identifier\x12\x04\xc0\xc11\x01J\x04\b\x03\x10\x15\"j\n" +
	"\rFolderAndName\x12)\n" +
	"\tfolder_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\bfolderId\x12.\n" +
	"\vsecret_name\x18\x02 \x01(\tB\r\xe8\xc71\x01\x8a\xc81\x05<=100R\n" +
	"secretName\"\xd6\x01\n" +
	"\rGetExResponse\x12\x1b\n" +
	"\tsecret_id\x18\x01 \x01(\tR\bsecretId\x12\x1d\n" +
	"\n" +
	"version_id\x18\x02 \x01(\tR\tversionId\x12M\n" +
	"\aentries\x18\x03 \x03(\v23.yandex.cloud.lockbox.v1.GetExResponse.EntriesEntryR\aentries\x1a:\n" +
	"\fEntriesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\fR\x05value:\x028\x012\x92\x02\n" +
	"\x0ePayloadService\x12\x84\x01\n" +
	"\x03Get\x12*.yandex.cloud.lockbox.v1.GetPayloadRequest\x1a .yandex.cloud.lockbox.v1.Payload\"/\x82\xd3\xe4\x93\x02)\x12'/lockbox/v1/secrets/{secret_id}/payload\x12y\n" +
	"\x05GetEx\x12%.yandex.cloud.lockbox.v1.GetExRequest\x1a&.yandex.cloud.lockbox.v1.GetExResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/lockbox/v1/secrets:getExBb\n" +
	"\x1byandex.cloud.api.lockbox.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/lockbox/v1;lockboxb\x06proto3"

var (
	file_yandex_cloud_lockbox_v1_payload_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_lockbox_v1_payload_service_proto_rawDescData []byte
)

func file_yandex_cloud_lockbox_v1_payload_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_lockbox_v1_payload_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_lockbox_v1_payload_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_lockbox_v1_payload_service_proto_rawDesc), len(file_yandex_cloud_lockbox_v1_payload_service_proto_rawDesc)))
	})
	return file_yandex_cloud_lockbox_v1_payload_service_proto_rawDescData
}

var file_yandex_cloud_lockbox_v1_payload_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_lockbox_v1_payload_service_proto_goTypes = []any{
	(*GetPayloadRequest)(nil), // 0: yandex.cloud.lockbox.v1.GetPayloadRequest
	(*GetExRequest)(nil),      // 1: yandex.cloud.lockbox.v1.GetExRequest
	(*FolderAndName)(nil),     // 2: yandex.cloud.lockbox.v1.FolderAndName
	(*GetExResponse)(nil),     // 3: yandex.cloud.lockbox.v1.GetExResponse
	nil,                       // 4: yandex.cloud.lockbox.v1.GetExResponse.EntriesEntry
	(*Payload)(nil),           // 5: yandex.cloud.lockbox.v1.Payload
}
var file_yandex_cloud_lockbox_v1_payload_service_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.lockbox.v1.GetExRequest.folder_and_name:type_name -> yandex.cloud.lockbox.v1.FolderAndName
	4, // 1: yandex.cloud.lockbox.v1.GetExResponse.entries:type_name -> yandex.cloud.lockbox.v1.GetExResponse.EntriesEntry
	0, // 2: yandex.cloud.lockbox.v1.PayloadService.Get:input_type -> yandex.cloud.lockbox.v1.GetPayloadRequest
	1, // 3: yandex.cloud.lockbox.v1.PayloadService.GetEx:input_type -> yandex.cloud.lockbox.v1.GetExRequest
	5, // 4: yandex.cloud.lockbox.v1.PayloadService.Get:output_type -> yandex.cloud.lockbox.v1.Payload
	3, // 5: yandex.cloud.lockbox.v1.PayloadService.GetEx:output_type -> yandex.cloud.lockbox.v1.GetExResponse
	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_lockbox_v1_payload_service_proto_init() }
func file_yandex_cloud_lockbox_v1_payload_service_proto_init() {
	if File_yandex_cloud_lockbox_v1_payload_service_proto != nil {
		return
	}
	file_yandex_cloud_lockbox_v1_payload_proto_init()
	file_yandex_cloud_lockbox_v1_payload_service_proto_msgTypes[1].OneofWrappers = []any{
		(*GetExRequest_SecretId)(nil),
		(*GetExRequest_FolderAndName)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_lockbox_v1_payload_service_proto_rawDesc), len(file_yandex_cloud_lockbox_v1_payload_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_lockbox_v1_payload_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_lockbox_v1_payload_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_lockbox_v1_payload_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_lockbox_v1_payload_service_proto = out.File
	file_yandex_cloud_lockbox_v1_payload_service_proto_goTypes = nil
	file_yandex_cloud_lockbox_v1_payload_service_proto_depIdxs = nil
}
