Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 2 | // source: pb3/test.proto |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 3 | |
| 4 | package pb3 |
| 5 | |
| 6 | import ( |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 7 | proto "github.com/golang/protobuf/proto" |
| 8 | protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" |
| 9 | protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl" |
| 10 | reflect "reflect" |
| 11 | ) |
| 12 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 13 | type Enum int32 |
| 14 | |
| 15 | const ( |
| 16 | Enum_ZERO Enum = 0 |
| 17 | Enum_ONE Enum = 1 |
| 18 | Enum_TWO Enum = 2 |
| 19 | Enum_TEN Enum = 10 |
| 20 | ) |
| 21 | |
| 22 | func (e Enum) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 23 | return xxx_File_pb3_test_proto_enumTypes[0] |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 24 | } |
| 25 | func (e Enum) Number() protoreflect.EnumNumber { |
| 26 | return protoreflect.EnumNumber(e) |
| 27 | } |
| 28 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 29 | // Deprecated: Use Enum.Type.Values instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 30 | var Enum_name = map[int32]string{ |
| 31 | 0: "ZERO", |
| 32 | 1: "ONE", |
| 33 | 2: "TWO", |
| 34 | 10: "TEN", |
| 35 | } |
| 36 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 37 | // Deprecated: Use Enum.Type.Values instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 38 | var Enum_value = map[string]int32{ |
| 39 | "ZERO": 0, |
| 40 | "ONE": 1, |
| 41 | "TWO": 2, |
| 42 | "TEN": 10, |
| 43 | } |
| 44 | |
| 45 | func (x Enum) String() string { |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 46 | return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x)) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 47 | } |
| 48 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 49 | // Deprecated: Use Enum.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 50 | func (Enum) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 51 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | type Enums_NestedEnum int32 |
| 55 | |
| 56 | const ( |
| 57 | Enums_CERO Enums_NestedEnum = 0 |
| 58 | Enums_UNO Enums_NestedEnum = 1 |
| 59 | Enums_DOS Enums_NestedEnum = 2 |
| 60 | Enums_DIEZ Enums_NestedEnum = 10 |
| 61 | ) |
| 62 | |
| 63 | func (e Enums_NestedEnum) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 64 | return xxx_File_pb3_test_proto_enumTypes[1] |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 65 | } |
| 66 | func (e Enums_NestedEnum) Number() protoreflect.EnumNumber { |
| 67 | return protoreflect.EnumNumber(e) |
| 68 | } |
| 69 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 70 | // Deprecated: Use Enums_NestedEnum.Type.Values instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 71 | var Enums_NestedEnum_name = map[int32]string{ |
| 72 | 0: "CERO", |
| 73 | 1: "UNO", |
| 74 | 2: "DOS", |
| 75 | 10: "DIEZ", |
| 76 | } |
| 77 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 78 | // Deprecated: Use Enums_NestedEnum.Type.Values instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 79 | var Enums_NestedEnum_value = map[string]int32{ |
| 80 | "CERO": 0, |
| 81 | "UNO": 1, |
| 82 | "DOS": 2, |
| 83 | "DIEZ": 10, |
| 84 | } |
| 85 | |
| 86 | func (x Enums_NestedEnum) String() string { |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 87 | return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x)) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 88 | } |
| 89 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 90 | // Deprecated: Use Enums_NestedEnum.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 91 | func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 92 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1, 0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 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 | |
| 117 | func (m *Scalars) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 118 | return xxx_File_pb3_test_proto_messageTypes[0].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 119 | } |
| 120 | func (m *Scalars) Reset() { *m = Scalars{} } |
| 121 | func (m *Scalars) String() string { return proto.CompactTextString(m) } |
| 122 | func (*Scalars) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 123 | |
| 124 | // Deprecated: Use Scalars.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 125 | func (*Scalars) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 126 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 127 | } |
| 128 | |
| 129 | func (m *Scalars) XXX_Unmarshal(b []byte) error { |
| 130 | return xxx_messageInfo_Scalars.Unmarshal(m, b) |
| 131 | } |
| 132 | func (m *Scalars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 133 | return xxx_messageInfo_Scalars.Marshal(b, m, deterministic) |
| 134 | } |
| 135 | func (m *Scalars) XXX_Merge(src proto.Message) { |
| 136 | xxx_messageInfo_Scalars.Merge(m, src) |
| 137 | } |
| 138 | func (m *Scalars) XXX_Size() int { |
| 139 | return xxx_messageInfo_Scalars.Size(m) |
| 140 | } |
| 141 | func (m *Scalars) XXX_DiscardUnknown() { |
| 142 | xxx_messageInfo_Scalars.DiscardUnknown(m) |
| 143 | } |
| 144 | |
| 145 | var xxx_messageInfo_Scalars proto.InternalMessageInfo |
| 146 | |
| 147 | func (m *Scalars) GetSBool() bool { |
| 148 | if m != nil { |
| 149 | return m.SBool |
| 150 | } |
| 151 | return false |
| 152 | } |
| 153 | |
| 154 | func (m *Scalars) GetSInt32() int32 { |
| 155 | if m != nil { |
| 156 | return m.SInt32 |
| 157 | } |
| 158 | return 0 |
| 159 | } |
| 160 | |
| 161 | func (m *Scalars) GetSInt64() int64 { |
| 162 | if m != nil { |
| 163 | return m.SInt64 |
| 164 | } |
| 165 | return 0 |
| 166 | } |
| 167 | |
| 168 | func (m *Scalars) GetSUint32() uint32 { |
| 169 | if m != nil { |
| 170 | return m.SUint32 |
| 171 | } |
| 172 | return 0 |
| 173 | } |
| 174 | |
| 175 | func (m *Scalars) GetSUint64() uint64 { |
| 176 | if m != nil { |
| 177 | return m.SUint64 |
| 178 | } |
| 179 | return 0 |
| 180 | } |
| 181 | |
| 182 | func (m *Scalars) GetSSint32() int32 { |
| 183 | if m != nil { |
| 184 | return m.SSint32 |
| 185 | } |
| 186 | return 0 |
| 187 | } |
| 188 | |
| 189 | func (m *Scalars) GetSSint64() int64 { |
| 190 | if m != nil { |
| 191 | return m.SSint64 |
| 192 | } |
| 193 | return 0 |
| 194 | } |
| 195 | |
| 196 | func (m *Scalars) GetSFixed32() uint32 { |
| 197 | if m != nil { |
| 198 | return m.SFixed32 |
| 199 | } |
| 200 | return 0 |
| 201 | } |
| 202 | |
| 203 | func (m *Scalars) GetSFixed64() uint64 { |
| 204 | if m != nil { |
| 205 | return m.SFixed64 |
| 206 | } |
| 207 | return 0 |
| 208 | } |
| 209 | |
| 210 | func (m *Scalars) GetSSfixed32() int32 { |
| 211 | if m != nil { |
| 212 | return m.SSfixed32 |
| 213 | } |
| 214 | return 0 |
| 215 | } |
| 216 | |
| 217 | func (m *Scalars) GetSSfixed64() int64 { |
| 218 | if m != nil { |
| 219 | return m.SSfixed64 |
| 220 | } |
| 221 | return 0 |
| 222 | } |
| 223 | |
| 224 | func (m *Scalars) GetSFloat() float32 { |
| 225 | if m != nil { |
| 226 | return m.SFloat |
| 227 | } |
| 228 | return 0 |
| 229 | } |
| 230 | |
| 231 | func (m *Scalars) GetSDouble() float64 { |
| 232 | if m != nil { |
| 233 | return m.SDouble |
| 234 | } |
| 235 | return 0 |
| 236 | } |
| 237 | |
| 238 | func (m *Scalars) GetSBytes() []byte { |
| 239 | if m != nil { |
| 240 | return m.SBytes |
| 241 | } |
| 242 | return nil |
| 243 | } |
| 244 | |
| 245 | func (m *Scalars) GetSString() string { |
| 246 | if m != nil { |
| 247 | return m.SString |
| 248 | } |
| 249 | return "" |
| 250 | } |
| 251 | |
| 252 | // Message contains enum fields. |
| 253 | type Enums struct { |
| 254 | SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"` |
| 255 | SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"` |
| 256 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 257 | XXX_unrecognized []byte `json:"-"` |
| 258 | XXX_sizecache int32 `json:"-"` |
| 259 | } |
| 260 | |
| 261 | func (m *Enums) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 262 | return xxx_File_pb3_test_proto_messageTypes[1].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 263 | } |
| 264 | func (m *Enums) Reset() { *m = Enums{} } |
| 265 | func (m *Enums) String() string { return proto.CompactTextString(m) } |
| 266 | func (*Enums) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 267 | |
| 268 | // Deprecated: Use Enums.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 269 | func (*Enums) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 270 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 271 | } |
| 272 | |
| 273 | func (m *Enums) XXX_Unmarshal(b []byte) error { |
| 274 | return xxx_messageInfo_Enums.Unmarshal(m, b) |
| 275 | } |
| 276 | func (m *Enums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 277 | return xxx_messageInfo_Enums.Marshal(b, m, deterministic) |
| 278 | } |
| 279 | func (m *Enums) XXX_Merge(src proto.Message) { |
| 280 | xxx_messageInfo_Enums.Merge(m, src) |
| 281 | } |
| 282 | func (m *Enums) XXX_Size() int { |
| 283 | return xxx_messageInfo_Enums.Size(m) |
| 284 | } |
| 285 | func (m *Enums) XXX_DiscardUnknown() { |
| 286 | xxx_messageInfo_Enums.DiscardUnknown(m) |
| 287 | } |
| 288 | |
| 289 | var xxx_messageInfo_Enums proto.InternalMessageInfo |
| 290 | |
| 291 | func (m *Enums) GetSEnum() Enum { |
| 292 | if m != nil { |
| 293 | return m.SEnum |
| 294 | } |
| 295 | return Enum_ZERO |
| 296 | } |
| 297 | |
| 298 | func (m *Enums) GetSNestedEnum() Enums_NestedEnum { |
| 299 | if m != nil { |
| 300 | return m.SNestedEnum |
| 301 | } |
| 302 | return Enums_CERO |
| 303 | } |
| 304 | |
| 305 | // Message contains nested message field. |
| 306 | type Nests struct { |
| 307 | SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` |
| 308 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 309 | XXX_unrecognized []byte `json:"-"` |
| 310 | XXX_sizecache int32 `json:"-"` |
| 311 | } |
| 312 | |
| 313 | func (m *Nests) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 314 | return xxx_File_pb3_test_proto_messageTypes[2].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 315 | } |
| 316 | func (m *Nests) Reset() { *m = Nests{} } |
| 317 | func (m *Nests) String() string { return proto.CompactTextString(m) } |
| 318 | func (*Nests) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 319 | |
| 320 | // Deprecated: Use Nests.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 321 | func (*Nests) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 322 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{2} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 323 | } |
| 324 | |
| 325 | func (m *Nests) XXX_Unmarshal(b []byte) error { |
| 326 | return xxx_messageInfo_Nests.Unmarshal(m, b) |
| 327 | } |
| 328 | func (m *Nests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 329 | return xxx_messageInfo_Nests.Marshal(b, m, deterministic) |
| 330 | } |
| 331 | func (m *Nests) XXX_Merge(src proto.Message) { |
| 332 | xxx_messageInfo_Nests.Merge(m, src) |
| 333 | } |
| 334 | func (m *Nests) XXX_Size() int { |
| 335 | return xxx_messageInfo_Nests.Size(m) |
| 336 | } |
| 337 | func (m *Nests) XXX_DiscardUnknown() { |
| 338 | xxx_messageInfo_Nests.DiscardUnknown(m) |
| 339 | } |
| 340 | |
| 341 | var xxx_messageInfo_Nests proto.InternalMessageInfo |
| 342 | |
| 343 | func (m *Nests) GetSNested() *Nested { |
| 344 | if m != nil { |
| 345 | return m.SNested |
| 346 | } |
| 347 | return nil |
| 348 | } |
| 349 | |
| 350 | // Message type used as submessage. |
| 351 | type Nested struct { |
| 352 | SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` |
| 353 | SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` |
| 354 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 355 | XXX_unrecognized []byte `json:"-"` |
| 356 | XXX_sizecache int32 `json:"-"` |
| 357 | } |
| 358 | |
| 359 | func (m *Nested) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 360 | return xxx_File_pb3_test_proto_messageTypes[3].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 361 | } |
| 362 | func (m *Nested) Reset() { *m = Nested{} } |
| 363 | func (m *Nested) String() string { return proto.CompactTextString(m) } |
| 364 | func (*Nested) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 365 | |
| 366 | // Deprecated: Use Nested.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 367 | func (*Nested) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 368 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{3} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 369 | } |
| 370 | |
| 371 | func (m *Nested) XXX_Unmarshal(b []byte) error { |
| 372 | return xxx_messageInfo_Nested.Unmarshal(m, b) |
| 373 | } |
| 374 | func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 375 | return xxx_messageInfo_Nested.Marshal(b, m, deterministic) |
| 376 | } |
| 377 | func (m *Nested) XXX_Merge(src proto.Message) { |
| 378 | xxx_messageInfo_Nested.Merge(m, src) |
| 379 | } |
| 380 | func (m *Nested) XXX_Size() int { |
| 381 | return xxx_messageInfo_Nested.Size(m) |
| 382 | } |
| 383 | func (m *Nested) XXX_DiscardUnknown() { |
| 384 | xxx_messageInfo_Nested.DiscardUnknown(m) |
| 385 | } |
| 386 | |
| 387 | var xxx_messageInfo_Nested proto.InternalMessageInfo |
| 388 | |
| 389 | func (m *Nested) GetSString() string { |
| 390 | if m != nil { |
| 391 | return m.SString |
| 392 | } |
| 393 | return "" |
| 394 | } |
| 395 | |
| 396 | func (m *Nested) GetSNested() *Nested { |
| 397 | if m != nil { |
| 398 | return m.SNested |
| 399 | } |
| 400 | return nil |
| 401 | } |
| 402 | |
| 403 | // Message contains oneof field. |
| 404 | type Oneofs struct { |
| 405 | // Types that are valid to be assigned to Union: |
| 406 | // *Oneofs_OneofEnum |
| 407 | // *Oneofs_OneofString |
| 408 | // *Oneofs_OneofNested |
| 409 | Union isOneofs_Union `protobuf_oneof:"union"` |
| 410 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 411 | XXX_unrecognized []byte `json:"-"` |
| 412 | XXX_sizecache int32 `json:"-"` |
| 413 | } |
| 414 | |
| 415 | func (m *Oneofs) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 416 | return xxx_File_pb3_test_proto_messageTypes[4].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 417 | } |
| 418 | func (m *Oneofs) Reset() { *m = Oneofs{} } |
| 419 | func (m *Oneofs) String() string { return proto.CompactTextString(m) } |
| 420 | func (*Oneofs) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 421 | |
| 422 | // Deprecated: Use Oneofs.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 423 | func (*Oneofs) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 424 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{4} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 425 | } |
| 426 | |
| 427 | func (m *Oneofs) XXX_Unmarshal(b []byte) error { |
| 428 | return xxx_messageInfo_Oneofs.Unmarshal(m, b) |
| 429 | } |
| 430 | func (m *Oneofs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 431 | return xxx_messageInfo_Oneofs.Marshal(b, m, deterministic) |
| 432 | } |
| 433 | func (m *Oneofs) XXX_Merge(src proto.Message) { |
| 434 | xxx_messageInfo_Oneofs.Merge(m, src) |
| 435 | } |
| 436 | func (m *Oneofs) XXX_Size() int { |
| 437 | return xxx_messageInfo_Oneofs.Size(m) |
| 438 | } |
| 439 | func (m *Oneofs) XXX_DiscardUnknown() { |
| 440 | xxx_messageInfo_Oneofs.DiscardUnknown(m) |
| 441 | } |
| 442 | |
| 443 | var xxx_messageInfo_Oneofs proto.InternalMessageInfo |
| 444 | |
| 445 | type isOneofs_Union interface { |
| 446 | isOneofs_Union() |
| 447 | } |
| 448 | |
| 449 | type Oneofs_OneofEnum struct { |
| 450 | OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"` |
| 451 | } |
| 452 | |
| 453 | type Oneofs_OneofString struct { |
| 454 | OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"` |
| 455 | } |
| 456 | |
| 457 | type Oneofs_OneofNested struct { |
| 458 | OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"` |
| 459 | } |
| 460 | |
| 461 | func (*Oneofs_OneofEnum) isOneofs_Union() {} |
| 462 | |
| 463 | func (*Oneofs_OneofString) isOneofs_Union() {} |
| 464 | |
| 465 | func (*Oneofs_OneofNested) isOneofs_Union() {} |
| 466 | |
| 467 | func (m *Oneofs) GetUnion() isOneofs_Union { |
| 468 | if m != nil { |
| 469 | return m.Union |
| 470 | } |
| 471 | return nil |
| 472 | } |
| 473 | |
| 474 | func (m *Oneofs) GetOneofEnum() Enum { |
| 475 | if x, ok := m.GetUnion().(*Oneofs_OneofEnum); ok { |
| 476 | return x.OneofEnum |
| 477 | } |
| 478 | return Enum_ZERO |
| 479 | } |
| 480 | |
| 481 | func (m *Oneofs) GetOneofString() string { |
| 482 | if x, ok := m.GetUnion().(*Oneofs_OneofString); ok { |
| 483 | return x.OneofString |
| 484 | } |
| 485 | return "" |
| 486 | } |
| 487 | |
| 488 | func (m *Oneofs) GetOneofNested() *Nested { |
| 489 | if x, ok := m.GetUnion().(*Oneofs_OneofNested); ok { |
| 490 | return x.OneofNested |
| 491 | } |
| 492 | return nil |
| 493 | } |
| 494 | |
| 495 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 496 | func (*Oneofs) XXX_OneofWrappers() []interface{} { |
| 497 | return []interface{}{ |
| 498 | (*Oneofs_OneofEnum)(nil), |
| 499 | (*Oneofs_OneofString)(nil), |
| 500 | (*Oneofs_OneofNested)(nil), |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | // Message contains map fields. |
| 505 | type Maps struct { |
| 506 | Int32ToStr map[int32]string `protobuf:"bytes,1,rep,name=int32_to_str,json=int32ToStr,proto3" json:"int32_to_str,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 507 | BoolToUint32 map[bool]uint32 `protobuf:"bytes,2,rep,name=bool_to_uint32,json=boolToUint32,proto3" json:"bool_to_uint32,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` |
| 508 | Uint64ToEnum map[uint64]Enum `protobuf:"bytes,3,rep,name=uint64_to_enum,json=uint64ToEnum,proto3" json:"uint64_to_enum,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=pb3.Enum"` |
| 509 | StrToNested map[string]*Nested `protobuf:"bytes,4,rep,name=str_to_nested,json=strToNested,proto3" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 510 | StrToOneofs map[string]*Oneofs `protobuf:"bytes,5,rep,name=str_to_oneofs,json=strToOneofs,proto3" json:"str_to_oneofs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 511 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 512 | XXX_unrecognized []byte `json:"-"` |
| 513 | XXX_sizecache int32 `json:"-"` |
| 514 | } |
| 515 | |
| 516 | func (m *Maps) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 517 | return xxx_File_pb3_test_proto_messageTypes[5].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 518 | } |
| 519 | func (m *Maps) Reset() { *m = Maps{} } |
| 520 | func (m *Maps) String() string { return proto.CompactTextString(m) } |
| 521 | func (*Maps) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 522 | |
| 523 | // Deprecated: Use Maps.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 524 | func (*Maps) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 525 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{5} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 526 | } |
| 527 | |
| 528 | func (m *Maps) XXX_Unmarshal(b []byte) error { |
| 529 | return xxx_messageInfo_Maps.Unmarshal(m, b) |
| 530 | } |
| 531 | func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 532 | return xxx_messageInfo_Maps.Marshal(b, m, deterministic) |
| 533 | } |
| 534 | func (m *Maps) XXX_Merge(src proto.Message) { |
| 535 | xxx_messageInfo_Maps.Merge(m, src) |
| 536 | } |
| 537 | func (m *Maps) XXX_Size() int { |
| 538 | return xxx_messageInfo_Maps.Size(m) |
| 539 | } |
| 540 | func (m *Maps) XXX_DiscardUnknown() { |
| 541 | xxx_messageInfo_Maps.DiscardUnknown(m) |
| 542 | } |
| 543 | |
| 544 | var xxx_messageInfo_Maps proto.InternalMessageInfo |
| 545 | |
| 546 | func (m *Maps) GetInt32ToStr() map[int32]string { |
| 547 | if m != nil { |
| 548 | return m.Int32ToStr |
| 549 | } |
| 550 | return nil |
| 551 | } |
| 552 | |
| 553 | func (m *Maps) GetBoolToUint32() map[bool]uint32 { |
| 554 | if m != nil { |
| 555 | return m.BoolToUint32 |
| 556 | } |
| 557 | return nil |
| 558 | } |
| 559 | |
| 560 | func (m *Maps) GetUint64ToEnum() map[uint64]Enum { |
| 561 | if m != nil { |
| 562 | return m.Uint64ToEnum |
| 563 | } |
| 564 | return nil |
| 565 | } |
| 566 | |
| 567 | func (m *Maps) GetStrToNested() map[string]*Nested { |
| 568 | if m != nil { |
| 569 | return m.StrToNested |
| 570 | } |
| 571 | return nil |
| 572 | } |
| 573 | |
| 574 | func (m *Maps) GetStrToOneofs() map[string]*Oneofs { |
| 575 | if m != nil { |
| 576 | return m.StrToOneofs |
| 577 | } |
| 578 | return nil |
| 579 | } |
| 580 | |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 581 | // Message for testing json_name option. |
| 582 | type JSONNames struct { |
| 583 | SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"` |
| 584 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 585 | XXX_unrecognized []byte `json:"-"` |
| 586 | XXX_sizecache int32 `json:"-"` |
| 587 | } |
| 588 | |
| 589 | func (m *JSONNames) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 590 | return xxx_File_pb3_test_proto_messageTypes[6].MessageOf(m) |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 591 | } |
| 592 | func (m *JSONNames) Reset() { *m = JSONNames{} } |
| 593 | func (m *JSONNames) String() string { return proto.CompactTextString(m) } |
| 594 | func (*JSONNames) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 595 | |
| 596 | // Deprecated: Use JSONNames.ProtoReflect.Type instead. |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 597 | func (*JSONNames) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 598 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{6} |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 599 | } |
| 600 | |
| 601 | func (m *JSONNames) XXX_Unmarshal(b []byte) error { |
| 602 | return xxx_messageInfo_JSONNames.Unmarshal(m, b) |
| 603 | } |
| 604 | func (m *JSONNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 605 | return xxx_messageInfo_JSONNames.Marshal(b, m, deterministic) |
| 606 | } |
| 607 | func (m *JSONNames) XXX_Merge(src proto.Message) { |
| 608 | xxx_messageInfo_JSONNames.Merge(m, src) |
| 609 | } |
| 610 | func (m *JSONNames) XXX_Size() int { |
| 611 | return xxx_messageInfo_JSONNames.Size(m) |
| 612 | } |
| 613 | func (m *JSONNames) XXX_DiscardUnknown() { |
| 614 | xxx_messageInfo_JSONNames.DiscardUnknown(m) |
| 615 | } |
| 616 | |
| 617 | var xxx_messageInfo_JSONNames proto.InternalMessageInfo |
| 618 | |
| 619 | func (m *JSONNames) GetSString() string { |
| 620 | if m != nil { |
| 621 | return m.SString |
| 622 | } |
| 623 | return "" |
| 624 | } |
| 625 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 626 | func init() { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 627 | proto.RegisterFile("pb3/test.proto", xxx_File_pb3_test_proto_rawdesc_gzipped) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 628 | proto.RegisterEnum("pb3.Enum", Enum_name, Enum_value) |
| 629 | proto.RegisterEnum("pb3.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value) |
| 630 | proto.RegisterType((*Scalars)(nil), "pb3.Scalars") |
| 631 | proto.RegisterType((*Enums)(nil), "pb3.Enums") |
| 632 | proto.RegisterType((*Nests)(nil), "pb3.Nests") |
| 633 | proto.RegisterType((*Nested)(nil), "pb3.Nested") |
| 634 | proto.RegisterType((*Oneofs)(nil), "pb3.Oneofs") |
| 635 | proto.RegisterType((*Maps)(nil), "pb3.Maps") |
| 636 | proto.RegisterMapType((map[bool]uint32)(nil), "pb3.Maps.BoolToUint32Entry") |
| 637 | proto.RegisterMapType((map[int32]string)(nil), "pb3.Maps.Int32ToStrEntry") |
| 638 | proto.RegisterMapType((map[string]*Nested)(nil), "pb3.Maps.StrToNestedEntry") |
| 639 | proto.RegisterMapType((map[string]*Oneofs)(nil), "pb3.Maps.StrToOneofsEntry") |
| 640 | proto.RegisterMapType((map[uint64]Enum)(nil), "pb3.Maps.Uint64ToEnumEntry") |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 641 | proto.RegisterType((*JSONNames)(nil), "pb3.JSONNames") |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 642 | } |
| 643 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 644 | var xxx_File_pb3_test_proto_rawdesc = []byte{ |
| 645 | // 1710 bytes of the wire-encoded FileDescriptorProto |
| 646 | 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 647 | 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, |
| 648 | 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 649 | 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, |
| 650 | 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33, |
| 651 | 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, |
| 652 | 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, |
| 653 | 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55, |
| 654 | 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, |
| 655 | 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, |
| 656 | 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01, |
| 657 | 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, |
| 658 | 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73, |
| 659 | 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, |
| 660 | 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, |
| 661 | 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, |
| 662 | 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, |
| 663 | 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a, |
| 664 | 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, |
| 665 | 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20, |
| 666 | 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17, |
| 667 | 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52, |
| 668 | 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75, |
| 669 | 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62, |
| 670 | 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20, |
| 671 | 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, |
| 672 | 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, |
| 673 | 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73, |
| 674 | 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, |
| 675 | 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e, |
| 676 | 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, |
| 677 | 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 678 | 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, |
| 679 | 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a, |
| 680 | 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43, |
| 681 | 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07, |
| 682 | 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10, |
| 683 | 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, |
| 684 | 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, |
| 685 | 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, |
| 686 | 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, |
| 687 | 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, |
| 688 | 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73, |
| 689 | 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 690 | 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, |
| 691 | 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e, |
| 692 | 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, |
| 693 | 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65, |
| 694 | 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, |
| 695 | 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, |
| 696 | 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f, |
| 697 | 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 698 | 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00, |
| 699 | 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a, |
| 700 | 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12, |
| 701 | 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18, |
| 702 | 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, |
| 703 | 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, |
| 704 | 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e, |
| 705 | 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, |
| 706 | 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, |
| 707 | 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72, |
| 708 | 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, |
| 709 | 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75, |
| 710 | 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, |
| 711 | 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45, |
| 712 | 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, |
| 713 | 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73, |
| 714 | 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 715 | 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, |
| 716 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, |
| 717 | 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65, |
| 718 | 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 719 | 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, |
| 720 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, |
| 721 | 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, |
| 722 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 723 | 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 724 | 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, |
| 725 | 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, |
| 726 | 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, |
| 727 | 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, |
| 728 | 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, |
| 729 | 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, |
| 730 | 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, |
| 731 | 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, |
| 732 | 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, |
| 733 | 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, |
| 734 | 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74, |
| 735 | 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 736 | 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, |
| 737 | 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, |
| 738 | 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53, |
| 739 | 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, |
| 740 | 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, |
| 741 | 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, |
| 742 | 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76, |
| 743 | 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e, |
| 744 | 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, |
| 745 | 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72, |
| 746 | 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, |
| 747 | 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, |
| 748 | 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x37, 0x5a, |
| 749 | 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, |
| 750 | 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x65, |
| 751 | 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, |
| 752 | 0x6f, 0x73, 0x2f, 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 753 | } |
| 754 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame^] | 755 | var xxx_File_pb3_test_proto_rawdesc_gzipped = protoimpl.X.CompressGZIP(xxx_File_pb3_test_proto_rawdesc) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 756 | |
| 757 | const _ = protoimpl.EnforceVersion(protoimpl.Version - 0) |
| 758 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 759 | var File_pb3_test_proto protoreflect.FileDescriptor |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 760 | |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 761 | var xxx_File_pb3_test_proto_enumTypes = make([]protoreflect.EnumType, 2) |
| 762 | var xxx_File_pb3_test_proto_messageTypes = make([]protoimpl.MessageType, 12) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 763 | var xxx_File_pb3_test_proto_goTypes = []interface{}{ |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 764 | (Enum)(0), // 0: pb3.Enum |
| 765 | (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum |
| 766 | (*Scalars)(nil), // 2: pb3.Scalars |
| 767 | (*Enums)(nil), // 3: pb3.Enums |
| 768 | (*Nests)(nil), // 4: pb3.Nests |
| 769 | (*Nested)(nil), // 5: pb3.Nested |
| 770 | (*Oneofs)(nil), // 6: pb3.Oneofs |
| 771 | (*Maps)(nil), // 7: pb3.Maps |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 772 | (*JSONNames)(nil), // 8: pb3.JSONNames |
| 773 | nil, // 9: pb3.Maps.Int32ToStrEntry |
| 774 | nil, // 10: pb3.Maps.BoolToUint32Entry |
| 775 | nil, // 11: pb3.Maps.Uint64ToEnumEntry |
| 776 | nil, // 12: pb3.Maps.StrToNestedEntry |
| 777 | nil, // 13: pb3.Maps.StrToOneofsEntry |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 778 | } |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 779 | var xxx_File_pb3_test_proto_depIdxs = []int32{ |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 780 | 0, // pb3.Enums.s_enum:type_name -> pb3.Enum |
| 781 | 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum |
| 782 | 5, // pb3.Nests.s_nested:type_name -> pb3.Nested |
| 783 | 5, // pb3.Nested.s_nested:type_name -> pb3.Nested |
| 784 | 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum |
| 785 | 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 786 | 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry |
| 787 | 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry |
| 788 | 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry |
| 789 | 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry |
| 790 | 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 791 | 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum |
| 792 | 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested |
| 793 | 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs |
| 794 | } |
| 795 | |
Damien Neil | 0fc2245 | 2019-03-08 17:18:11 -0800 | [diff] [blame] | 796 | func init() { xxx_File_pb3_test_proto_init() } |
| 797 | func xxx_File_pb3_test_proto_init() { |
| 798 | if File_pb3_test_proto != nil { |
| 799 | return |
| 800 | } |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 801 | messageTypes := make([]protoreflect.MessageType, 12) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 802 | File_pb3_test_proto = protoimpl.FileBuilder{ |
| 803 | RawDescriptor: xxx_File_pb3_test_proto_rawdesc, |
| 804 | GoTypes: xxx_File_pb3_test_proto_goTypes, |
| 805 | DependencyIndexes: xxx_File_pb3_test_proto_depIdxs, |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 806 | EnumOutputTypes: xxx_File_pb3_test_proto_enumTypes, |
| 807 | MessageOutputTypes: messageTypes, |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 808 | }.Init() |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 809 | messageGoTypes := xxx_File_pb3_test_proto_goTypes[2:][:12] |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 810 | for i, mt := range messageTypes { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 811 | xxx_File_pb3_test_proto_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i]) |
| 812 | xxx_File_pb3_test_proto_messageTypes[i].PBType = mt |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 813 | } |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 814 | xxx_File_pb3_test_proto_goTypes = nil |
| 815 | xxx_File_pb3_test_proto_depIdxs = nil |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 816 | } |