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