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 | protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 8 | protoregistry "github.com/golang/protobuf/v2/reflect/protoregistry" |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 9 | protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl" |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 10 | ) |
| 11 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 12 | type Enum int32 |
| 13 | |
| 14 | const ( |
| 15 | Enum_ZERO Enum = 0 |
| 16 | Enum_ONE Enum = 1 |
| 17 | Enum_TWO Enum = 2 |
| 18 | Enum_TEN Enum = 10 |
| 19 | ) |
| 20 | |
| 21 | func (e Enum) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 22 | return xxx_File_pb3_test_proto_enumTypes[0] |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 23 | } |
| 24 | func (e Enum) Number() protoreflect.EnumNumber { |
| 25 | return protoreflect.EnumNumber(e) |
| 26 | } |
| 27 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 28 | // Deprecated: Use Enum.Type.Values instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 29 | var Enum_name = map[int32]string{ |
| 30 | 0: "ZERO", |
| 31 | 1: "ONE", |
| 32 | 2: "TWO", |
| 33 | 10: "TEN", |
| 34 | } |
| 35 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 36 | // Deprecated: Use Enum.Type.Values instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 37 | var Enum_value = map[string]int32{ |
| 38 | "ZERO": 0, |
| 39 | "ONE": 1, |
| 40 | "TWO": 2, |
| 41 | "TEN": 10, |
| 42 | } |
| 43 | |
| 44 | func (x Enum) String() string { |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 45 | return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x)) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 46 | } |
| 47 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 48 | // Deprecated: Use Enum.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 49 | func (Enum) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 50 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | type Enums_NestedEnum int32 |
| 54 | |
| 55 | const ( |
| 56 | Enums_CERO Enums_NestedEnum = 0 |
| 57 | Enums_UNO Enums_NestedEnum = 1 |
| 58 | Enums_DOS Enums_NestedEnum = 2 |
| 59 | Enums_DIEZ Enums_NestedEnum = 10 |
| 60 | ) |
| 61 | |
| 62 | func (e Enums_NestedEnum) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 63 | return xxx_File_pb3_test_proto_enumTypes[1] |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 64 | } |
| 65 | func (e Enums_NestedEnum) Number() protoreflect.EnumNumber { |
| 66 | return protoreflect.EnumNumber(e) |
| 67 | } |
| 68 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 69 | // Deprecated: Use Enums_NestedEnum.Type.Values instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 70 | var Enums_NestedEnum_name = map[int32]string{ |
| 71 | 0: "CERO", |
| 72 | 1: "UNO", |
| 73 | 2: "DOS", |
| 74 | 10: "DIEZ", |
| 75 | } |
| 76 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 77 | // Deprecated: Use Enums_NestedEnum.Type.Values instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 78 | var Enums_NestedEnum_value = map[string]int32{ |
| 79 | "CERO": 0, |
| 80 | "UNO": 1, |
| 81 | "DOS": 2, |
| 82 | "DIEZ": 10, |
| 83 | } |
| 84 | |
| 85 | func (x Enums_NestedEnum) String() string { |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 86 | return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x)) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 87 | } |
| 88 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 89 | // Deprecated: Use Enums_NestedEnum.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 90 | func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 91 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1, 0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | // Scalars contains scalar field types. |
| 95 | type Scalars struct { |
| 96 | SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"` |
| 97 | SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"` |
| 98 | SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"` |
| 99 | SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"` |
| 100 | SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"` |
| 101 | SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"` |
| 102 | SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"` |
| 103 | SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"` |
| 104 | SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"` |
| 105 | SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"` |
| 106 | SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"` |
| 107 | SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"` |
| 108 | SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"` |
| 109 | SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"` |
| 110 | SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` |
| 111 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 112 | XXX_unrecognized []byte `json:"-"` |
| 113 | XXX_sizecache int32 `json:"-"` |
| 114 | } |
| 115 | |
| 116 | func (m *Scalars) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 117 | return xxx_File_pb3_test_proto_messageTypes[0].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 118 | } |
| 119 | func (m *Scalars) Reset() { *m = Scalars{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 120 | func (m *Scalars) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 121 | func (*Scalars) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 122 | |
| 123 | // Deprecated: Use Scalars.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 124 | func (*Scalars) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 125 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 126 | } |
| 127 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 128 | func (m *Scalars) GetSBool() bool { |
| 129 | if m != nil { |
| 130 | return m.SBool |
| 131 | } |
| 132 | return false |
| 133 | } |
| 134 | |
| 135 | func (m *Scalars) GetSInt32() int32 { |
| 136 | if m != nil { |
| 137 | return m.SInt32 |
| 138 | } |
| 139 | return 0 |
| 140 | } |
| 141 | |
| 142 | func (m *Scalars) GetSInt64() int64 { |
| 143 | if m != nil { |
| 144 | return m.SInt64 |
| 145 | } |
| 146 | return 0 |
| 147 | } |
| 148 | |
| 149 | func (m *Scalars) GetSUint32() uint32 { |
| 150 | if m != nil { |
| 151 | return m.SUint32 |
| 152 | } |
| 153 | return 0 |
| 154 | } |
| 155 | |
| 156 | func (m *Scalars) GetSUint64() uint64 { |
| 157 | if m != nil { |
| 158 | return m.SUint64 |
| 159 | } |
| 160 | return 0 |
| 161 | } |
| 162 | |
| 163 | func (m *Scalars) GetSSint32() int32 { |
| 164 | if m != nil { |
| 165 | return m.SSint32 |
| 166 | } |
| 167 | return 0 |
| 168 | } |
| 169 | |
| 170 | func (m *Scalars) GetSSint64() int64 { |
| 171 | if m != nil { |
| 172 | return m.SSint64 |
| 173 | } |
| 174 | return 0 |
| 175 | } |
| 176 | |
| 177 | func (m *Scalars) GetSFixed32() uint32 { |
| 178 | if m != nil { |
| 179 | return m.SFixed32 |
| 180 | } |
| 181 | return 0 |
| 182 | } |
| 183 | |
| 184 | func (m *Scalars) GetSFixed64() uint64 { |
| 185 | if m != nil { |
| 186 | return m.SFixed64 |
| 187 | } |
| 188 | return 0 |
| 189 | } |
| 190 | |
| 191 | func (m *Scalars) GetSSfixed32() int32 { |
| 192 | if m != nil { |
| 193 | return m.SSfixed32 |
| 194 | } |
| 195 | return 0 |
| 196 | } |
| 197 | |
| 198 | func (m *Scalars) GetSSfixed64() int64 { |
| 199 | if m != nil { |
| 200 | return m.SSfixed64 |
| 201 | } |
| 202 | return 0 |
| 203 | } |
| 204 | |
| 205 | func (m *Scalars) GetSFloat() float32 { |
| 206 | if m != nil { |
| 207 | return m.SFloat |
| 208 | } |
| 209 | return 0 |
| 210 | } |
| 211 | |
| 212 | func (m *Scalars) GetSDouble() float64 { |
| 213 | if m != nil { |
| 214 | return m.SDouble |
| 215 | } |
| 216 | return 0 |
| 217 | } |
| 218 | |
| 219 | func (m *Scalars) GetSBytes() []byte { |
| 220 | if m != nil { |
| 221 | return m.SBytes |
| 222 | } |
| 223 | return nil |
| 224 | } |
| 225 | |
| 226 | func (m *Scalars) GetSString() string { |
| 227 | if m != nil { |
| 228 | return m.SString |
| 229 | } |
| 230 | return "" |
| 231 | } |
| 232 | |
| 233 | // Message contains enum fields. |
| 234 | type Enums struct { |
| 235 | SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"` |
| 236 | SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"` |
| 237 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 238 | XXX_unrecognized []byte `json:"-"` |
| 239 | XXX_sizecache int32 `json:"-"` |
| 240 | } |
| 241 | |
| 242 | func (m *Enums) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 243 | return xxx_File_pb3_test_proto_messageTypes[1].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 244 | } |
| 245 | func (m *Enums) Reset() { *m = Enums{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 246 | func (m *Enums) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 247 | func (*Enums) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 248 | |
| 249 | // Deprecated: Use Enums.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 250 | func (*Enums) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 251 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 252 | } |
| 253 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 254 | func (m *Enums) GetSEnum() Enum { |
| 255 | if m != nil { |
| 256 | return m.SEnum |
| 257 | } |
| 258 | return Enum_ZERO |
| 259 | } |
| 260 | |
| 261 | func (m *Enums) GetSNestedEnum() Enums_NestedEnum { |
| 262 | if m != nil { |
| 263 | return m.SNestedEnum |
| 264 | } |
| 265 | return Enums_CERO |
| 266 | } |
| 267 | |
| 268 | // Message contains nested message field. |
| 269 | type Nests struct { |
| 270 | SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` |
| 271 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 272 | XXX_unrecognized []byte `json:"-"` |
| 273 | XXX_sizecache int32 `json:"-"` |
| 274 | } |
| 275 | |
| 276 | func (m *Nests) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 277 | return xxx_File_pb3_test_proto_messageTypes[2].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 278 | } |
| 279 | func (m *Nests) Reset() { *m = Nests{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 280 | func (m *Nests) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 281 | func (*Nests) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 282 | |
| 283 | // Deprecated: Use Nests.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 284 | func (*Nests) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 285 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{2} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 286 | } |
| 287 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 288 | func (m *Nests) GetSNested() *Nested { |
| 289 | if m != nil { |
| 290 | return m.SNested |
| 291 | } |
| 292 | return nil |
| 293 | } |
| 294 | |
| 295 | // Message type used as submessage. |
| 296 | type Nested struct { |
| 297 | SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` |
| 298 | SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` |
| 299 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 300 | XXX_unrecognized []byte `json:"-"` |
| 301 | XXX_sizecache int32 `json:"-"` |
| 302 | } |
| 303 | |
| 304 | func (m *Nested) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 305 | return xxx_File_pb3_test_proto_messageTypes[3].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 306 | } |
| 307 | func (m *Nested) Reset() { *m = Nested{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 308 | func (m *Nested) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 309 | func (*Nested) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 310 | |
| 311 | // Deprecated: Use Nested.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 312 | func (*Nested) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 313 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{3} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 314 | } |
| 315 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 316 | func (m *Nested) GetSString() string { |
| 317 | if m != nil { |
| 318 | return m.SString |
| 319 | } |
| 320 | return "" |
| 321 | } |
| 322 | |
| 323 | func (m *Nested) GetSNested() *Nested { |
| 324 | if m != nil { |
| 325 | return m.SNested |
| 326 | } |
| 327 | return nil |
| 328 | } |
| 329 | |
| 330 | // Message contains oneof field. |
| 331 | type Oneofs struct { |
| 332 | // Types that are valid to be assigned to Union: |
| 333 | // *Oneofs_OneofEnum |
| 334 | // *Oneofs_OneofString |
| 335 | // *Oneofs_OneofNested |
| 336 | Union isOneofs_Union `protobuf_oneof:"union"` |
| 337 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 338 | XXX_unrecognized []byte `json:"-"` |
| 339 | XXX_sizecache int32 `json:"-"` |
| 340 | } |
| 341 | |
| 342 | func (m *Oneofs) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 343 | return xxx_File_pb3_test_proto_messageTypes[4].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 344 | } |
| 345 | func (m *Oneofs) Reset() { *m = Oneofs{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 346 | func (m *Oneofs) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 347 | func (*Oneofs) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 348 | |
| 349 | // Deprecated: Use Oneofs.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 350 | func (*Oneofs) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 351 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{4} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 352 | } |
| 353 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 354 | type isOneofs_Union interface { |
| 355 | isOneofs_Union() |
| 356 | } |
| 357 | |
| 358 | type Oneofs_OneofEnum struct { |
| 359 | OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"` |
| 360 | } |
| 361 | |
| 362 | type Oneofs_OneofString struct { |
| 363 | OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"` |
| 364 | } |
| 365 | |
| 366 | type Oneofs_OneofNested struct { |
| 367 | OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"` |
| 368 | } |
| 369 | |
| 370 | func (*Oneofs_OneofEnum) isOneofs_Union() {} |
| 371 | |
| 372 | func (*Oneofs_OneofString) isOneofs_Union() {} |
| 373 | |
| 374 | func (*Oneofs_OneofNested) isOneofs_Union() {} |
| 375 | |
| 376 | func (m *Oneofs) GetUnion() isOneofs_Union { |
| 377 | if m != nil { |
| 378 | return m.Union |
| 379 | } |
| 380 | return nil |
| 381 | } |
| 382 | |
| 383 | func (m *Oneofs) GetOneofEnum() Enum { |
| 384 | if x, ok := m.GetUnion().(*Oneofs_OneofEnum); ok { |
| 385 | return x.OneofEnum |
| 386 | } |
| 387 | return Enum_ZERO |
| 388 | } |
| 389 | |
| 390 | func (m *Oneofs) GetOneofString() string { |
| 391 | if x, ok := m.GetUnion().(*Oneofs_OneofString); ok { |
| 392 | return x.OneofString |
| 393 | } |
| 394 | return "" |
| 395 | } |
| 396 | |
| 397 | func (m *Oneofs) GetOneofNested() *Nested { |
| 398 | if x, ok := m.GetUnion().(*Oneofs_OneofNested); ok { |
| 399 | return x.OneofNested |
| 400 | } |
| 401 | return nil |
| 402 | } |
| 403 | |
| 404 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 405 | func (*Oneofs) XXX_OneofWrappers() []interface{} { |
| 406 | return []interface{}{ |
| 407 | (*Oneofs_OneofEnum)(nil), |
| 408 | (*Oneofs_OneofString)(nil), |
| 409 | (*Oneofs_OneofNested)(nil), |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | // Message contains map fields. |
| 414 | type Maps struct { |
| 415 | 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"` |
| 416 | 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"` |
| 417 | 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"` |
| 418 | 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"` |
| 419 | 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"` |
| 420 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 421 | XXX_unrecognized []byte `json:"-"` |
| 422 | XXX_sizecache int32 `json:"-"` |
| 423 | } |
| 424 | |
| 425 | func (m *Maps) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 426 | return xxx_File_pb3_test_proto_messageTypes[5].MessageOf(m) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 427 | } |
| 428 | func (m *Maps) Reset() { *m = Maps{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 429 | func (m *Maps) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 430 | func (*Maps) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 431 | |
| 432 | // Deprecated: Use Maps.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 433 | func (*Maps) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 434 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{5} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 435 | } |
| 436 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 437 | func (m *Maps) GetInt32ToStr() map[int32]string { |
| 438 | if m != nil { |
| 439 | return m.Int32ToStr |
| 440 | } |
| 441 | return nil |
| 442 | } |
| 443 | |
| 444 | func (m *Maps) GetBoolToUint32() map[bool]uint32 { |
| 445 | if m != nil { |
| 446 | return m.BoolToUint32 |
| 447 | } |
| 448 | return nil |
| 449 | } |
| 450 | |
| 451 | func (m *Maps) GetUint64ToEnum() map[uint64]Enum { |
| 452 | if m != nil { |
| 453 | return m.Uint64ToEnum |
| 454 | } |
| 455 | return nil |
| 456 | } |
| 457 | |
| 458 | func (m *Maps) GetStrToNested() map[string]*Nested { |
| 459 | if m != nil { |
| 460 | return m.StrToNested |
| 461 | } |
| 462 | return nil |
| 463 | } |
| 464 | |
| 465 | func (m *Maps) GetStrToOneofs() map[string]*Oneofs { |
| 466 | if m != nil { |
| 467 | return m.StrToOneofs |
| 468 | } |
| 469 | return nil |
| 470 | } |
| 471 | |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 472 | // Message for testing json_name option. |
| 473 | type JSONNames struct { |
| 474 | SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"` |
| 475 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 476 | XXX_unrecognized []byte `json:"-"` |
| 477 | XXX_sizecache int32 `json:"-"` |
| 478 | } |
| 479 | |
| 480 | func (m *JSONNames) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 481 | return xxx_File_pb3_test_proto_messageTypes[6].MessageOf(m) |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 482 | } |
| 483 | func (m *JSONNames) Reset() { *m = JSONNames{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 484 | func (m *JSONNames) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 485 | func (*JSONNames) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 486 | |
| 487 | // Deprecated: Use JSONNames.ProtoReflect.Type instead. |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 488 | func (*JSONNames) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 489 | return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{6} |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 490 | } |
| 491 | |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 492 | func (m *JSONNames) GetSString() string { |
| 493 | if m != nil { |
| 494 | return m.SString |
| 495 | } |
| 496 | return "" |
| 497 | } |
| 498 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 499 | var xxx_File_pb3_test_proto_rawdesc = []byte{ |
| 500 | // 1710 bytes of the wire-encoded FileDescriptorProto |
| 501 | 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 502 | 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, |
| 503 | 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 504 | 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, |
| 505 | 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33, |
| 506 | 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, |
| 507 | 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, |
| 508 | 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55, |
| 509 | 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, |
| 510 | 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, |
| 511 | 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01, |
| 512 | 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, |
| 513 | 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73, |
| 514 | 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, |
| 515 | 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, |
| 516 | 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, |
| 517 | 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, |
| 518 | 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a, |
| 519 | 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, |
| 520 | 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20, |
| 521 | 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17, |
| 522 | 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52, |
| 523 | 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75, |
| 524 | 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62, |
| 525 | 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20, |
| 526 | 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, |
| 527 | 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, |
| 528 | 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73, |
| 529 | 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, |
| 530 | 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e, |
| 531 | 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, |
| 532 | 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 533 | 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, |
| 534 | 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a, |
| 535 | 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43, |
| 536 | 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07, |
| 537 | 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10, |
| 538 | 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, |
| 539 | 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, |
| 540 | 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, |
| 541 | 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, |
| 542 | 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, |
| 543 | 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73, |
| 544 | 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 545 | 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, |
| 546 | 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e, |
| 547 | 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, |
| 548 | 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65, |
| 549 | 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, |
| 550 | 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, |
| 551 | 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f, |
| 552 | 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 553 | 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00, |
| 554 | 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a, |
| 555 | 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12, |
| 556 | 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18, |
| 557 | 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, |
| 558 | 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, |
| 559 | 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e, |
| 560 | 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, |
| 561 | 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, |
| 562 | 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72, |
| 563 | 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, |
| 564 | 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75, |
| 565 | 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, |
| 566 | 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45, |
| 567 | 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, |
| 568 | 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73, |
| 569 | 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 570 | 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, |
| 571 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, |
| 572 | 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65, |
| 573 | 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 574 | 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, |
| 575 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, |
| 576 | 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, |
| 577 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 578 | 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 579 | 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, |
| 580 | 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, |
| 581 | 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, |
| 582 | 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, |
| 583 | 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, |
| 584 | 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, |
| 585 | 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, |
| 586 | 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, |
| 587 | 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, |
| 588 | 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, |
| 589 | 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74, |
| 590 | 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 591 | 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, |
| 592 | 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, |
| 593 | 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53, |
| 594 | 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, |
| 595 | 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, |
| 596 | 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, |
| 597 | 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76, |
| 598 | 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e, |
| 599 | 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, |
| 600 | 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72, |
| 601 | 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, |
| 602 | 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, |
| 603 | 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x37, 0x5a, |
| 604 | 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, |
| 605 | 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x65, |
| 606 | 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, |
| 607 | 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] | 608 | } |
| 609 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 610 | 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] | 611 | |
| 612 | const _ = protoimpl.EnforceVersion(protoimpl.Version - 0) |
| 613 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 614 | var File_pb3_test_proto protoreflect.FileDescriptor |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 615 | |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 616 | var xxx_File_pb3_test_proto_enumTypes = make([]protoreflect.EnumType, 2) |
| 617 | var xxx_File_pb3_test_proto_messageTypes = make([]protoimpl.MessageType, 12) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 618 | var xxx_File_pb3_test_proto_goTypes = []interface{}{ |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 619 | (Enum)(0), // 0: pb3.Enum |
| 620 | (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum |
| 621 | (*Scalars)(nil), // 2: pb3.Scalars |
| 622 | (*Enums)(nil), // 3: pb3.Enums |
| 623 | (*Nests)(nil), // 4: pb3.Nests |
| 624 | (*Nested)(nil), // 5: pb3.Nested |
| 625 | (*Oneofs)(nil), // 6: pb3.Oneofs |
| 626 | (*Maps)(nil), // 7: pb3.Maps |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 627 | (*JSONNames)(nil), // 8: pb3.JSONNames |
| 628 | nil, // 9: pb3.Maps.Int32ToStrEntry |
| 629 | nil, // 10: pb3.Maps.BoolToUint32Entry |
| 630 | nil, // 11: pb3.Maps.Uint64ToEnumEntry |
| 631 | nil, // 12: pb3.Maps.StrToNestedEntry |
| 632 | nil, // 13: pb3.Maps.StrToOneofsEntry |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 633 | } |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 634 | var xxx_File_pb3_test_proto_depIdxs = []int32{ |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 635 | 0, // pb3.Enums.s_enum:type_name -> pb3.Enum |
| 636 | 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum |
| 637 | 5, // pb3.Nests.s_nested:type_name -> pb3.Nested |
| 638 | 5, // pb3.Nested.s_nested:type_name -> pb3.Nested |
| 639 | 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum |
| 640 | 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 641 | 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry |
| 642 | 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry |
| 643 | 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry |
| 644 | 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry |
| 645 | 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 646 | 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum |
| 647 | 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested |
| 648 | 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs |
| 649 | } |
| 650 | |
Damien Neil | 0fc2245 | 2019-03-08 17:18:11 -0800 | [diff] [blame] | 651 | func init() { xxx_File_pb3_test_proto_init() } |
| 652 | func xxx_File_pb3_test_proto_init() { |
| 653 | if File_pb3_test_proto != nil { |
| 654 | return |
| 655 | } |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 656 | File_pb3_test_proto = protoimpl.FileBuilder{ |
| 657 | RawDescriptor: xxx_File_pb3_test_proto_rawdesc, |
| 658 | GoTypes: xxx_File_pb3_test_proto_goTypes, |
| 659 | DependencyIndexes: xxx_File_pb3_test_proto_depIdxs, |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 660 | EnumOutputTypes: xxx_File_pb3_test_proto_enumTypes, |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 661 | MessageOutputTypes: xxx_File_pb3_test_proto_messageTypes, |
| 662 | FilesRegistry: protoregistry.GlobalFiles, |
| 663 | TypesRegistry: protoregistry.GlobalTypes, |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 664 | }.Init() |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 665 | xxx_File_pb3_test_proto_goTypes = nil |
| 666 | xxx_File_pb3_test_proto_depIdxs = nil |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 667 | } |