diff --git a/prototest/prototest.pb.go b/prototest/prototest.pb.go index 7e9a41f..5e4b93f 100644 --- a/prototest/prototest.pb.go +++ b/prototest/prototest.pb.go @@ -1,85 +1,151 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.17.3 // source: prototest.proto package prototest import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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 Greeting struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Priority int32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Greeting) Reset() { *m = Greeting{} } -func (m *Greeting) String() string { return proto.CompactTextString(m) } -func (*Greeting) ProtoMessage() {} -func (*Greeting) Descriptor() ([]byte, []int) { - return fileDescriptor_d68ecc031ae9d98e, []int{0} + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Priority int32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` } -func (m *Greeting) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Greeting.Unmarshal(m, b) -} -func (m *Greeting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Greeting.Marshal(b, m, deterministic) -} -func (m *Greeting) XXX_Merge(src proto.Message) { - xxx_messageInfo_Greeting.Merge(m, src) +func (x *Greeting) Reset() { + *x = Greeting{} + if protoimpl.UnsafeEnabled { + mi := &file_prototest_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Greeting) XXX_Size() int { - return xxx_messageInfo_Greeting.Size(m) + +func (x *Greeting) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Greeting) XXX_DiscardUnknown() { - xxx_messageInfo_Greeting.DiscardUnknown(m) + +func (*Greeting) ProtoMessage() {} + +func (x *Greeting) ProtoReflect() protoreflect.Message { + mi := &file_prototest_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) } -var xxx_messageInfo_Greeting proto.InternalMessageInfo +// Deprecated: Use Greeting.ProtoReflect.Descriptor instead. +func (*Greeting) Descriptor() ([]byte, []int) { + return file_prototest_proto_rawDescGZIP(), []int{0} +} -func (m *Greeting) GetMessage() string { - if m != nil { - return m.Message +func (x *Greeting) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *Greeting) GetPriority() int32 { - if m != nil { - return m.Priority +func (x *Greeting) GetPriority() int32 { + if x != nil { + return x.Priority } return 0 } -func init() { - proto.RegisterType((*Greeting)(nil), "Greeting") +var File_prototest_proto protoreflect.FileDescriptor + +var file_prototest_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x40, 0x0a, 0x08, 0x47, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x42, 0x0b, 0x5a, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x65, 0x73, 0x74, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_prototest_proto_rawDescOnce sync.Once + file_prototest_proto_rawDescData = file_prototest_proto_rawDesc +) + +func file_prototest_proto_rawDescGZIP() []byte { + file_prototest_proto_rawDescOnce.Do(func() { + file_prototest_proto_rawDescData = protoimpl.X.CompressGZIP(file_prototest_proto_rawDescData) + }) + return file_prototest_proto_rawDescData } -func init() { proto.RegisterFile("prototest.proto", fileDescriptor_d68ecc031ae9d98e) } - -var fileDescriptor_d68ecc031ae9d98e = []byte{ - // 101 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2f, 0x28, 0xca, 0x2f, - 0xc9, 0x2f, 0x49, 0x2d, 0x2e, 0xd1, 0x03, 0xb3, 0x94, 0x1c, 0xb8, 0x38, 0xdc, 0x8b, 0x52, 0x53, - 0x4b, 0x32, 0xf3, 0xd2, 0x85, 0x24, 0xb8, 0xd8, 0x73, 0x53, 0x8b, 0x8b, 0x13, 0xd3, 0x53, 0x25, - 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x60, 0x5c, 0x21, 0x29, 0x2e, 0x8e, 0x82, 0xa2, 0xcc, 0xfc, - 0xa2, 0xcc, 0x92, 0x4a, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xd6, 0x20, 0x38, 0xdf, 0x89, 0x3b, 0x8a, - 0x13, 0x6e, 0x68, 0x12, 0x1b, 0x98, 0x69, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x88, 0xd0, 0x6a, - 0xc9, 0x68, 0x00, 0x00, 0x00, +var file_prototest_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_prototest_proto_goTypes = []interface{}{ + (*Greeting)(nil), // 0: Greeting +} +var file_prototest_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_prototest_proto_init() } +func file_prototest_proto_init() { + if File_prototest_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_prototest_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Greeting); 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_prototest_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_prototest_proto_goTypes, + DependencyIndexes: file_prototest_proto_depIdxs, + MessageInfos: file_prototest_proto_msgTypes, + }.Build() + File_prototest_proto = out.File + file_prototest_proto_rawDesc = nil + file_prototest_proto_goTypes = nil + file_prototest_proto_depIdxs = nil }