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

package lockbox

import (
	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)
)

// A payload.
type Payload struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the version that the payload belongs to.
	VersionId string `protobuf:"bytes,1,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// Payload entries.
	Entries       []*Payload_Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Payload) ProtoMessage() {}

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

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

func (x *Payload) GetEntries() []*Payload_Entry {
	if x != nil {
		return x.Entries
	}
	return nil
}

type Payload_Entry struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Non-confidential key of the entry.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Confidential value of the entry.
	//
	// Types that are valid to be assigned to Value:
	//
	//	*Payload_Entry_TextValue
	//	*Payload_Entry_BinaryValue
	Value         isPayload_Entry_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Payload_Entry) ProtoMessage() {}

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

func (x *Payload_Entry) GetKey() string {
	if x != nil {
		return x.Key
	}
	return ""
}

func (x *Payload_Entry) GetValue() isPayload_Entry_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

func (x *Payload_Entry) GetTextValue() string {
	if x != nil {
		if x, ok := x.Value.(*Payload_Entry_TextValue); ok {
			return x.TextValue
		}
	}
	return ""
}

func (x *Payload_Entry) GetBinaryValue() []byte {
	if x != nil {
		if x, ok := x.Value.(*Payload_Entry_BinaryValue); ok {
			return x.BinaryValue
		}
	}
	return nil
}

type isPayload_Entry_Value interface {
	isPayload_Entry_Value()
}

type Payload_Entry_TextValue struct {
	// Text value.
	TextValue string `protobuf:"bytes,2,opt,name=text_value,json=textValue,proto3,oneof"`
}

type Payload_Entry_BinaryValue struct {
	// Binary value.
	BinaryValue []byte `protobuf:"bytes,3,opt,name=binary_value,json=binaryValue,proto3,oneof"`
}

func (*Payload_Entry_TextValue) isPayload_Entry_Value() {}

func (*Payload_Entry_BinaryValue) isPayload_Entry_Value() {}

var File_yandex_cloud_lockbox_v1_payload_proto protoreflect.FileDescriptor

const file_yandex_cloud_lockbox_v1_payload_proto_rawDesc = "" +
	"\n" +
	"%yandex/cloud/lockbox/v1/payload.proto\x12\x17yandex.cloud.lockbox.v1\"\xd4\x01\n" +
	"\aPayload\x12\x1d\n" +
	"\n" +
	"version_id\x18\x01 \x01(\tR\tversionId\x12@\n" +
	"\aentries\x18\x02 \x03(\v2&.yandex.cloud.lockbox.v1.Payload.EntryR\aentries\x1ah\n" +
	"\x05Entry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x1f\n" +
	"\n" +
	"text_value\x18\x02 \x01(\tH\x00R\ttextValue\x12#\n" +
	"\fbinary_value\x18\x03 \x01(\fH\x00R\vbinaryValueB\a\n" +
	"\x05valueBb\n" +
	"\x1byandex.cloud.api.lockbox.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/lockbox/v1;lockboxb\x06proto3"

var (
	file_yandex_cloud_lockbox_v1_payload_proto_rawDescOnce sync.Once
	file_yandex_cloud_lockbox_v1_payload_proto_rawDescData []byte
)

func file_yandex_cloud_lockbox_v1_payload_proto_rawDescGZIP() []byte {
	file_yandex_cloud_lockbox_v1_payload_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_lockbox_v1_payload_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_lockbox_v1_payload_proto_rawDesc), len(file_yandex_cloud_lockbox_v1_payload_proto_rawDesc)))
	})
	return file_yandex_cloud_lockbox_v1_payload_proto_rawDescData
}

var file_yandex_cloud_lockbox_v1_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_lockbox_v1_payload_proto_goTypes = []any{
	(*Payload)(nil),       // 0: yandex.cloud.lockbox.v1.Payload
	(*Payload_Entry)(nil), // 1: yandex.cloud.lockbox.v1.Payload.Entry
}
var file_yandex_cloud_lockbox_v1_payload_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.lockbox.v1.Payload.entries:type_name -> yandex.cloud.lockbox.v1.Payload.Entry
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_yandex_cloud_lockbox_v1_payload_proto_init() }
func file_yandex_cloud_lockbox_v1_payload_proto_init() {
	if File_yandex_cloud_lockbox_v1_payload_proto != nil {
		return
	}
	file_yandex_cloud_lockbox_v1_payload_proto_msgTypes[1].OneofWrappers = []any{
		(*Payload_Entry_TextValue)(nil),
		(*Payload_Entry_BinaryValue)(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_proto_rawDesc), len(file_yandex_cloud_lockbox_v1_payload_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_lockbox_v1_payload_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_lockbox_v1_payload_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_lockbox_v1_payload_proto_msgTypes,
	}.Build()
	File_yandex_cloud_lockbox_v1_payload_proto = out.File
	file_yandex_cloud_lockbox_v1_payload_proto_goTypes = nil
	file_yandex_cloud_lockbox_v1_payload_proto_depIdxs = nil
}
