341 lines
8.9 KiB
Go
341 lines
8.9 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.26.0
|
|
// protoc v5.28.3
|
|
// source: test.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
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 Item1 struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Key1 string `protobuf:"bytes,1,opt,name=key1,proto3" json:"key1,omitempty"`
|
|
}
|
|
|
|
func (x *Item1) Reset() {
|
|
*x = Item1{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_test_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Item1) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Item1) ProtoMessage() {}
|
|
|
|
func (x *Item1) ProtoReflect() protoreflect.Message {
|
|
mi := &file_test_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Item1.ProtoReflect.Descriptor instead.
|
|
func (*Item1) Descriptor() ([]byte, []int) {
|
|
return file_test_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Item1) GetKey1() string {
|
|
if x != nil {
|
|
return x.Key1
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Message1 struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Items []*Item1 `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
}
|
|
|
|
func (x *Message1) Reset() {
|
|
*x = Message1{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_test_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Message1) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Message1) ProtoMessage() {}
|
|
|
|
func (x *Message1) ProtoReflect() protoreflect.Message {
|
|
mi := &file_test_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Message1.ProtoReflect.Descriptor instead.
|
|
func (*Message1) Descriptor() ([]byte, []int) {
|
|
return file_test_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Message1) GetItems() []*Item1 {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Item2 struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Key1 string `protobuf:"bytes,1,opt,name=key1,proto3" json:"key1,omitempty"`
|
|
Key2 string `protobuf:"bytes,2,opt,name=key2,proto3" json:"key2,omitempty"`
|
|
}
|
|
|
|
func (x *Item2) Reset() {
|
|
*x = Item2{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_test_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Item2) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Item2) ProtoMessage() {}
|
|
|
|
func (x *Item2) ProtoReflect() protoreflect.Message {
|
|
mi := &file_test_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Item2.ProtoReflect.Descriptor instead.
|
|
func (*Item2) Descriptor() ([]byte, []int) {
|
|
return file_test_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *Item2) GetKey1() string {
|
|
if x != nil {
|
|
return x.Key1
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Item2) GetKey2() string {
|
|
if x != nil {
|
|
return x.Key2
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Message2 struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Items []*Item2 `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
}
|
|
|
|
func (x *Message2) Reset() {
|
|
*x = Message2{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_test_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Message2) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Message2) ProtoMessage() {}
|
|
|
|
func (x *Message2) ProtoReflect() protoreflect.Message {
|
|
mi := &file_test_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Message2.ProtoReflect.Descriptor instead.
|
|
func (*Message2) Descriptor() ([]byte, []int) {
|
|
return file_test_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Message2) GetItems() []*Item2 {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_test_proto protoreflect.FileDescriptor
|
|
|
|
var file_test_proto_rawDesc = []byte{
|
|
0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x22, 0x1b, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x31, 0x12, 0x12, 0x0a, 0x04,
|
|
0x6b, 0x65, 0x79, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x31,
|
|
0x22, 0x2e, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x22, 0x0a, 0x05,
|
|
0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x31, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73,
|
|
0x22, 0x2f, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x32, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79,
|
|
0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x31, 0x12, 0x12, 0x0a,
|
|
0x04, 0x6b, 0x65, 0x79, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79,
|
|
0x32, 0x22, 0x2e, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x12, 0x22, 0x0a,
|
|
0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x32, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d,
|
|
0x73, 0x42, 0x0b, 0x5a, 0x09, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x70, 0x62, 0x62, 0x06,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_test_proto_rawDescOnce sync.Once
|
|
file_test_proto_rawDescData = file_test_proto_rawDesc
|
|
)
|
|
|
|
func file_test_proto_rawDescGZIP() []byte {
|
|
file_test_proto_rawDescOnce.Do(func() {
|
|
file_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto_rawDescData)
|
|
})
|
|
return file_test_proto_rawDescData
|
|
}
|
|
|
|
var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_test_proto_goTypes = []interface{}{
|
|
(*Item1)(nil), // 0: proto.Item1
|
|
(*Message1)(nil), // 1: proto.Message1
|
|
(*Item2)(nil), // 2: proto.Item2
|
|
(*Message2)(nil), // 3: proto.Message2
|
|
}
|
|
var file_test_proto_depIdxs = []int32{
|
|
0, // 0: proto.Message1.items:type_name -> proto.Item1
|
|
2, // 1: proto.Message2.items:type_name -> proto.Item2
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] 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_test_proto_init() }
|
|
func file_test_proto_init() {
|
|
if File_test_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Item1); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Message1); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Item2); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Message2); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_test_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_test_proto_goTypes,
|
|
DependencyIndexes: file_test_proto_depIdxs,
|
|
MessageInfos: file_test_proto_msgTypes,
|
|
}.Build()
|
|
File_test_proto = out.File
|
|
file_test_proto_rawDesc = nil
|
|
file_test_proto_goTypes = nil
|
|
file_test_proto_depIdxs = nil
|
|
}
|