| // Copyright 2018 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: cmd/protoc-gen-go/testdata/proto3/fields.proto |
| |
| package proto3 |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| reflect "reflect" |
| sync "sync" |
| unsafe "unsafe" |
| ) |
| |
| type FieldTestMessage_Enum int32 |
| |
| const ( |
| FieldTestMessage_ZERO FieldTestMessage_Enum = 0 |
| ) |
| |
| // Enum value maps for FieldTestMessage_Enum. |
| var ( |
| FieldTestMessage_Enum_name = map[int32]string{ |
| 0: "ZERO", |
| } |
| FieldTestMessage_Enum_value = map[string]int32{ |
| "ZERO": 0, |
| } |
| ) |
| |
| func (x FieldTestMessage_Enum) Enum() *FieldTestMessage_Enum { |
| p := new(FieldTestMessage_Enum) |
| *p = x |
| return p |
| } |
| |
| func (x FieldTestMessage_Enum) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (FieldTestMessage_Enum) Descriptor() protoreflect.EnumDescriptor { |
| return file_cmd_protoc_gen_go_testdata_proto3_fields_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (FieldTestMessage_Enum) Type() protoreflect.EnumType { |
| return &file_cmd_protoc_gen_go_testdata_proto3_fields_proto_enumTypes[0] |
| } |
| |
| func (x FieldTestMessage_Enum) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use FieldTestMessage_Enum.Descriptor instead. |
| func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int) { |
| return file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| type FieldTestMessage struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| OptionalBool string `protobuf:"bytes,1,opt,name=optional_bool,json=optionalBool,proto3" json:"optional_bool,omitempty"` |
| OptionalEnum FieldTestMessage_Enum `protobuf:"varint,2,opt,name=optional_enum,json=optionalEnum,proto3,enum=goproto.protoc.proto3.FieldTestMessage_Enum" json:"optional_enum,omitempty"` |
| OptionalInt32 int32 `protobuf:"varint,3,opt,name=optional_int32,json=optionalInt32,proto3" json:"optional_int32,omitempty"` |
| OptionalSint32 int32 `protobuf:"zigzag32,4,opt,name=optional_sint32,json=optionalSint32,proto3" json:"optional_sint32,omitempty"` |
| OptionalUint32 uint32 `protobuf:"varint,5,opt,name=optional_uint32,json=optionalUint32,proto3" json:"optional_uint32,omitempty"` |
| OptionalInt64 int64 `protobuf:"varint,6,opt,name=optional_int64,json=optionalInt64,proto3" json:"optional_int64,omitempty"` |
| OptionalSint64 int64 `protobuf:"zigzag64,7,opt,name=optional_sint64,json=optionalSint64,proto3" json:"optional_sint64,omitempty"` |
| OptionalUint64 uint64 `protobuf:"varint,8,opt,name=optional_uint64,json=optionalUint64,proto3" json:"optional_uint64,omitempty"` |
| OptionalSfixed32 int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32,proto3" json:"optional_sfixed32,omitempty"` |
| OptionalFixed32 uint32 `protobuf:"fixed32,10,opt,name=optional_fixed32,json=optionalFixed32,proto3" json:"optional_fixed32,omitempty"` |
| OptionalFloat float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat,proto3" json:"optional_float,omitempty"` |
| OptionalSfixed64 int64 `protobuf:"fixed64,12,opt,name=optional_sfixed64,json=optionalSfixed64,proto3" json:"optional_sfixed64,omitempty"` |
| OptionalFixed64 uint64 `protobuf:"fixed64,13,opt,name=optional_fixed64,json=optionalFixed64,proto3" json:"optional_fixed64,omitempty"` |
| OptionalDouble float64 `protobuf:"fixed64,14,opt,name=optional_double,json=optionalDouble,proto3" json:"optional_double,omitempty"` |
| OptionalString string `protobuf:"bytes,15,opt,name=optional_string,json=optionalString,proto3" json:"optional_string,omitempty"` |
| OptionalBytes []byte `protobuf:"bytes,16,opt,name=optional_bytes,json=optionalBytes,proto3" json:"optional_bytes,omitempty"` |
| Optional_Message *FieldTestMessage_Message `protobuf:"bytes,17,opt,name=optional_Message,json=optionalMessage,proto3" json:"optional_Message,omitempty"` |
| RepeatedBool []bool `protobuf:"varint,201,rep,packed,name=repeated_bool,json=repeatedBool,proto3" json:"repeated_bool,omitempty"` |
| RepeatedEnum []FieldTestMessage_Enum `protobuf:"varint,202,rep,packed,name=repeated_enum,json=repeatedEnum,proto3,enum=goproto.protoc.proto3.FieldTestMessage_Enum" json:"repeated_enum,omitempty"` |
| RepeatedInt32 []int32 `protobuf:"varint,203,rep,packed,name=repeated_int32,json=repeatedInt32,proto3" json:"repeated_int32,omitempty"` |
| RepeatedSint32 []int32 `protobuf:"zigzag32,204,rep,packed,name=repeated_sint32,json=repeatedSint32,proto3" json:"repeated_sint32,omitempty"` |
| RepeatedUint32 []uint32 `protobuf:"varint,205,rep,packed,name=repeated_uint32,json=repeatedUint32,proto3" json:"repeated_uint32,omitempty"` |
| RepeatedInt64 []int64 `protobuf:"varint,206,rep,packed,name=repeated_int64,json=repeatedInt64,proto3" json:"repeated_int64,omitempty"` |
| RepeatedSint64 []int64 `protobuf:"zigzag64,207,rep,packed,name=repeated_sint64,json=repeatedSint64,proto3" json:"repeated_sint64,omitempty"` |
| RepeatedUint64 []uint64 `protobuf:"varint,208,rep,packed,name=repeated_uint64,json=repeatedUint64,proto3" json:"repeated_uint64,omitempty"` |
| RepeatedSfixed32 []int32 `protobuf:"fixed32,209,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32,proto3" json:"repeated_sfixed32,omitempty"` |
| RepeatedFixed32 []uint32 `protobuf:"fixed32,210,rep,packed,name=repeated_fixed32,json=repeatedFixed32,proto3" json:"repeated_fixed32,omitempty"` |
| RepeatedFloat []float32 `protobuf:"fixed32,211,rep,packed,name=repeated_float,json=repeatedFloat,proto3" json:"repeated_float,omitempty"` |
| RepeatedSfixed64 []int64 `protobuf:"fixed64,212,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64,proto3" json:"repeated_sfixed64,omitempty"` |
| RepeatedFixed64 []uint64 `protobuf:"fixed64,213,rep,packed,name=repeated_fixed64,json=repeatedFixed64,proto3" json:"repeated_fixed64,omitempty"` |
| RepeatedDouble []float64 `protobuf:"fixed64,214,rep,packed,name=repeated_double,json=repeatedDouble,proto3" json:"repeated_double,omitempty"` |
| RepeatedString []string `protobuf:"bytes,215,rep,name=repeated_string,json=repeatedString,proto3" json:"repeated_string,omitempty"` |
| RepeatedBytes [][]byte `protobuf:"bytes,216,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"` |
| Repeated_Message []*FieldTestMessage_Message `protobuf:"bytes,217,rep,name=repeated_Message,json=repeatedMessage,proto3" json:"repeated_Message,omitempty"` |
| MapInt32Int64 map[int32]int64 `protobuf:"bytes,500,rep,name=map_int32_int64,json=mapInt32Int64,proto3" json:"map_int32_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| MapStringMessage map[string]*FieldTestMessage_Message `protobuf:"bytes,501,rep,name=map_string_message,json=mapStringMessage,proto3" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| MapFixed64Enum map[uint64]FieldTestMessage_Enum `protobuf:"bytes,502,rep,name=map_fixed64_enum,json=mapFixed64Enum,proto3" json:"map_fixed64_enum,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.protoc.proto3.FieldTestMessage_Enum"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *FieldTestMessage) Reset() { |
| *x = FieldTestMessage{} |
| mi := &file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *FieldTestMessage) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*FieldTestMessage) ProtoMessage() {} |
| |
| func (x *FieldTestMessage) ProtoReflect() protoreflect.Message { |
| mi := &file_cmd_protoc_gen_go_testdata_proto3_fields_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 FieldTestMessage.ProtoReflect.Descriptor instead. |
| func (*FieldTestMessage) Descriptor() ([]byte, []int) { |
| return file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *FieldTestMessage) GetOptionalBool() string { |
| if x != nil { |
| return x.OptionalBool |
| } |
| return "" |
| } |
| |
| func (x *FieldTestMessage) GetOptionalEnum() FieldTestMessage_Enum { |
| if x != nil { |
| return x.OptionalEnum |
| } |
| return FieldTestMessage_ZERO |
| } |
| |
| func (x *FieldTestMessage) GetOptionalInt32() int32 { |
| if x != nil { |
| return x.OptionalInt32 |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalSint32() int32 { |
| if x != nil { |
| return x.OptionalSint32 |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalUint32() uint32 { |
| if x != nil { |
| return x.OptionalUint32 |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalInt64() int64 { |
| if x != nil { |
| return x.OptionalInt64 |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalSint64() int64 { |
| if x != nil { |
| return x.OptionalSint64 |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalUint64() uint64 { |
| if x != nil { |
| return x.OptionalUint64 |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalSfixed32() int32 { |
| if x != nil { |
| return x.OptionalSfixed32 |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalFixed32() uint32 { |
| if x != nil { |
| return x.OptionalFixed32 |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalFloat() float32 { |
| if x != nil { |
| return x.OptionalFloat |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalSfixed64() int64 { |
| if x != nil { |
| return x.OptionalSfixed64 |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalFixed64() uint64 { |
| if x != nil { |
| return x.OptionalFixed64 |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalDouble() float64 { |
| if x != nil { |
| return x.OptionalDouble |
| } |
| return 0 |
| } |
| |
| func (x *FieldTestMessage) GetOptionalString() string { |
| if x != nil { |
| return x.OptionalString |
| } |
| return "" |
| } |
| |
| func (x *FieldTestMessage) GetOptionalBytes() []byte { |
| if x != nil { |
| return x.OptionalBytes |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetOptional_Message() *FieldTestMessage_Message { |
| if x != nil { |
| return x.Optional_Message |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedBool() []bool { |
| if x != nil { |
| return x.RepeatedBool |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedEnum() []FieldTestMessage_Enum { |
| if x != nil { |
| return x.RepeatedEnum |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedInt32() []int32 { |
| if x != nil { |
| return x.RepeatedInt32 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedSint32() []int32 { |
| if x != nil { |
| return x.RepeatedSint32 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedUint32() []uint32 { |
| if x != nil { |
| return x.RepeatedUint32 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedInt64() []int64 { |
| if x != nil { |
| return x.RepeatedInt64 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedSint64() []int64 { |
| if x != nil { |
| return x.RepeatedSint64 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedUint64() []uint64 { |
| if x != nil { |
| return x.RepeatedUint64 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedSfixed32() []int32 { |
| if x != nil { |
| return x.RepeatedSfixed32 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedFixed32() []uint32 { |
| if x != nil { |
| return x.RepeatedFixed32 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedFloat() []float32 { |
| if x != nil { |
| return x.RepeatedFloat |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedSfixed64() []int64 { |
| if x != nil { |
| return x.RepeatedSfixed64 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedFixed64() []uint64 { |
| if x != nil { |
| return x.RepeatedFixed64 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedDouble() []float64 { |
| if x != nil { |
| return x.RepeatedDouble |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedString() []string { |
| if x != nil { |
| return x.RepeatedString |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeatedBytes() [][]byte { |
| if x != nil { |
| return x.RepeatedBytes |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetRepeated_Message() []*FieldTestMessage_Message { |
| if x != nil { |
| return x.Repeated_Message |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetMapInt32Int64() map[int32]int64 { |
| if x != nil { |
| return x.MapInt32Int64 |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetMapStringMessage() map[string]*FieldTestMessage_Message { |
| if x != nil { |
| return x.MapStringMessage |
| } |
| return nil |
| } |
| |
| func (x *FieldTestMessage) GetMapFixed64Enum() map[uint64]FieldTestMessage_Enum { |
| if x != nil { |
| return x.MapFixed64Enum |
| } |
| return nil |
| } |
| |
| type FieldTestMessage_Message struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *FieldTestMessage_Message) Reset() { |
| *x = FieldTestMessage_Message{} |
| mi := &file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *FieldTestMessage_Message) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*FieldTestMessage_Message) ProtoMessage() {} |
| |
| func (x *FieldTestMessage_Message) ProtoReflect() protoreflect.Message { |
| mi := &file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[4] |
| 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 FieldTestMessage_Message.ProtoReflect.Descriptor instead. |
| func (*FieldTestMessage_Message) Descriptor() ([]byte, []int) { |
| return file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDescGZIP(), []int{0, 3} |
| } |
| |
| var File_cmd_protoc_gen_go_testdata_proto3_fields_proto protoreflect.FileDescriptor |
| |
| const file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDesc = "" + |
| "\n" + |
| ".cmd/protoc-gen-go/testdata/proto3/fields.proto\x12\x15goproto.protoc.proto3\"\xd0\x11\n" + |
| "\x10FieldTestMessage\x12#\n" + |
| "\roptional_bool\x18\x01 \x01(\tR\foptionalBool\x12Q\n" + |
| "\roptional_enum\x18\x02 \x01(\x0e2,.goproto.protoc.proto3.FieldTestMessage.EnumR\foptionalEnum\x12%\n" + |
| "\x0eoptional_int32\x18\x03 \x01(\x05R\roptionalInt32\x12'\n" + |
| "\x0foptional_sint32\x18\x04 \x01(\x11R\x0eoptionalSint32\x12'\n" + |
| "\x0foptional_uint32\x18\x05 \x01(\rR\x0eoptionalUint32\x12%\n" + |
| "\x0eoptional_int64\x18\x06 \x01(\x03R\roptionalInt64\x12'\n" + |
| "\x0foptional_sint64\x18\a \x01(\x12R\x0eoptionalSint64\x12'\n" + |
| "\x0foptional_uint64\x18\b \x01(\x04R\x0eoptionalUint64\x12+\n" + |
| "\x11optional_sfixed32\x18\t \x01(\x0fR\x10optionalSfixed32\x12)\n" + |
| "\x10optional_fixed32\x18\n" + |
| " \x01(\aR\x0foptionalFixed32\x12%\n" + |
| "\x0eoptional_float\x18\v \x01(\x02R\roptionalFloat\x12+\n" + |
| "\x11optional_sfixed64\x18\f \x01(\x10R\x10optionalSfixed64\x12)\n" + |
| "\x10optional_fixed64\x18\r \x01(\x06R\x0foptionalFixed64\x12'\n" + |
| "\x0foptional_double\x18\x0e \x01(\x01R\x0eoptionalDouble\x12'\n" + |
| "\x0foptional_string\x18\x0f \x01(\tR\x0eoptionalString\x12%\n" + |
| "\x0eoptional_bytes\x18\x10 \x01(\fR\roptionalBytes\x12Z\n" + |
| "\x10optional_Message\x18\x11 \x01(\v2/.goproto.protoc.proto3.FieldTestMessage.MessageR\x0foptionalMessage\x12$\n" + |
| "\rrepeated_bool\x18\xc9\x01 \x03(\bR\frepeatedBool\x12R\n" + |
| "\rrepeated_enum\x18\xca\x01 \x03(\x0e2,.goproto.protoc.proto3.FieldTestMessage.EnumR\frepeatedEnum\x12&\n" + |
| "\x0erepeated_int32\x18\xcb\x01 \x03(\x05R\rrepeatedInt32\x12(\n" + |
| "\x0frepeated_sint32\x18\xcc\x01 \x03(\x11R\x0erepeatedSint32\x12(\n" + |
| "\x0frepeated_uint32\x18\xcd\x01 \x03(\rR\x0erepeatedUint32\x12&\n" + |
| "\x0erepeated_int64\x18\xce\x01 \x03(\x03R\rrepeatedInt64\x12(\n" + |
| "\x0frepeated_sint64\x18\xcf\x01 \x03(\x12R\x0erepeatedSint64\x12(\n" + |
| "\x0frepeated_uint64\x18\xd0\x01 \x03(\x04R\x0erepeatedUint64\x12,\n" + |
| "\x11repeated_sfixed32\x18\xd1\x01 \x03(\x0fR\x10repeatedSfixed32\x12*\n" + |
| "\x10repeated_fixed32\x18\xd2\x01 \x03(\aR\x0frepeatedFixed32\x12&\n" + |
| "\x0erepeated_float\x18\xd3\x01 \x03(\x02R\rrepeatedFloat\x12,\n" + |
| "\x11repeated_sfixed64\x18\xd4\x01 \x03(\x10R\x10repeatedSfixed64\x12*\n" + |
| "\x10repeated_fixed64\x18\xd5\x01 \x03(\x06R\x0frepeatedFixed64\x12(\n" + |
| "\x0frepeated_double\x18\xd6\x01 \x03(\x01R\x0erepeatedDouble\x12(\n" + |
| "\x0frepeated_string\x18\xd7\x01 \x03(\tR\x0erepeatedString\x12&\n" + |
| "\x0erepeated_bytes\x18\xd8\x01 \x03(\fR\rrepeatedBytes\x12[\n" + |
| "\x10repeated_Message\x18\xd9\x01 \x03(\v2/.goproto.protoc.proto3.FieldTestMessage.MessageR\x0frepeatedMessage\x12c\n" + |
| "\x0fmap_int32_int64\x18\xf4\x03 \x03(\v2:.goproto.protoc.proto3.FieldTestMessage.MapInt32Int64EntryR\rmapInt32Int64\x12l\n" + |
| "\x12map_string_message\x18\xf5\x03 \x03(\v2=.goproto.protoc.proto3.FieldTestMessage.MapStringMessageEntryR\x10mapStringMessage\x12f\n" + |
| "\x10map_fixed64_enum\x18\xf6\x03 \x03(\v2;.goproto.protoc.proto3.FieldTestMessage.MapFixed64EnumEntryR\x0emapFixed64Enum\x1a@\n" + |
| "\x12MapInt32Int64Entry\x12\x10\n" + |
| "\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" + |
| "\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\x1at\n" + |
| "\x15MapStringMessageEntry\x12\x10\n" + |
| "\x03key\x18\x01 \x01(\tR\x03key\x12E\n" + |
| "\x05value\x18\x02 \x01(\v2/.goproto.protoc.proto3.FieldTestMessage.MessageR\x05value:\x028\x01\x1ao\n" + |
| "\x13MapFixed64EnumEntry\x12\x10\n" + |
| "\x03key\x18\x01 \x01(\x06R\x03key\x12B\n" + |
| "\x05value\x18\x02 \x01(\x0e2,.goproto.protoc.proto3.FieldTestMessage.EnumR\x05value:\x028\x01\x1a\t\n" + |
| "\aMessage\"\x10\n" + |
| "\x04Enum\x12\b\n" + |
| "\x04ZERO\x10\x00B>Z<google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3b\x06proto3" |
| |
| var ( |
| file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDescOnce sync.Once |
| file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDescData []byte |
| ) |
| |
| func file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDescGZIP() []byte { |
| file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDescOnce.Do(func() { |
| file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDesc))) |
| }) |
| return file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDescData |
| } |
| |
| var file_cmd_protoc_gen_go_testdata_proto3_fields_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| var file_cmd_protoc_gen_go_testdata_proto3_fields_proto_goTypes = []any{ |
| (FieldTestMessage_Enum)(0), // 0: goproto.protoc.proto3.FieldTestMessage.Enum |
| (*FieldTestMessage)(nil), // 1: goproto.protoc.proto3.FieldTestMessage |
| nil, // 2: goproto.protoc.proto3.FieldTestMessage.MapInt32Int64Entry |
| nil, // 3: goproto.protoc.proto3.FieldTestMessage.MapStringMessageEntry |
| nil, // 4: goproto.protoc.proto3.FieldTestMessage.MapFixed64EnumEntry |
| (*FieldTestMessage_Message)(nil), // 5: goproto.protoc.proto3.FieldTestMessage.Message |
| } |
| var file_cmd_protoc_gen_go_testdata_proto3_fields_proto_depIdxs = []int32{ |
| 0, // 0: goproto.protoc.proto3.FieldTestMessage.optional_enum:type_name -> goproto.protoc.proto3.FieldTestMessage.Enum |
| 5, // 1: goproto.protoc.proto3.FieldTestMessage.optional_Message:type_name -> goproto.protoc.proto3.FieldTestMessage.Message |
| 0, // 2: goproto.protoc.proto3.FieldTestMessage.repeated_enum:type_name -> goproto.protoc.proto3.FieldTestMessage.Enum |
| 5, // 3: goproto.protoc.proto3.FieldTestMessage.repeated_Message:type_name -> goproto.protoc.proto3.FieldTestMessage.Message |
| 2, // 4: goproto.protoc.proto3.FieldTestMessage.map_int32_int64:type_name -> goproto.protoc.proto3.FieldTestMessage.MapInt32Int64Entry |
| 3, // 5: goproto.protoc.proto3.FieldTestMessage.map_string_message:type_name -> goproto.protoc.proto3.FieldTestMessage.MapStringMessageEntry |
| 4, // 6: goproto.protoc.proto3.FieldTestMessage.map_fixed64_enum:type_name -> goproto.protoc.proto3.FieldTestMessage.MapFixed64EnumEntry |
| 5, // 7: goproto.protoc.proto3.FieldTestMessage.MapStringMessageEntry.value:type_name -> goproto.protoc.proto3.FieldTestMessage.Message |
| 0, // 8: goproto.protoc.proto3.FieldTestMessage.MapFixed64EnumEntry.value:type_name -> goproto.protoc.proto3.FieldTestMessage.Enum |
| 9, // [9:9] is the sub-list for method output_type |
| 9, // [9:9] is the sub-list for method input_type |
| 9, // [9:9] is the sub-list for extension type_name |
| 9, // [9:9] is the sub-list for extension extendee |
| 0, // [0:9] is the sub-list for field type_name |
| } |
| |
| func init() { file_cmd_protoc_gen_go_testdata_proto3_fields_proto_init() } |
| func file_cmd_protoc_gen_go_testdata_proto3_fields_proto_init() { |
| if File_cmd_protoc_gen_go_testdata_proto3_fields_proto != nil { |
| return |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDesc)), |
| NumEnums: 1, |
| NumMessages: 5, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_cmd_protoc_gen_go_testdata_proto3_fields_proto_goTypes, |
| DependencyIndexes: file_cmd_protoc_gen_go_testdata_proto3_fields_proto_depIdxs, |
| EnumInfos: file_cmd_protoc_gen_go_testdata_proto3_fields_proto_enumTypes, |
| MessageInfos: file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes, |
| }.Build() |
| File_cmd_protoc_gen_go_testdata_proto3_fields_proto = out.File |
| file_cmd_protoc_gen_go_testdata_proto3_fields_proto_goTypes = nil |
| file_cmd_protoc_gen_go_testdata_proto3_fields_proto_depIdxs = nil |
| } |