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