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