316 lines
		
	
	
		
			9.3 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			316 lines
		
	
	
		
			9.3 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | |
| // versions:
 | |
| // 	protoc-gen-go v1.31.0
 | |
| // 	protoc        v4.23.4
 | |
| // source: test.proto
 | |
| 
 | |
| package proto
 | |
| 
 | |
| 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 Test struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	D                 float64     `protobuf:"fixed64,1,opt,name=d,proto3" json:"d,omitempty"`
 | |
| 	F                 float32     `protobuf:"fixed32,2,opt,name=f,proto3" json:"f,omitempty"`
 | |
| 	I32               int32       `protobuf:"varint,3,opt,name=i32,proto3" json:"i32,omitempty"`
 | |
| 	I64               int64       `protobuf:"varint,4,opt,name=i64,proto3" json:"i64,omitempty"`
 | |
| 	U32               uint32      `protobuf:"varint,5,opt,name=u32,proto3" json:"u32,omitempty"`
 | |
| 	U64               uint64      `protobuf:"varint,6,opt,name=u64,proto3" json:"u64,omitempty"`
 | |
| 	T                 bool        `protobuf:"varint,7,opt,name=t,proto3" json:"t,omitempty"`
 | |
| 	B                 []byte      `protobuf:"bytes,8,opt,name=b,proto3" json:"b,omitempty"`
 | |
| 	S                 string      `protobuf:"bytes,9,opt,name=s,proto3" json:"s,omitempty"`
 | |
| 	Embedded          *Embedded   `protobuf:"bytes,10,opt,name=embedded,proto3" json:"embedded,omitempty"`
 | |
| 	RepeatedEmbeddeds []*Embedded `protobuf:"bytes,11,rep,name=repeated_embeddeds,json=repeatedEmbeddeds,proto3" json:"repeated_embeddeds,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *Test) Reset() {
 | |
| 	*x = Test{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_test_proto_msgTypes[0]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *Test) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*Test) ProtoMessage() {}
 | |
| 
 | |
| func (x *Test) 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 Test.ProtoReflect.Descriptor instead.
 | |
| func (*Test) Descriptor() ([]byte, []int) {
 | |
| 	return file_test_proto_rawDescGZIP(), []int{0}
 | |
| }
 | |
| 
 | |
| func (x *Test) GetD() float64 {
 | |
| 	if x != nil {
 | |
| 		return x.D
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *Test) GetF() float32 {
 | |
| 	if x != nil {
 | |
| 		return x.F
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *Test) GetI32() int32 {
 | |
| 	if x != nil {
 | |
| 		return x.I32
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *Test) GetI64() int64 {
 | |
| 	if x != nil {
 | |
| 		return x.I64
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *Test) GetU32() uint32 {
 | |
| 	if x != nil {
 | |
| 		return x.U32
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *Test) GetU64() uint64 {
 | |
| 	if x != nil {
 | |
| 		return x.U64
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *Test) GetT() bool {
 | |
| 	if x != nil {
 | |
| 		return x.T
 | |
| 	}
 | |
| 	return false
 | |
| }
 | |
| 
 | |
| func (x *Test) GetB() []byte {
 | |
| 	if x != nil {
 | |
| 		return x.B
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Test) GetS() string {
 | |
| 	if x != nil {
 | |
| 		return x.S
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *Test) GetEmbedded() *Embedded {
 | |
| 	if x != nil {
 | |
| 		return x.Embedded
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Test) GetRepeatedEmbeddeds() []*Embedded {
 | |
| 	if x != nil {
 | |
| 		return x.RepeatedEmbeddeds
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| type Embedded struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	S        string    `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`
 | |
| 	Embedded *Embedded `protobuf:"bytes,2,opt,name=embedded,proto3" json:"embedded,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *Embedded) Reset() {
 | |
| 	*x = Embedded{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_test_proto_msgTypes[1]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *Embedded) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*Embedded) ProtoMessage() {}
 | |
| 
 | |
| func (x *Embedded) 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 Embedded.ProtoReflect.Descriptor instead.
 | |
| func (*Embedded) Descriptor() ([]byte, []int) {
 | |
| 	return file_test_proto_rawDescGZIP(), []int{1}
 | |
| }
 | |
| 
 | |
| func (x *Embedded) GetS() string {
 | |
| 	if x != nil {
 | |
| 		return x.S
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *Embedded) GetEmbedded() *Embedded {
 | |
| 	if x != nil {
 | |
| 		return x.Embedded
 | |
| 	}
 | |
| 	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, 0x22, 0xf5, 0x01, 0x0a,
 | |
| 	0x04, 0x54, 0x65, 0x73, 0x74, 0x12, 0x0c, 0x0a, 0x01, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01,
 | |
| 	0x52, 0x01, 0x64, 0x12, 0x0c, 0x0a, 0x01, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01,
 | |
| 	0x66, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x33, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
 | |
| 	0x69, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x36, 0x34, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
 | |
| 	0x52, 0x03, 0x69, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, 0x05, 0x20, 0x01,
 | |
| 	0x28, 0x0d, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, 0x06,
 | |
| 	0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x36, 0x34, 0x12, 0x0c, 0x0a, 0x01, 0x74, 0x18, 0x07,
 | |
| 	0x20, 0x01, 0x28, 0x08, 0x52, 0x01, 0x74, 0x12, 0x0c, 0x0a, 0x01, 0x62, 0x18, 0x08, 0x20, 0x01,
 | |
| 	0x28, 0x0c, 0x52, 0x01, 0x62, 0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
 | |
| 	0x52, 0x01, 0x73, 0x12, 0x25, 0x0a, 0x08, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x18,
 | |
| 	0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64,
 | |
| 	0x52, 0x08, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x12, 0x72, 0x65,
 | |
| 	0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x73,
 | |
| 	0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65,
 | |
| 	0x64, 0x52, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x45, 0x6d, 0x62, 0x65, 0x64,
 | |
| 	0x64, 0x65, 0x64, 0x73, 0x22, 0x3f, 0x0a, 0x08, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64,
 | |
| 	0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x73, 0x12, 0x25,
 | |
| 	0x0a, 0x08, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
 | |
| 	0x32, 0x09, 0x2e, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x52, 0x08, 0x65, 0x6d, 0x62,
 | |
| 	0x65, 0x64, 0x64, 0x65, 0x64, 0x32, 0x1f, 0x0a, 0x07, 0x54, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67,
 | |
| 	0x12, 0x14, 0x0a, 0x04, 0x63, 0x61, 0x6c, 0x6c, 0x12, 0x05, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x1a,
 | |
| 	0x05, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
 | |
| 	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x61, 0x6d, 0x2f, 0x70, 0x72,
 | |
| 	0x6f, 0x74, 0x6f, 0x67, 0x65, 0x74, 0x74, 0x65, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61,
 | |
| 	0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 2)
 | |
| var file_test_proto_goTypes = []interface{}{
 | |
| 	(*Test)(nil),     // 0: Test
 | |
| 	(*Embedded)(nil), // 1: Embedded
 | |
| }
 | |
| var file_test_proto_depIdxs = []int32{
 | |
| 	1, // 0: Test.embedded:type_name -> Embedded
 | |
| 	1, // 1: Test.repeated_embeddeds:type_name -> Embedded
 | |
| 	1, // 2: Embedded.embedded:type_name -> Embedded
 | |
| 	0, // 3: Testing.call:input_type -> Test
 | |
| 	0, // 4: Testing.call:output_type -> Test
 | |
| 	4, // [4:5] is the sub-list for method output_type
 | |
| 	3, // [3:4] is the sub-list for method input_type
 | |
| 	3, // [3:3] is the sub-list for extension type_name
 | |
| 	3, // [3:3] is the sub-list for extension extendee
 | |
| 	0, // [0:3] 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.(*Test); 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.(*Embedded); 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:   2,
 | |
| 			NumExtensions: 0,
 | |
| 			NumServices:   1,
 | |
| 		},
 | |
| 		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
 | |
| }
 | 
