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 ( |
Damien Neil | e89e624 | 2019-05-13 23:55:40 -0700 | [diff] [blame] | 7 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 8 | prototype "google.golang.org/protobuf/reflect/prototype" |
Damien Neil | e89e624 | 2019-05-13 23:55:40 -0700 | [diff] [blame] | 9 | protoimpl "google.golang.org/protobuf/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 | 58b42d8 | 2019-05-22 16:27:51 -0400 | [diff] [blame] | 13 | const ( |
| 14 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 15 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0) |
| 16 | // Verify that this generated code is sufficiently up-to-date. |
| 17 | _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion) |
| 18 | ) |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 19 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 20 | type Enum int32 |
| 21 | |
| 22 | const ( |
| 23 | Enum_ZERO Enum = 0 |
| 24 | Enum_ONE Enum = 1 |
| 25 | Enum_TWO Enum = 2 |
| 26 | Enum_TEN Enum = 10 |
| 27 | ) |
| 28 | |
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 | |
| 36 | var Enum_value = map[string]int32{ |
| 37 | "ZERO": 0, |
| 38 | "ONE": 1, |
| 39 | "TWO": 2, |
| 40 | "TEN": 10, |
| 41 | } |
| 42 | |
Joe Tsai | dbab6c0 | 2019-05-14 15:06:03 -0700 | [diff] [blame] | 43 | func (x Enum) Enum() *Enum { |
| 44 | p := new(Enum) |
| 45 | *p = x |
| 46 | return p |
| 47 | } |
| 48 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 49 | func (x Enum) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 50 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 51 | } |
| 52 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 53 | func (Enum) Descriptor() protoreflect.EnumDescriptor { |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 54 | return file_pb3_test_proto_enumTypes[0].EnumDescriptor |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 55 | } |
| 56 | |
Joe Tsai | d421150 | 2019-07-02 14:58:02 -0700 | [diff] [blame^] | 57 | func (Enum) Type() protoreflect.EnumType { |
| 58 | return &file_pb3_test_proto_enumTypes[0] |
| 59 | } |
| 60 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 61 | func (x Enum) Number() protoreflect.EnumNumber { |
| 62 | return protoreflect.EnumNumber(x) |
| 63 | } |
| 64 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 65 | // Deprecated: Use Enum.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 66 | func (Enum) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 67 | return file_pb3_test_proto_rawDescGZIP(), []int{0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | type Enums_NestedEnum int32 |
| 71 | |
| 72 | const ( |
| 73 | Enums_CERO Enums_NestedEnum = 0 |
| 74 | Enums_UNO Enums_NestedEnum = 1 |
| 75 | Enums_DOS Enums_NestedEnum = 2 |
| 76 | Enums_DIEZ Enums_NestedEnum = 10 |
| 77 | ) |
| 78 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 79 | var Enums_NestedEnum_name = map[int32]string{ |
| 80 | 0: "CERO", |
| 81 | 1: "UNO", |
| 82 | 2: "DOS", |
| 83 | 10: "DIEZ", |
| 84 | } |
| 85 | |
| 86 | var Enums_NestedEnum_value = map[string]int32{ |
| 87 | "CERO": 0, |
| 88 | "UNO": 1, |
| 89 | "DOS": 2, |
| 90 | "DIEZ": 10, |
| 91 | } |
| 92 | |
Joe Tsai | dbab6c0 | 2019-05-14 15:06:03 -0700 | [diff] [blame] | 93 | func (x Enums_NestedEnum) Enum() *Enums_NestedEnum { |
| 94 | p := new(Enums_NestedEnum) |
| 95 | *p = x |
| 96 | return p |
| 97 | } |
| 98 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 99 | func (x Enums_NestedEnum) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 100 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 101 | } |
| 102 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 103 | func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor { |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 104 | return file_pb3_test_proto_enumTypes[1].EnumDescriptor |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 105 | } |
| 106 | |
Joe Tsai | d421150 | 2019-07-02 14:58:02 -0700 | [diff] [blame^] | 107 | func (Enums_NestedEnum) Type() protoreflect.EnumType { |
| 108 | return &file_pb3_test_proto_enumTypes[1] |
| 109 | } |
| 110 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 111 | func (x Enums_NestedEnum) Number() protoreflect.EnumNumber { |
| 112 | return protoreflect.EnumNumber(x) |
| 113 | } |
| 114 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 115 | // Deprecated: Use Enums_NestedEnum.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 116 | func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 117 | return file_pb3_test_proto_rawDescGZIP(), []int{1, 0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 118 | } |
| 119 | |
| 120 | // Scalars contains scalar field types. |
| 121 | type Scalars struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 122 | state protoimpl.MessageState |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 123 | SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"` |
| 124 | SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"` |
| 125 | SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"` |
| 126 | SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"` |
| 127 | SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"` |
| 128 | SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"` |
| 129 | SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"` |
| 130 | SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"` |
| 131 | SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"` |
| 132 | SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"` |
| 133 | SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"` |
| 134 | SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"` |
| 135 | SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"` |
| 136 | SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"` |
| 137 | SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` |
| 138 | sizeCache protoimpl.SizeCache |
| 139 | unknownFields protoimpl.UnknownFields |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 140 | } |
| 141 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 142 | func (x *Scalars) Reset() { |
| 143 | *x = Scalars{} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 144 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 145 | |
| 146 | func (x *Scalars) String() string { |
| 147 | return protoimpl.X.MessageStringOf(x) |
| 148 | } |
| 149 | |
| 150 | func (*Scalars) ProtoMessage() {} |
| 151 | |
| 152 | func (x *Scalars) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 153 | mi := &file_pb3_test_proto_msgTypes[0] |
| 154 | if protoimpl.UnsafeEnabled && x != nil { |
| 155 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 156 | if ms.LoadMessageInfo() == nil { |
| 157 | ms.StoreMessageInfo(mi) |
| 158 | } |
| 159 | return ms |
| 160 | } |
| 161 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 162 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 163 | |
| 164 | // Deprecated: Use Scalars.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 165 | func (*Scalars) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 166 | return file_pb3_test_proto_rawDescGZIP(), []int{0} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 167 | } |
| 168 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 169 | func (x *Scalars) GetSBool() bool { |
| 170 | if x != nil { |
| 171 | return x.SBool |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 172 | } |
| 173 | return false |
| 174 | } |
| 175 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 176 | func (x *Scalars) GetSInt32() int32 { |
| 177 | if x != nil { |
| 178 | return x.SInt32 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 179 | } |
| 180 | return 0 |
| 181 | } |
| 182 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 183 | func (x *Scalars) GetSInt64() int64 { |
| 184 | if x != nil { |
| 185 | return x.SInt64 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 186 | } |
| 187 | return 0 |
| 188 | } |
| 189 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 190 | func (x *Scalars) GetSUint32() uint32 { |
| 191 | if x != nil { |
| 192 | return x.SUint32 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 193 | } |
| 194 | return 0 |
| 195 | } |
| 196 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 197 | func (x *Scalars) GetSUint64() uint64 { |
| 198 | if x != nil { |
| 199 | return x.SUint64 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 200 | } |
| 201 | return 0 |
| 202 | } |
| 203 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 204 | func (x *Scalars) GetSSint32() int32 { |
| 205 | if x != nil { |
| 206 | return x.SSint32 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 207 | } |
| 208 | return 0 |
| 209 | } |
| 210 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 211 | func (x *Scalars) GetSSint64() int64 { |
| 212 | if x != nil { |
| 213 | return x.SSint64 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 214 | } |
| 215 | return 0 |
| 216 | } |
| 217 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 218 | func (x *Scalars) GetSFixed32() uint32 { |
| 219 | if x != nil { |
| 220 | return x.SFixed32 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 221 | } |
| 222 | return 0 |
| 223 | } |
| 224 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 225 | func (x *Scalars) GetSFixed64() uint64 { |
| 226 | if x != nil { |
| 227 | return x.SFixed64 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 228 | } |
| 229 | return 0 |
| 230 | } |
| 231 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 232 | func (x *Scalars) GetSSfixed32() int32 { |
| 233 | if x != nil { |
| 234 | return x.SSfixed32 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 235 | } |
| 236 | return 0 |
| 237 | } |
| 238 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 239 | func (x *Scalars) GetSSfixed64() int64 { |
| 240 | if x != nil { |
| 241 | return x.SSfixed64 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 242 | } |
| 243 | return 0 |
| 244 | } |
| 245 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 246 | func (x *Scalars) GetSFloat() float32 { |
| 247 | if x != nil { |
| 248 | return x.SFloat |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 249 | } |
| 250 | return 0 |
| 251 | } |
| 252 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 253 | func (x *Scalars) GetSDouble() float64 { |
| 254 | if x != nil { |
| 255 | return x.SDouble |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 256 | } |
| 257 | return 0 |
| 258 | } |
| 259 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 260 | func (x *Scalars) GetSBytes() []byte { |
| 261 | if x != nil { |
| 262 | return x.SBytes |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 263 | } |
| 264 | return nil |
| 265 | } |
| 266 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 267 | func (x *Scalars) GetSString() string { |
| 268 | if x != nil { |
| 269 | return x.SString |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 270 | } |
| 271 | return "" |
| 272 | } |
| 273 | |
| 274 | // Message contains enum fields. |
| 275 | type Enums struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 276 | state protoimpl.MessageState |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 277 | SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"` |
| 278 | SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"` |
| 279 | sizeCache protoimpl.SizeCache |
| 280 | unknownFields protoimpl.UnknownFields |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 281 | } |
| 282 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 283 | func (x *Enums) Reset() { |
| 284 | *x = Enums{} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 285 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 286 | |
| 287 | func (x *Enums) String() string { |
| 288 | return protoimpl.X.MessageStringOf(x) |
| 289 | } |
| 290 | |
| 291 | func (*Enums) ProtoMessage() {} |
| 292 | |
| 293 | func (x *Enums) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 294 | mi := &file_pb3_test_proto_msgTypes[1] |
| 295 | if protoimpl.UnsafeEnabled && x != nil { |
| 296 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 297 | if ms.LoadMessageInfo() == nil { |
| 298 | ms.StoreMessageInfo(mi) |
| 299 | } |
| 300 | return ms |
| 301 | } |
| 302 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 303 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 304 | |
| 305 | // Deprecated: Use Enums.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 306 | func (*Enums) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 307 | return file_pb3_test_proto_rawDescGZIP(), []int{1} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 308 | } |
| 309 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 310 | func (x *Enums) GetSEnum() Enum { |
| 311 | if x != nil { |
| 312 | return x.SEnum |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 313 | } |
| 314 | return Enum_ZERO |
| 315 | } |
| 316 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 317 | func (x *Enums) GetSNestedEnum() Enums_NestedEnum { |
| 318 | if x != nil { |
| 319 | return x.SNestedEnum |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 320 | } |
| 321 | return Enums_CERO |
| 322 | } |
| 323 | |
| 324 | // Message contains nested message field. |
| 325 | type Nests struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 326 | state protoimpl.MessageState |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 327 | SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` |
| 328 | sizeCache protoimpl.SizeCache |
| 329 | unknownFields protoimpl.UnknownFields |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 330 | } |
| 331 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 332 | func (x *Nests) Reset() { |
| 333 | *x = Nests{} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 334 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 335 | |
| 336 | func (x *Nests) String() string { |
| 337 | return protoimpl.X.MessageStringOf(x) |
| 338 | } |
| 339 | |
| 340 | func (*Nests) ProtoMessage() {} |
| 341 | |
| 342 | func (x *Nests) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 343 | mi := &file_pb3_test_proto_msgTypes[2] |
| 344 | if protoimpl.UnsafeEnabled && x != nil { |
| 345 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 346 | if ms.LoadMessageInfo() == nil { |
| 347 | ms.StoreMessageInfo(mi) |
| 348 | } |
| 349 | return ms |
| 350 | } |
| 351 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 352 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 353 | |
| 354 | // Deprecated: Use Nests.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 355 | func (*Nests) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 356 | return file_pb3_test_proto_rawDescGZIP(), []int{2} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 357 | } |
| 358 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 359 | func (x *Nests) GetSNested() *Nested { |
| 360 | if x != nil { |
| 361 | return x.SNested |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 362 | } |
| 363 | return nil |
| 364 | } |
| 365 | |
| 366 | // Message type used as submessage. |
| 367 | type Nested struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 368 | state protoimpl.MessageState |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 369 | SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` |
| 370 | SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` |
| 371 | sizeCache protoimpl.SizeCache |
| 372 | unknownFields protoimpl.UnknownFields |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 373 | } |
| 374 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 375 | func (x *Nested) Reset() { |
| 376 | *x = Nested{} |
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 *Nested) String() string { |
| 380 | return protoimpl.X.MessageStringOf(x) |
| 381 | } |
| 382 | |
| 383 | func (*Nested) ProtoMessage() {} |
| 384 | |
| 385 | func (x *Nested) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 386 | mi := &file_pb3_test_proto_msgTypes[3] |
| 387 | if protoimpl.UnsafeEnabled && x != nil { |
| 388 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 389 | if ms.LoadMessageInfo() == nil { |
| 390 | ms.StoreMessageInfo(mi) |
| 391 | } |
| 392 | return ms |
| 393 | } |
| 394 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 395 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 396 | |
| 397 | // Deprecated: Use Nested.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 398 | func (*Nested) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 399 | return file_pb3_test_proto_rawDescGZIP(), []int{3} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 400 | } |
| 401 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 402 | func (x *Nested) GetSString() string { |
| 403 | if x != nil { |
| 404 | return x.SString |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 405 | } |
| 406 | return "" |
| 407 | } |
| 408 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 409 | func (x *Nested) GetSNested() *Nested { |
| 410 | if x != nil { |
| 411 | return x.SNested |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 412 | } |
| 413 | return nil |
| 414 | } |
| 415 | |
| 416 | // Message contains oneof field. |
| 417 | type Oneofs struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 418 | state protoimpl.MessageState |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 419 | // Types that are valid to be assigned to Union: |
| 420 | // *Oneofs_OneofEnum |
| 421 | // *Oneofs_OneofString |
| 422 | // *Oneofs_OneofNested |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 423 | Union isOneofs_Union `protobuf_oneof:"union"` |
| 424 | sizeCache protoimpl.SizeCache |
| 425 | unknownFields protoimpl.UnknownFields |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 426 | } |
| 427 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 428 | func (x *Oneofs) Reset() { |
| 429 | *x = Oneofs{} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 430 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 431 | |
| 432 | func (x *Oneofs) String() string { |
| 433 | return protoimpl.X.MessageStringOf(x) |
| 434 | } |
| 435 | |
| 436 | func (*Oneofs) ProtoMessage() {} |
| 437 | |
| 438 | func (x *Oneofs) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 439 | mi := &file_pb3_test_proto_msgTypes[4] |
| 440 | if protoimpl.UnsafeEnabled && x != nil { |
| 441 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 442 | if ms.LoadMessageInfo() == nil { |
| 443 | ms.StoreMessageInfo(mi) |
| 444 | } |
| 445 | return ms |
| 446 | } |
| 447 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 448 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 449 | |
| 450 | // Deprecated: Use Oneofs.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 451 | func (*Oneofs) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 452 | return file_pb3_test_proto_rawDescGZIP(), []int{4} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 453 | } |
| 454 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 455 | func (m *Oneofs) GetUnion() isOneofs_Union { |
| 456 | if m != nil { |
| 457 | return m.Union |
| 458 | } |
| 459 | return nil |
| 460 | } |
| 461 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 462 | func (x *Oneofs) GetOneofEnum() Enum { |
| 463 | if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok { |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 464 | return x.OneofEnum |
| 465 | } |
| 466 | return Enum_ZERO |
| 467 | } |
| 468 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 469 | func (x *Oneofs) GetOneofString() string { |
| 470 | if x, ok := x.GetUnion().(*Oneofs_OneofString); ok { |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 471 | return x.OneofString |
| 472 | } |
| 473 | return "" |
| 474 | } |
| 475 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 476 | func (x *Oneofs) GetOneofNested() *Nested { |
| 477 | if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok { |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 478 | return x.OneofNested |
| 479 | } |
| 480 | return nil |
| 481 | } |
| 482 | |
Joe Tsai | 872b500 | 2019-04-08 14:03:15 -0700 | [diff] [blame] | 483 | type isOneofs_Union interface { |
| 484 | isOneofs_Union() |
| 485 | } |
| 486 | |
| 487 | type Oneofs_OneofEnum struct { |
| 488 | OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"` |
| 489 | } |
| 490 | |
| 491 | type Oneofs_OneofString struct { |
| 492 | OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"` |
| 493 | } |
| 494 | |
| 495 | type Oneofs_OneofNested struct { |
| 496 | OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"` |
| 497 | } |
| 498 | |
| 499 | func (*Oneofs_OneofEnum) isOneofs_Union() {} |
| 500 | |
| 501 | func (*Oneofs_OneofString) isOneofs_Union() {} |
| 502 | |
| 503 | func (*Oneofs_OneofNested) isOneofs_Union() {} |
| 504 | |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 505 | // Message contains map fields. |
| 506 | type Maps struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 507 | state protoimpl.MessageState |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 508 | 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"` |
| 509 | 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"` |
| 510 | 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"` |
| 511 | 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"` |
| 512 | 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"` |
| 513 | sizeCache protoimpl.SizeCache |
| 514 | unknownFields protoimpl.UnknownFields |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 515 | } |
| 516 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 517 | func (x *Maps) Reset() { |
| 518 | *x = Maps{} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 519 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 520 | |
| 521 | func (x *Maps) String() string { |
| 522 | return protoimpl.X.MessageStringOf(x) |
| 523 | } |
| 524 | |
| 525 | func (*Maps) ProtoMessage() {} |
| 526 | |
| 527 | func (x *Maps) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 528 | mi := &file_pb3_test_proto_msgTypes[5] |
| 529 | if protoimpl.UnsafeEnabled && x != nil { |
| 530 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 531 | if ms.LoadMessageInfo() == nil { |
| 532 | ms.StoreMessageInfo(mi) |
| 533 | } |
| 534 | return ms |
| 535 | } |
| 536 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 537 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 538 | |
| 539 | // Deprecated: Use Maps.ProtoReflect.Type instead. |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 540 | func (*Maps) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 541 | return file_pb3_test_proto_rawDescGZIP(), []int{5} |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 542 | } |
| 543 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 544 | func (x *Maps) GetInt32ToStr() map[int32]string { |
| 545 | if x != nil { |
| 546 | return x.Int32ToStr |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 547 | } |
| 548 | return nil |
| 549 | } |
| 550 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 551 | func (x *Maps) GetBoolToUint32() map[bool]uint32 { |
| 552 | if x != nil { |
| 553 | return x.BoolToUint32 |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 554 | } |
| 555 | return nil |
| 556 | } |
| 557 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 558 | func (x *Maps) GetUint64ToEnum() map[uint64]Enum { |
| 559 | if x != nil { |
| 560 | return x.Uint64ToEnum |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 561 | } |
| 562 | return nil |
| 563 | } |
| 564 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 565 | func (x *Maps) GetStrToNested() map[string]*Nested { |
| 566 | if x != nil { |
| 567 | return x.StrToNested |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 568 | } |
| 569 | return nil |
| 570 | } |
| 571 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 572 | func (x *Maps) GetStrToOneofs() map[string]*Oneofs { |
| 573 | if x != nil { |
| 574 | return x.StrToOneofs |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 575 | } |
| 576 | return nil |
| 577 | } |
| 578 | |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 579 | // Message for testing json_name option. |
| 580 | type JSONNames struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 581 | state protoimpl.MessageState |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 582 | SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"` |
| 583 | sizeCache protoimpl.SizeCache |
| 584 | unknownFields protoimpl.UnknownFields |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 585 | } |
| 586 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 587 | func (x *JSONNames) Reset() { |
| 588 | *x = JSONNames{} |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 589 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 590 | |
| 591 | func (x *JSONNames) String() string { |
| 592 | return protoimpl.X.MessageStringOf(x) |
| 593 | } |
| 594 | |
| 595 | func (*JSONNames) ProtoMessage() {} |
| 596 | |
| 597 | func (x *JSONNames) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 598 | mi := &file_pb3_test_proto_msgTypes[6] |
| 599 | if protoimpl.UnsafeEnabled && x != nil { |
| 600 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 601 | if ms.LoadMessageInfo() == nil { |
| 602 | ms.StoreMessageInfo(mi) |
| 603 | } |
| 604 | return ms |
| 605 | } |
| 606 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 607 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 608 | |
| 609 | // Deprecated: Use JSONNames.ProtoReflect.Type instead. |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 610 | func (*JSONNames) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 611 | return file_pb3_test_proto_rawDescGZIP(), []int{6} |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 612 | } |
| 613 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 614 | func (x *JSONNames) GetSString() string { |
| 615 | if x != nil { |
| 616 | return x.SString |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 617 | } |
| 618 | return "" |
| 619 | } |
| 620 | |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 621 | var File_pb3_test_proto protoreflect.FileDescriptor |
| 622 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 623 | var file_pb3_test_proto_rawDesc = []byte{ |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 624 | 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 625 | 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, |
| 626 | 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 627 | 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, |
| 628 | 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33, |
| 629 | 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, |
| 630 | 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, |
| 631 | 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55, |
| 632 | 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, |
| 633 | 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, |
| 634 | 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01, |
| 635 | 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, |
| 636 | 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73, |
| 637 | 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, |
| 638 | 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, |
| 639 | 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, |
| 640 | 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, |
| 641 | 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a, |
| 642 | 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, |
| 643 | 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20, |
| 644 | 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17, |
| 645 | 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52, |
| 646 | 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75, |
| 647 | 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62, |
| 648 | 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20, |
| 649 | 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, |
| 650 | 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, |
| 651 | 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73, |
| 652 | 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, |
| 653 | 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e, |
| 654 | 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, |
| 655 | 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 656 | 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, |
| 657 | 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a, |
| 658 | 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43, |
| 659 | 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07, |
| 660 | 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10, |
| 661 | 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, |
| 662 | 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, |
| 663 | 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, |
| 664 | 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, |
| 665 | 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, |
| 666 | 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73, |
| 667 | 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 668 | 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, |
| 669 | 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e, |
| 670 | 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, |
| 671 | 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65, |
| 672 | 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, |
| 673 | 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, |
| 674 | 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f, |
| 675 | 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 676 | 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00, |
| 677 | 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a, |
| 678 | 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12, |
| 679 | 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18, |
| 680 | 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, |
| 681 | 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, |
| 682 | 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e, |
| 683 | 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, |
| 684 | 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, |
| 685 | 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72, |
| 686 | 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, |
| 687 | 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75, |
| 688 | 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, |
| 689 | 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45, |
| 690 | 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, |
| 691 | 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73, |
| 692 | 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 693 | 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, |
| 694 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, |
| 695 | 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65, |
| 696 | 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e, |
| 697 | 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, |
| 698 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, |
| 699 | 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, |
| 700 | 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 701 | 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 702 | 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, |
| 703 | 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, |
| 704 | 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, |
| 705 | 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, |
| 706 | 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, |
| 707 | 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, |
| 708 | 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, |
| 709 | 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, |
| 710 | 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, |
| 711 | 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, |
| 712 | 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74, |
| 713 | 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 714 | 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, |
| 715 | 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, |
| 716 | 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53, |
| 717 | 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, |
| 718 | 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, |
| 719 | 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, |
| 720 | 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76, |
| 721 | 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e, |
| 722 | 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, |
| 723 | 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72, |
| 724 | 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, |
| 725 | 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, |
Damien Neil | e89e624 | 2019-05-13 23:55:40 -0700 | [diff] [blame] | 726 | 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x34, 0x5a, |
| 727 | 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, |
| 728 | 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6e, 0x63, 0x6f, |
| 729 | 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, |
| 730 | 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 731 | } |
| 732 | |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 733 | var ( |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 734 | file_pb3_test_proto_rawDescOnce sync.Once |
| 735 | file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 736 | ) |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 737 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 738 | func file_pb3_test_proto_rawDescGZIP() []byte { |
| 739 | file_pb3_test_proto_rawDescOnce.Do(func() { |
| 740 | file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData) |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 741 | }) |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 742 | return file_pb3_test_proto_rawDescData |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 743 | } |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 744 | |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 745 | var file_pb3_test_proto_enumTypes = make([]prototype.Enum, 2) |
Joe Tsai | 4fe9663 | 2019-05-22 05:12:36 -0400 | [diff] [blame] | 746 | var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12) |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 747 | var file_pb3_test_proto_goTypes = []interface{}{ |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 748 | (Enum)(0), // 0: pb3.Enum |
| 749 | (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum |
| 750 | (*Scalars)(nil), // 2: pb3.Scalars |
| 751 | (*Enums)(nil), // 3: pb3.Enums |
| 752 | (*Nests)(nil), // 4: pb3.Nests |
| 753 | (*Nested)(nil), // 5: pb3.Nested |
| 754 | (*Oneofs)(nil), // 6: pb3.Oneofs |
| 755 | (*Maps)(nil), // 7: pb3.Maps |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 756 | (*JSONNames)(nil), // 8: pb3.JSONNames |
| 757 | nil, // 9: pb3.Maps.Int32ToStrEntry |
| 758 | nil, // 10: pb3.Maps.BoolToUint32Entry |
| 759 | nil, // 11: pb3.Maps.Uint64ToEnumEntry |
| 760 | nil, // 12: pb3.Maps.StrToNestedEntry |
| 761 | nil, // 13: pb3.Maps.StrToOneofsEntry |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 762 | } |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 763 | var file_pb3_test_proto_depIdxs = []int32{ |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 764 | 0, // pb3.Enums.s_enum:type_name -> pb3.Enum |
| 765 | 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum |
| 766 | 5, // pb3.Nests.s_nested:type_name -> pb3.Nested |
| 767 | 5, // pb3.Nested.s_nested:type_name -> pb3.Nested |
| 768 | 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum |
| 769 | 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested |
Herbie Ong | 7b828bc | 2019-02-08 19:56:24 -0800 | [diff] [blame] | 770 | 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry |
| 771 | 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry |
| 772 | 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry |
| 773 | 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry |
| 774 | 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 775 | 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum |
| 776 | 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested |
| 777 | 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 778 | 14, // starting offset of method output_type sub-list |
| 779 | 14, // starting offset of method input_type sub-list |
| 780 | 14, // starting offset of extension type_name sub-list |
| 781 | 14, // starting offset of extension extendee sub-list |
| 782 | 0, // starting offset of field type_name sub-list |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 783 | } |
| 784 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 785 | func init() { file_pb3_test_proto_init() } |
| 786 | func file_pb3_test_proto_init() { |
Damien Neil | 0fc2245 | 2019-03-08 17:18:11 -0800 | [diff] [blame] | 787 | if File_pb3_test_proto != nil { |
| 788 | return |
| 789 | } |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 790 | if !protoimpl.UnsafeEnabled { |
| 791 | file_pb3_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 792 | switch v := v.(*Scalars); i { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 793 | case 0: |
| 794 | return &v.state |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 795 | case 16: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 796 | return &v.sizeCache |
| 797 | case 17: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 798 | return &v.unknownFields |
| 799 | default: |
| 800 | return nil |
| 801 | } |
| 802 | } |
| 803 | file_pb3_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 804 | switch v := v.(*Enums); i { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 805 | case 0: |
| 806 | return &v.state |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 807 | case 3: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 808 | return &v.sizeCache |
| 809 | case 4: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 810 | return &v.unknownFields |
| 811 | default: |
| 812 | return nil |
| 813 | } |
| 814 | } |
| 815 | file_pb3_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 816 | switch v := v.(*Nests); i { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 817 | case 0: |
| 818 | return &v.state |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 819 | case 2: |
| 820 | return &v.sizeCache |
| 821 | case 3: |
| 822 | return &v.unknownFields |
| 823 | default: |
| 824 | return nil |
| 825 | } |
| 826 | } |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 827 | file_pb3_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 828 | switch v := v.(*Nested); i { |
| 829 | case 0: |
| 830 | return &v.state |
| 831 | case 3: |
| 832 | return &v.sizeCache |
| 833 | case 4: |
| 834 | return &v.unknownFields |
| 835 | default: |
| 836 | return nil |
| 837 | } |
| 838 | } |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 839 | file_pb3_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 840 | switch v := v.(*Oneofs); i { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 841 | case 0: |
| 842 | return &v.state |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 843 | case 2: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 844 | return &v.sizeCache |
| 845 | case 3: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 846 | return &v.unknownFields |
| 847 | default: |
| 848 | return nil |
| 849 | } |
| 850 | } |
| 851 | file_pb3_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 852 | switch v := v.(*Maps); i { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 853 | case 0: |
| 854 | return &v.state |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 855 | case 6: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 856 | return &v.sizeCache |
| 857 | case 7: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 858 | return &v.unknownFields |
| 859 | default: |
| 860 | return nil |
| 861 | } |
| 862 | } |
| 863 | file_pb3_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| 864 | switch v := v.(*JSONNames); i { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 865 | case 0: |
| 866 | return &v.state |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 867 | case 2: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 868 | return &v.sizeCache |
| 869 | case 3: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 870 | return &v.unknownFields |
| 871 | default: |
| 872 | return nil |
| 873 | } |
| 874 | } |
| 875 | } |
Joe Tsai | 0991227 | 2019-07-08 10:38:11 -0700 | [diff] [blame] | 876 | file_pb3_test_proto_msgTypes[4].OneofWrappers = []interface{}{ |
| 877 | (*Oneofs_OneofEnum)(nil), |
| 878 | (*Oneofs_OneofString)(nil), |
| 879 | (*Oneofs_OneofNested)(nil), |
| 880 | } |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 881 | out := protoimpl.TypeBuilder{ |
| 882 | File: protoimpl.DescBuilder{ |
| 883 | RawDescriptor: file_pb3_test_proto_rawDesc, |
| 884 | NumEnums: 2, |
| 885 | NumMessages: 12, |
| 886 | NumExtensions: 0, |
| 887 | NumServices: 0, |
| 888 | }, |
| 889 | GoTypes: file_pb3_test_proto_goTypes, |
| 890 | DependencyIndexes: file_pb3_test_proto_depIdxs, |
| 891 | MessageInfos: file_pb3_test_proto_msgTypes, |
| 892 | }.Build() |
| 893 | File_pb3_test_proto = out.File |
| 894 | file_pb3_test_proto_enumTypes = out.Enums |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 895 | file_pb3_test_proto_rawDesc = nil |
| 896 | file_pb3_test_proto_goTypes = nil |
| 897 | file_pb3_test_proto_depIdxs = nil |
Herbie Ong | 8170d69 | 2019-02-13 14:13:21 -0800 | [diff] [blame] | 898 | } |