Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: encoding/textpb/testprotos/pb3/test.proto |
| 3 | |
| 4 | package pb3 |
| 5 | |
| 6 | import ( |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 7 | proto "github.com/golang/protobuf/proto" |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 8 | protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" |
| 9 | prototype "github.com/golang/protobuf/v2/reflect/prototype" |
| 10 | protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl" |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 11 | ) |
| 12 | |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 13 | // This is a compile-time assertion to ensure that this generated file |
| 14 | // is compatible with the proto package it is being compiled against. |
| 15 | // A compilation error at this line likely means your copy of the |
| 16 | // proto package needs to be updated. |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 17 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 18 | |
| 19 | type Enum int32 |
| 20 | |
| 21 | const ( |
| 22 | Enum_ZERO Enum = 0 |
| 23 | Enum_ONE Enum = 1 |
| 24 | Enum_TWO Enum = 2 |
| 25 | Enum_TEN Enum = 10 |
| 26 | ) |
| 27 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 28 | func (e Enum) Type() protoreflect.EnumType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 29 | return xxx_Test_protoFile_EnumTypes[0] |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 30 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 31 | func (e Enum) Number() protoreflect.EnumNumber { |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 32 | return protoreflect.EnumNumber(e) |
| 33 | } |
| 34 | |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 35 | var Enum_name = map[int32]string{ |
| 36 | 0: "ZERO", |
| 37 | 1: "ONE", |
| 38 | 2: "TWO", |
| 39 | 10: "TEN", |
| 40 | } |
| 41 | |
| 42 | var Enum_value = map[string]int32{ |
| 43 | "ZERO": 0, |
| 44 | "ONE": 1, |
| 45 | "TWO": 2, |
| 46 | "TEN": 10, |
| 47 | } |
| 48 | |
| 49 | func (x Enum) String() string { |
| 50 | return proto.EnumName(Enum_name, int32(x)) |
| 51 | } |
| 52 | |
| 53 | func (Enum) EnumDescriptor() ([]byte, []int) { |
| 54 | return fileDescriptor_0854715c5b41c422, []int{0} |
| 55 | } |
| 56 | |
| 57 | type Enums_NestedEnum int32 |
| 58 | |
| 59 | const ( |
| 60 | Enums_CERO Enums_NestedEnum = 0 |
| 61 | Enums_UNO Enums_NestedEnum = 1 |
| 62 | Enums_DOS Enums_NestedEnum = 2 |
| 63 | Enums_DIEZ Enums_NestedEnum = 10 |
| 64 | ) |
| 65 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 66 | func (e Enums_NestedEnum) Type() protoreflect.EnumType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 67 | return xxx_Test_protoFile_EnumTypes[1] |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 68 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 69 | func (e Enums_NestedEnum) Number() protoreflect.EnumNumber { |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 70 | return protoreflect.EnumNumber(e) |
| 71 | } |
| 72 | |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 73 | var Enums_NestedEnum_name = map[int32]string{ |
| 74 | 0: "CERO", |
| 75 | 1: "UNO", |
| 76 | 2: "DOS", |
| 77 | 10: "DIEZ", |
| 78 | } |
| 79 | |
| 80 | var Enums_NestedEnum_value = map[string]int32{ |
| 81 | "CERO": 0, |
| 82 | "UNO": 1, |
| 83 | "DOS": 2, |
| 84 | "DIEZ": 10, |
| 85 | } |
| 86 | |
| 87 | func (x Enums_NestedEnum) String() string { |
| 88 | return proto.EnumName(Enums_NestedEnum_name, int32(x)) |
| 89 | } |
| 90 | |
| 91 | func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) { |
| 92 | return fileDescriptor_0854715c5b41c422, []int{1, 0} |
| 93 | } |
| 94 | |
| 95 | // Scalars contains scalar field types. |
| 96 | type Scalars struct { |
| 97 | SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"` |
| 98 | SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"` |
| 99 | SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"` |
| 100 | SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"` |
| 101 | SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"` |
| 102 | SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"` |
| 103 | SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"` |
| 104 | SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"` |
| 105 | SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"` |
| 106 | SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"` |
| 107 | SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"` |
| 108 | SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"` |
| 109 | SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"` |
| 110 | SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"` |
| 111 | SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` |
| 112 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 113 | XXX_unrecognized []byte `json:"-"` |
| 114 | XXX_sizecache int32 `json:"-"` |
| 115 | } |
| 116 | |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 117 | type xxx_Scalars struct{ m *Scalars } |
| 118 | |
| 119 | func (m *Scalars) ProtoReflect() protoreflect.Message { |
| 120 | return xxx_Scalars{m} |
| 121 | } |
| 122 | func (m xxx_Scalars) Type() protoreflect.MessageType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 123 | return xxx_Test_protoFile_MessageTypes[0].Type |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 124 | } |
| 125 | func (m xxx_Scalars) KnownFields() protoreflect.KnownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 126 | return xxx_Test_protoFile_MessageTypes[0].KnownFieldsOf(m.m) |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 127 | } |
| 128 | func (m xxx_Scalars) UnknownFields() protoreflect.UnknownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 129 | return xxx_Test_protoFile_MessageTypes[0].UnknownFieldsOf(m.m) |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 130 | } |
| 131 | func (m xxx_Scalars) Interface() protoreflect.ProtoMessage { |
| 132 | return m.m |
| 133 | } |
| 134 | |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 135 | func (m *Scalars) Reset() { *m = Scalars{} } |
| 136 | func (m *Scalars) String() string { return proto.CompactTextString(m) } |
| 137 | func (*Scalars) ProtoMessage() {} |
| 138 | func (*Scalars) Descriptor() ([]byte, []int) { |
| 139 | return fileDescriptor_0854715c5b41c422, []int{0} |
| 140 | } |
| 141 | |
| 142 | func (m *Scalars) XXX_Unmarshal(b []byte) error { |
| 143 | return xxx_messageInfo_Scalars.Unmarshal(m, b) |
| 144 | } |
| 145 | func (m *Scalars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 146 | return xxx_messageInfo_Scalars.Marshal(b, m, deterministic) |
| 147 | } |
| 148 | func (m *Scalars) XXX_Merge(src proto.Message) { |
| 149 | xxx_messageInfo_Scalars.Merge(m, src) |
| 150 | } |
| 151 | func (m *Scalars) XXX_Size() int { |
| 152 | return xxx_messageInfo_Scalars.Size(m) |
| 153 | } |
| 154 | func (m *Scalars) XXX_DiscardUnknown() { |
| 155 | xxx_messageInfo_Scalars.DiscardUnknown(m) |
| 156 | } |
| 157 | |
| 158 | var xxx_messageInfo_Scalars proto.InternalMessageInfo |
| 159 | |
| 160 | func (m *Scalars) GetSBool() bool { |
| 161 | if m != nil { |
| 162 | return m.SBool |
| 163 | } |
| 164 | return false |
| 165 | } |
| 166 | |
| 167 | func (m *Scalars) GetSInt32() int32 { |
| 168 | if m != nil { |
| 169 | return m.SInt32 |
| 170 | } |
| 171 | return 0 |
| 172 | } |
| 173 | |
| 174 | func (m *Scalars) GetSInt64() int64 { |
| 175 | if m != nil { |
| 176 | return m.SInt64 |
| 177 | } |
| 178 | return 0 |
| 179 | } |
| 180 | |
| 181 | func (m *Scalars) GetSUint32() uint32 { |
| 182 | if m != nil { |
| 183 | return m.SUint32 |
| 184 | } |
| 185 | return 0 |
| 186 | } |
| 187 | |
| 188 | func (m *Scalars) GetSUint64() uint64 { |
| 189 | if m != nil { |
| 190 | return m.SUint64 |
| 191 | } |
| 192 | return 0 |
| 193 | } |
| 194 | |
| 195 | func (m *Scalars) GetSSint32() int32 { |
| 196 | if m != nil { |
| 197 | return m.SSint32 |
| 198 | } |
| 199 | return 0 |
| 200 | } |
| 201 | |
| 202 | func (m *Scalars) GetSSint64() int64 { |
| 203 | if m != nil { |
| 204 | return m.SSint64 |
| 205 | } |
| 206 | return 0 |
| 207 | } |
| 208 | |
| 209 | func (m *Scalars) GetSFixed32() uint32 { |
| 210 | if m != nil { |
| 211 | return m.SFixed32 |
| 212 | } |
| 213 | return 0 |
| 214 | } |
| 215 | |
| 216 | func (m *Scalars) GetSFixed64() uint64 { |
| 217 | if m != nil { |
| 218 | return m.SFixed64 |
| 219 | } |
| 220 | return 0 |
| 221 | } |
| 222 | |
| 223 | func (m *Scalars) GetSSfixed32() int32 { |
| 224 | if m != nil { |
| 225 | return m.SSfixed32 |
| 226 | } |
| 227 | return 0 |
| 228 | } |
| 229 | |
| 230 | func (m *Scalars) GetSSfixed64() int64 { |
| 231 | if m != nil { |
| 232 | return m.SSfixed64 |
| 233 | } |
| 234 | return 0 |
| 235 | } |
| 236 | |
| 237 | func (m *Scalars) GetSFloat() float32 { |
| 238 | if m != nil { |
| 239 | return m.SFloat |
| 240 | } |
| 241 | return 0 |
| 242 | } |
| 243 | |
| 244 | func (m *Scalars) GetSDouble() float64 { |
| 245 | if m != nil { |
| 246 | return m.SDouble |
| 247 | } |
| 248 | return 0 |
| 249 | } |
| 250 | |
| 251 | func (m *Scalars) GetSBytes() []byte { |
| 252 | if m != nil { |
| 253 | return m.SBytes |
| 254 | } |
| 255 | return nil |
| 256 | } |
| 257 | |
| 258 | func (m *Scalars) GetSString() string { |
| 259 | if m != nil { |
| 260 | return m.SString |
| 261 | } |
| 262 | return "" |
| 263 | } |
| 264 | |
| 265 | // Message contains enum fields. |
| 266 | type Enums struct { |
Herbie Ong | 800c990 | 2018-12-06 15:28:53 -0800 | [diff] [blame] | 267 | SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"` |
| 268 | SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"` |
| 269 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 270 | XXX_unrecognized []byte `json:"-"` |
| 271 | XXX_sizecache int32 `json:"-"` |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 272 | } |
| 273 | |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 274 | type xxx_Enums struct{ m *Enums } |
| 275 | |
| 276 | func (m *Enums) ProtoReflect() protoreflect.Message { |
| 277 | return xxx_Enums{m} |
| 278 | } |
| 279 | func (m xxx_Enums) Type() protoreflect.MessageType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 280 | return xxx_Test_protoFile_MessageTypes[1].Type |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 281 | } |
| 282 | func (m xxx_Enums) KnownFields() protoreflect.KnownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 283 | return xxx_Test_protoFile_MessageTypes[1].KnownFieldsOf(m.m) |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 284 | } |
| 285 | func (m xxx_Enums) UnknownFields() protoreflect.UnknownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 286 | return xxx_Test_protoFile_MessageTypes[1].UnknownFieldsOf(m.m) |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 287 | } |
| 288 | func (m xxx_Enums) Interface() protoreflect.ProtoMessage { |
| 289 | return m.m |
| 290 | } |
| 291 | |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 292 | func (m *Enums) Reset() { *m = Enums{} } |
| 293 | func (m *Enums) String() string { return proto.CompactTextString(m) } |
| 294 | func (*Enums) ProtoMessage() {} |
| 295 | func (*Enums) Descriptor() ([]byte, []int) { |
| 296 | return fileDescriptor_0854715c5b41c422, []int{1} |
| 297 | } |
| 298 | |
| 299 | func (m *Enums) XXX_Unmarshal(b []byte) error { |
| 300 | return xxx_messageInfo_Enums.Unmarshal(m, b) |
| 301 | } |
| 302 | func (m *Enums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 303 | return xxx_messageInfo_Enums.Marshal(b, m, deterministic) |
| 304 | } |
| 305 | func (m *Enums) XXX_Merge(src proto.Message) { |
| 306 | xxx_messageInfo_Enums.Merge(m, src) |
| 307 | } |
| 308 | func (m *Enums) XXX_Size() int { |
| 309 | return xxx_messageInfo_Enums.Size(m) |
| 310 | } |
| 311 | func (m *Enums) XXX_DiscardUnknown() { |
| 312 | xxx_messageInfo_Enums.DiscardUnknown(m) |
| 313 | } |
| 314 | |
| 315 | var xxx_messageInfo_Enums proto.InternalMessageInfo |
| 316 | |
| 317 | func (m *Enums) GetSEnum() Enum { |
| 318 | if m != nil { |
| 319 | return m.SEnum |
| 320 | } |
| 321 | return Enum_ZERO |
| 322 | } |
| 323 | |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 324 | func (m *Enums) GetSNestedEnum() Enums_NestedEnum { |
| 325 | if m != nil { |
| 326 | return m.SNestedEnum |
| 327 | } |
| 328 | return Enums_CERO |
| 329 | } |
| 330 | |
Herbie Ong | 800c990 | 2018-12-06 15:28:53 -0800 | [diff] [blame] | 331 | // Message contains nested message field. |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 332 | type Nests struct { |
Herbie Ong | 800c990 | 2018-12-06 15:28:53 -0800 | [diff] [blame] | 333 | SNested *Nested `protobuf:"bytes,1,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` |
| 334 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 335 | XXX_unrecognized []byte `json:"-"` |
| 336 | XXX_sizecache int32 `json:"-"` |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 337 | } |
| 338 | |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 339 | type xxx_Nests struct{ m *Nests } |
| 340 | |
| 341 | func (m *Nests) ProtoReflect() protoreflect.Message { |
| 342 | return xxx_Nests{m} |
| 343 | } |
| 344 | func (m xxx_Nests) Type() protoreflect.MessageType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 345 | return xxx_Test_protoFile_MessageTypes[2].Type |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 346 | } |
| 347 | func (m xxx_Nests) KnownFields() protoreflect.KnownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 348 | return xxx_Test_protoFile_MessageTypes[2].KnownFieldsOf(m.m) |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 349 | } |
| 350 | func (m xxx_Nests) UnknownFields() protoreflect.UnknownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 351 | return xxx_Test_protoFile_MessageTypes[2].UnknownFieldsOf(m.m) |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 352 | } |
| 353 | func (m xxx_Nests) Interface() protoreflect.ProtoMessage { |
| 354 | return m.m |
| 355 | } |
| 356 | |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 357 | func (m *Nests) Reset() { *m = Nests{} } |
| 358 | func (m *Nests) String() string { return proto.CompactTextString(m) } |
| 359 | func (*Nests) ProtoMessage() {} |
| 360 | func (*Nests) Descriptor() ([]byte, []int) { |
| 361 | return fileDescriptor_0854715c5b41c422, []int{2} |
| 362 | } |
| 363 | |
| 364 | func (m *Nests) XXX_Unmarshal(b []byte) error { |
| 365 | return xxx_messageInfo_Nests.Unmarshal(m, b) |
| 366 | } |
| 367 | func (m *Nests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 368 | return xxx_messageInfo_Nests.Marshal(b, m, deterministic) |
| 369 | } |
| 370 | func (m *Nests) XXX_Merge(src proto.Message) { |
| 371 | xxx_messageInfo_Nests.Merge(m, src) |
| 372 | } |
| 373 | func (m *Nests) XXX_Size() int { |
| 374 | return xxx_messageInfo_Nests.Size(m) |
| 375 | } |
| 376 | func (m *Nests) XXX_DiscardUnknown() { |
| 377 | xxx_messageInfo_Nests.DiscardUnknown(m) |
| 378 | } |
| 379 | |
| 380 | var xxx_messageInfo_Nests proto.InternalMessageInfo |
| 381 | |
| 382 | func (m *Nests) GetSNested() *Nested { |
| 383 | if m != nil { |
| 384 | return m.SNested |
| 385 | } |
| 386 | return nil |
| 387 | } |
| 388 | |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 389 | // Message type used as submessage. |
| 390 | type Nested struct { |
| 391 | SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` |
| 392 | SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` |
| 393 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 394 | XXX_unrecognized []byte `json:"-"` |
| 395 | XXX_sizecache int32 `json:"-"` |
| 396 | } |
| 397 | |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 398 | type xxx_Nested struct{ m *Nested } |
| 399 | |
| 400 | func (m *Nested) ProtoReflect() protoreflect.Message { |
| 401 | return xxx_Nested{m} |
| 402 | } |
| 403 | func (m xxx_Nested) Type() protoreflect.MessageType { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 404 | return xxx_Test_protoFile_MessageTypes[3].Type |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 405 | } |
| 406 | func (m xxx_Nested) KnownFields() protoreflect.KnownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 407 | return xxx_Test_protoFile_MessageTypes[3].KnownFieldsOf(m.m) |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 408 | } |
| 409 | func (m xxx_Nested) UnknownFields() protoreflect.UnknownFields { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 410 | return xxx_Test_protoFile_MessageTypes[3].UnknownFieldsOf(m.m) |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 411 | } |
| 412 | func (m xxx_Nested) Interface() protoreflect.ProtoMessage { |
| 413 | return m.m |
| 414 | } |
| 415 | |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 416 | func (m *Nested) Reset() { *m = Nested{} } |
| 417 | func (m *Nested) String() string { return proto.CompactTextString(m) } |
| 418 | func (*Nested) ProtoMessage() {} |
| 419 | func (*Nested) Descriptor() ([]byte, []int) { |
| 420 | return fileDescriptor_0854715c5b41c422, []int{3} |
| 421 | } |
| 422 | |
| 423 | func (m *Nested) XXX_Unmarshal(b []byte) error { |
| 424 | return xxx_messageInfo_Nested.Unmarshal(m, b) |
| 425 | } |
| 426 | func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 427 | return xxx_messageInfo_Nested.Marshal(b, m, deterministic) |
| 428 | } |
| 429 | func (m *Nested) XXX_Merge(src proto.Message) { |
| 430 | xxx_messageInfo_Nested.Merge(m, src) |
| 431 | } |
| 432 | func (m *Nested) XXX_Size() int { |
| 433 | return xxx_messageInfo_Nested.Size(m) |
| 434 | } |
| 435 | func (m *Nested) XXX_DiscardUnknown() { |
| 436 | xxx_messageInfo_Nested.DiscardUnknown(m) |
| 437 | } |
| 438 | |
| 439 | var xxx_messageInfo_Nested proto.InternalMessageInfo |
| 440 | |
| 441 | func (m *Nested) GetSString() string { |
| 442 | if m != nil { |
| 443 | return m.SString |
| 444 | } |
| 445 | return "" |
| 446 | } |
| 447 | |
| 448 | func (m *Nested) GetSNested() *Nested { |
| 449 | if m != nil { |
| 450 | return m.SNested |
| 451 | } |
| 452 | return nil |
| 453 | } |
| 454 | |
| 455 | func init() { |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 456 | proto.RegisterFile("encoding/textpb/testprotos/pb3/test.proto", fileDescriptor_0854715c5b41c422) |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 457 | proto.RegisterEnum("pb3.Enum", Enum_name, Enum_value) |
| 458 | proto.RegisterEnum("pb3.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value) |
| 459 | proto.RegisterType((*Scalars)(nil), "pb3.Scalars") |
| 460 | proto.RegisterType((*Enums)(nil), "pb3.Enums") |
| 461 | proto.RegisterType((*Nests)(nil), "pb3.Nests") |
| 462 | proto.RegisterType((*Nested)(nil), "pb3.Nested") |
| 463 | } |
| 464 | |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 465 | var fileDescriptor_0854715c5b41c422 = []byte{ |
Herbie Ong | 800c990 | 2018-12-06 15:28:53 -0800 | [diff] [blame] | 466 | // 503 bytes of a gzipped FileDescriptorProto |
| 467 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xdf, 0xab, 0xd3, 0x30, |
| 468 | 0x14, 0xc7, 0xcd, 0xba, 0xb6, 0x5b, 0xe6, 0xbd, 0xd6, 0xe0, 0x30, 0x22, 0x42, 0xd8, 0x83, 0x44, |
| 469 | 0x85, 0x15, 0xda, 0x52, 0x10, 0xc4, 0x87, 0xb9, 0x5d, 0xb8, 0x08, 0x1b, 0x64, 0x5e, 0x84, 0xbd, |
| 470 | 0x94, 0x75, 0xeb, 0xe6, 0xa0, 0x6b, 0xc6, 0x4e, 0x2a, 0xd7, 0xff, 0xc4, 0x27, 0xff, 0x56, 0x49, |
| 471 | 0xb2, 0x9f, 0x0f, 0xfa, 0xd4, 0xf3, 0xed, 0x27, 0xdf, 0x73, 0xbe, 0x87, 0x10, 0xfc, 0xae, 0xa8, |
| 472 | 0x16, 0x72, 0xb9, 0xa9, 0xd6, 0xa1, 0x2a, 0x1e, 0xd5, 0x2e, 0x0f, 0x55, 0x01, 0x6a, 0xb7, 0x97, |
| 473 | 0x4a, 0x42, 0xb8, 0xcb, 0x63, 0x23, 0xfb, 0x46, 0x13, 0x67, 0x97, 0xc7, 0xbd, 0x3f, 0x0e, 0xf6, |
| 474 | 0xa7, 0x8b, 0x79, 0x39, 0xdf, 0x03, 0xe9, 0x62, 0x0f, 0xb2, 0x5c, 0xca, 0x92, 0x22, 0x86, 0x78, |
| 475 | 0x4b, 0xb8, 0x30, 0x90, 0xb2, 0x24, 0x2f, 0xb1, 0x0f, 0xd9, 0xa6, 0x52, 0x71, 0x44, 0x1b, 0x0c, |
| 476 | 0x71, 0x57, 0x78, 0x70, 0xaf, 0xd5, 0x09, 0xa4, 0x09, 0x75, 0x18, 0xe2, 0x8e, 0x05, 0x69, 0x42, |
| 477 | 0x5e, 0xe1, 0x16, 0x64, 0xb5, 0xb5, 0x34, 0x19, 0xe2, 0x37, 0xc2, 0x87, 0x07, 0x23, 0xcf, 0x28, |
| 478 | 0x4d, 0xa8, 0xcb, 0x10, 0x6f, 0x1e, 0xd0, 0xd1, 0x05, 0xd6, 0xe5, 0x31, 0xc4, 0x9f, 0x0b, 0x1f, |
| 479 | 0xa6, 0x17, 0x2e, 0xb0, 0x2e, 0x9f, 0x21, 0x4e, 0x0e, 0x28, 0x4d, 0xc8, 0x6b, 0xdc, 0x86, 0x6c, |
| 480 | 0xb5, 0x79, 0x2c, 0x96, 0x71, 0x44, 0x5b, 0x0c, 0x71, 0x5f, 0xb4, 0xe0, 0xce, 0xea, 0x0b, 0x98, |
| 481 | 0x26, 0xb4, 0xcd, 0x10, 0xf7, 0x8e, 0x30, 0x4d, 0xc8, 0x1b, 0x8c, 0x21, 0x83, 0xa3, 0x15, 0x33, |
| 482 | 0xc4, 0x9f, 0x89, 0x36, 0x4c, 0x0f, 0x3f, 0x2e, 0x71, 0x9a, 0xd0, 0x0e, 0x43, 0x3c, 0x38, 0xe1, |
| 483 | 0x34, 0xb1, 0xcb, 0xaf, 0x4a, 0x39, 0x57, 0xf4, 0x05, 0x43, 0xbc, 0x21, 0x3c, 0xb8, 0xd3, 0xca, |
| 484 | 0x66, 0x5d, 0xca, 0x3a, 0x2f, 0x0b, 0xda, 0x65, 0x88, 0x23, 0xe1, 0xc3, 0xd0, 0x48, 0xeb, 0xc9, |
| 485 | 0x7f, 0xa9, 0x02, 0xe8, 0x2d, 0x43, 0xfc, 0xa9, 0xf0, 0x60, 0xa0, 0xd5, 0x61, 0x3f, 0xb5, 0xdf, |
| 486 | 0x54, 0x6b, 0x7a, 0xc3, 0x10, 0x6f, 0xeb, 0xfd, 0x8c, 0xec, 0xfd, 0x46, 0xd8, 0x1d, 0x55, 0xf5, |
| 487 | 0x16, 0x08, 0xd3, 0xd7, 0x53, 0x54, 0xf5, 0xd6, 0x5c, 0xcf, 0x6d, 0xd4, 0xee, 0xef, 0xf2, 0xb8, |
| 488 | 0xaf, 0x99, 0x70, 0x41, 0x7f, 0xc8, 0x47, 0x7c, 0x03, 0x59, 0x55, 0x80, 0x2a, 0x96, 0xf6, 0xa0, |
| 489 | 0x63, 0x0e, 0x76, 0x4f, 0x07, 0xa1, 0x3f, 0x36, 0xd4, 0x98, 0x3a, 0x70, 0x16, 0xbd, 0x08, 0xe3, |
| 490 | 0xb3, 0x22, 0x2d, 0xdc, 0xfc, 0x32, 0x12, 0x93, 0xe0, 0x09, 0xf1, 0xb1, 0xf3, 0x30, 0x9e, 0x04, |
| 491 | 0x48, 0x17, 0xc3, 0xc9, 0x34, 0x68, 0x68, 0x36, 0xbc, 0x1f, 0xcd, 0x02, 0xdc, 0x0b, 0xb1, 0xab, |
| 492 | 0x3d, 0x40, 0xde, 0xea, 0xf8, 0x76, 0xae, 0xc9, 0xd6, 0x89, 0x3a, 0x66, 0xa4, 0xed, 0x28, 0xfc, |
| 493 | 0xc3, 0xa0, 0xde, 0x57, 0xec, 0xd9, 0xea, 0x6a, 0x61, 0x74, 0xb5, 0xf0, 0x55, 0xb3, 0xc6, 0xbf, |
| 494 | 0x9b, 0xbd, 0xff, 0x80, 0x9b, 0xc7, 0xac, 0xb3, 0x53, 0xd6, 0xc9, 0x78, 0x64, 0xb3, 0x7e, 0xfb, |
| 495 | 0x3e, 0x09, 0x1a, 0xa6, 0x18, 0x8d, 0x03, 0x3c, 0xf8, 0x3c, 0xfb, 0xb4, 0xde, 0xa8, 0x1f, 0x75, |
| 496 | 0xde, 0x5f, 0xc8, 0x6d, 0xb8, 0x96, 0xe5, 0xbc, 0x5a, 0x87, 0xe6, 0x19, 0xe4, 0xf5, 0x2a, 0xfc, |
| 497 | 0x19, 0x85, 0xff, 0x7f, 0x36, 0xb9, 0x67, 0xea, 0xf8, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd9, |
| 498 | 0x7d, 0x94, 0x3a, 0x5f, 0x03, 0x00, 0x00, |
Herbie Ong | cddf819 | 2018-11-28 18:25:20 -0800 | [diff] [blame] | 499 | } |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 500 | |
| 501 | func init() { |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 502 | xxx_Test_protoFile_FileDesc.Enums = xxx_Test_protoFile_EnumDescs[0:1] |
| 503 | xxx_Test_protoFile_FileDesc.Messages = xxx_Test_protoFile_MessageDescs[0:4] |
| 504 | xxx_Test_protoFile_MessageDescs[1].Enums = xxx_Test_protoFile_EnumDescs[1:2] |
| 505 | xxx_Test_protoFile_MessageDescs[1].Fields[0].EnumType = xxx_Test_protoFile_EnumTypes[0] |
| 506 | xxx_Test_protoFile_MessageDescs[1].Fields[1].EnumType = xxx_Test_protoFile_EnumTypes[1] |
| 507 | xxx_Test_protoFile_MessageDescs[2].Fields[0].MessageType = xxx_Test_protoFile_MessageTypes[3].Type |
| 508 | xxx_Test_protoFile_MessageDescs[3].Fields[1].MessageType = xxx_Test_protoFile_MessageTypes[3].Type |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 509 | var err error |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 510 | Test_protoFile, err = prototype.NewFile(&xxx_Test_protoFile_FileDesc) |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 511 | if err != nil { |
| 512 | panic(err) |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | const _ = protoimpl.EnforceVersion(protoimpl.Version - 0) |
| 517 | |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 518 | var Test_protoFile protoreflect.FileDescriptor |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 519 | |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 520 | var xxx_Test_protoFile_FileDesc = prototype.File{ |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 521 | Syntax: protoreflect.Proto3, |
| 522 | Path: "encoding/textpb/testprotos/pb3/test.proto", |
| 523 | Package: "pb3", |
| 524 | } |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 525 | var xxx_Test_protoFile_EnumTypes = [2]protoreflect.EnumType{ |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 526 | prototype.GoEnum( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 527 | xxx_Test_protoFile_EnumDescs[0].Reference(), |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 528 | func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum { |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 529 | return Enum(n) |
| 530 | }, |
| 531 | ), |
| 532 | prototype.GoEnum( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 533 | xxx_Test_protoFile_EnumDescs[1].Reference(), |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 534 | func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.Enum { |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 535 | return Enums_NestedEnum(n) |
| 536 | }, |
| 537 | ), |
| 538 | } |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 539 | var xxx_Test_protoFile_EnumDescs = [2]prototype.Enum{ |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 540 | { |
| 541 | Name: "Enum", |
| 542 | Values: []prototype.EnumValue{ |
| 543 | {Name: "ZERO", Number: 0}, |
| 544 | {Name: "ONE", Number: 1}, |
| 545 | {Name: "TWO", Number: 2}, |
| 546 | {Name: "TEN", Number: 10}, |
| 547 | }, |
| 548 | }, |
| 549 | { |
| 550 | Name: "NestedEnum", |
| 551 | Values: []prototype.EnumValue{ |
| 552 | {Name: "CERO", Number: 0}, |
| 553 | {Name: "UNO", Number: 1}, |
| 554 | {Name: "DOS", Number: 2}, |
| 555 | {Name: "DIEZ", Number: 10}, |
| 556 | }, |
| 557 | }, |
| 558 | } |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 559 | var xxx_Test_protoFile_MessageTypes = [4]protoimpl.MessageType{ |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 560 | {Type: prototype.GoMessage( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 561 | xxx_Test_protoFile_MessageDescs[0].Reference(), |
Joe Tsai | 3bc7d6f | 2019-01-09 02:57:13 -0800 | [diff] [blame] | 562 | func(protoreflect.MessageType) protoreflect.Message { |
| 563 | return xxx_Scalars{new(Scalars)} |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 564 | }, |
| 565 | )}, |
| 566 | {Type: prototype.GoMessage( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 567 | xxx_Test_protoFile_MessageDescs[1].Reference(), |
Joe Tsai | 3bc7d6f | 2019-01-09 02:57:13 -0800 | [diff] [blame] | 568 | func(protoreflect.MessageType) protoreflect.Message { |
| 569 | return xxx_Enums{new(Enums)} |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 570 | }, |
| 571 | )}, |
| 572 | {Type: prototype.GoMessage( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 573 | xxx_Test_protoFile_MessageDescs[2].Reference(), |
Joe Tsai | 3bc7d6f | 2019-01-09 02:57:13 -0800 | [diff] [blame] | 574 | func(protoreflect.MessageType) protoreflect.Message { |
| 575 | return xxx_Nests{new(Nests)} |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 576 | }, |
| 577 | )}, |
| 578 | {Type: prototype.GoMessage( |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 579 | xxx_Test_protoFile_MessageDescs[3].Reference(), |
Joe Tsai | 3bc7d6f | 2019-01-09 02:57:13 -0800 | [diff] [blame] | 580 | func(protoreflect.MessageType) protoreflect.Message { |
| 581 | return xxx_Nested{new(Nested)} |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 582 | }, |
| 583 | )}, |
| 584 | } |
Joe Tsai | 5681bb2 | 2019-01-09 21:31:15 -0800 | [diff] [blame] | 585 | var xxx_Test_protoFile_MessageDescs = [4]prototype.Message{ |
Herbie Ong | 7065195 | 2018-12-13 14:19:50 -0800 | [diff] [blame] | 586 | { |
| 587 | Name: "Scalars", |
| 588 | Fields: []prototype.Field{ |
| 589 | { |
| 590 | Name: "s_bool", |
| 591 | Number: 1, |
| 592 | Cardinality: protoreflect.Optional, |
| 593 | Kind: protoreflect.BoolKind, |
| 594 | JSONName: "sBool", |
| 595 | IsPacked: prototype.False, |
| 596 | }, |
| 597 | { |
| 598 | Name: "s_int32", |
| 599 | Number: 2, |
| 600 | Cardinality: protoreflect.Optional, |
| 601 | Kind: protoreflect.Int32Kind, |
| 602 | JSONName: "sInt32", |
| 603 | IsPacked: prototype.False, |
| 604 | }, |
| 605 | { |
| 606 | Name: "s_int64", |
| 607 | Number: 3, |
| 608 | Cardinality: protoreflect.Optional, |
| 609 | Kind: protoreflect.Int64Kind, |
| 610 | JSONName: "sInt64", |
| 611 | IsPacked: prototype.False, |
| 612 | }, |
| 613 | { |
| 614 | Name: "s_uint32", |
| 615 | Number: 4, |
| 616 | Cardinality: protoreflect.Optional, |
| 617 | Kind: protoreflect.Uint32Kind, |
| 618 | JSONName: "sUint32", |
| 619 | IsPacked: prototype.False, |
| 620 | }, |
| 621 | { |
| 622 | Name: "s_uint64", |
| 623 | Number: 5, |
| 624 | Cardinality: protoreflect.Optional, |
| 625 | Kind: protoreflect.Uint64Kind, |
| 626 | JSONName: "sUint64", |
| 627 | IsPacked: prototype.False, |
| 628 | }, |
| 629 | { |
| 630 | Name: "s_sint32", |
| 631 | Number: 6, |
| 632 | Cardinality: protoreflect.Optional, |
| 633 | Kind: protoreflect.Sint32Kind, |
| 634 | JSONName: "sSint32", |
| 635 | IsPacked: prototype.False, |
| 636 | }, |
| 637 | { |
| 638 | Name: "s_sint64", |
| 639 | Number: 7, |
| 640 | Cardinality: protoreflect.Optional, |
| 641 | Kind: protoreflect.Sint64Kind, |
| 642 | JSONName: "sSint64", |
| 643 | IsPacked: prototype.False, |
| 644 | }, |
| 645 | { |
| 646 | Name: "s_fixed32", |
| 647 | Number: 8, |
| 648 | Cardinality: protoreflect.Optional, |
| 649 | Kind: protoreflect.Fixed32Kind, |
| 650 | JSONName: "sFixed32", |
| 651 | IsPacked: prototype.False, |
| 652 | }, |
| 653 | { |
| 654 | Name: "s_fixed64", |
| 655 | Number: 9, |
| 656 | Cardinality: protoreflect.Optional, |
| 657 | Kind: protoreflect.Fixed64Kind, |
| 658 | JSONName: "sFixed64", |
| 659 | IsPacked: prototype.False, |
| 660 | }, |
| 661 | { |
| 662 | Name: "s_sfixed32", |
| 663 | Number: 10, |
| 664 | Cardinality: protoreflect.Optional, |
| 665 | Kind: protoreflect.Sfixed32Kind, |
| 666 | JSONName: "sSfixed32", |
| 667 | IsPacked: prototype.False, |
| 668 | }, |
| 669 | { |
| 670 | Name: "s_sfixed64", |
| 671 | Number: 11, |
| 672 | Cardinality: protoreflect.Optional, |
| 673 | Kind: protoreflect.Sfixed64Kind, |
| 674 | JSONName: "sSfixed64", |
| 675 | IsPacked: prototype.False, |
| 676 | }, |
| 677 | { |
| 678 | Name: "s_float", |
| 679 | Number: 20, |
| 680 | Cardinality: protoreflect.Optional, |
| 681 | Kind: protoreflect.FloatKind, |
| 682 | JSONName: "sFloat", |
| 683 | IsPacked: prototype.False, |
| 684 | }, |
| 685 | { |
| 686 | Name: "s_double", |
| 687 | Number: 21, |
| 688 | Cardinality: protoreflect.Optional, |
| 689 | Kind: protoreflect.DoubleKind, |
| 690 | JSONName: "sDouble", |
| 691 | IsPacked: prototype.False, |
| 692 | }, |
| 693 | { |
| 694 | Name: "s_bytes", |
| 695 | Number: 14, |
| 696 | Cardinality: protoreflect.Optional, |
| 697 | Kind: protoreflect.BytesKind, |
| 698 | JSONName: "sBytes", |
| 699 | IsPacked: prototype.False, |
| 700 | }, |
| 701 | { |
| 702 | Name: "s_string", |
| 703 | Number: 13, |
| 704 | Cardinality: protoreflect.Optional, |
| 705 | Kind: protoreflect.StringKind, |
| 706 | JSONName: "sString", |
| 707 | IsPacked: prototype.False, |
| 708 | }, |
| 709 | }, |
| 710 | }, |
| 711 | { |
| 712 | Name: "Enums", |
| 713 | Fields: []prototype.Field{ |
| 714 | { |
| 715 | Name: "s_enum", |
| 716 | Number: 1, |
| 717 | Cardinality: protoreflect.Optional, |
| 718 | Kind: protoreflect.EnumKind, |
| 719 | JSONName: "sEnum", |
| 720 | IsPacked: prototype.False, |
| 721 | }, |
| 722 | { |
| 723 | Name: "s_nested_enum", |
| 724 | Number: 3, |
| 725 | Cardinality: protoreflect.Optional, |
| 726 | Kind: protoreflect.EnumKind, |
| 727 | JSONName: "sNestedEnum", |
| 728 | IsPacked: prototype.False, |
| 729 | }, |
| 730 | }, |
| 731 | }, |
| 732 | { |
| 733 | Name: "Nests", |
| 734 | Fields: []prototype.Field{ |
| 735 | { |
| 736 | Name: "s_nested", |
| 737 | Number: 1, |
| 738 | Cardinality: protoreflect.Optional, |
| 739 | Kind: protoreflect.MessageKind, |
| 740 | JSONName: "sNested", |
| 741 | IsPacked: prototype.False, |
| 742 | }, |
| 743 | }, |
| 744 | }, |
| 745 | { |
| 746 | Name: "Nested", |
| 747 | Fields: []prototype.Field{ |
| 748 | { |
| 749 | Name: "s_string", |
| 750 | Number: 1, |
| 751 | Cardinality: protoreflect.Optional, |
| 752 | Kind: protoreflect.StringKind, |
| 753 | JSONName: "sString", |
| 754 | IsPacked: prototype.False, |
| 755 | }, |
| 756 | { |
| 757 | Name: "s_nested", |
| 758 | Number: 2, |
| 759 | Cardinality: protoreflect.Optional, |
| 760 | Kind: protoreflect.MessageKind, |
| 761 | JSONName: "sNested", |
| 762 | IsPacked: prototype.False, |
| 763 | }, |
| 764 | }, |
| 765 | }, |
| 766 | } |