| 1 |
// Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 2 |
// source: proto3.proto |
| 3 |
|
| 4 |
package proto3_proto |
| 5 |
|
| 6 |
import ( |
| 7 |
fmt "fmt" |
| 8 |
proto "github.com/gogo/protobuf/proto" |
| 9 |
test_proto "github.com/gogo/protobuf/proto/test_proto" |
| 10 |
types "github.com/gogo/protobuf/types" |
| 11 |
math "math" |
| 12 |
) |
| 13 |
|
| 14 |
// Reference imports to suppress errors if they are not otherwise used. |
| 15 |
var _ = proto.Marshal |
| 16 |
var _ = fmt.Errorf |
| 17 |
var _ = math.Inf |
| 18 |
|
| 19 |
// This is a compile-time assertion to ensure that this generated file |
| 20 |
// is compatible with the proto package it is being compiled against. |
| 21 |
// A compilation error at this line likely means your copy of the |
| 22 |
// proto package needs to be updated. |
| 23 |
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 24 |
|
| 25 |
type Message_Humour int32 |
| 26 |
|
| 27 |
const ( |
| 28 |
Message_UNKNOWN Message_Humour = 0 |
| 29 |
Message_PUNS Message_Humour = 1 |
| 30 |
Message_SLAPSTICK Message_Humour = 2 |
| 31 |
Message_BILL_BAILEY Message_Humour = 3 |
| 32 |
) |
| 33 |
|
| 34 |
var Message_Humour_name = map[int32]string{ |
| 35 |
0: "UNKNOWN", |
| 36 |
1: "PUNS", |
| 37 |
2: "SLAPSTICK", |
| 38 |
3: "BILL_BAILEY", |
| 39 |
} |
| 40 |
|
| 41 |
var Message_Humour_value = map[string]int32{ |
| 42 |
"UNKNOWN": 0, |
| 43 |
"PUNS": 1, |
| 44 |
"SLAPSTICK": 2, |
| 45 |
"BILL_BAILEY": 3, |
| 46 |
} |
| 47 |
|
| 48 |
func (x Message_Humour) String() string { |
| 49 |
return proto.EnumName(Message_Humour_name, int32(x)) |
| 50 |
} |
| 51 |
|
| 52 |
func (Message_Humour) EnumDescriptor() ([]byte, []int) { |
| 53 |
return fileDescriptor_4fee6d65e34a64b6, []int{0, 0} |
| 54 |
} |
| 55 |
|
| 56 |
type Message struct { |
| 57 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 58 |
Hilarity Message_Humour `protobuf:"varint,2,opt,name=hilarity,proto3,enum=proto3_proto.Message_Humour" json:"hilarity,omitempty"` |
| 59 |
HeightInCm uint32 `protobuf:"varint,3,opt,name=height_in_cm,json=heightInCm,proto3" json:"height_in_cm,omitempty"` |
| 60 |
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` |
| 61 |
ResultCount int64 `protobuf:"varint,7,opt,name=result_count,json=resultCount,proto3" json:"result_count,omitempty"` |
| 62 |
TrueScotsman bool `protobuf:"varint,8,opt,name=true_scotsman,json=trueScotsman,proto3" json:"true_scotsman,omitempty"` |
| 63 |
Score float32 `protobuf:"fixed32,9,opt,name=score,proto3" json:"score,omitempty"` |
| 64 |
Key []uint64 `protobuf:"varint,5,rep,packed,name=key,proto3" json:"key,omitempty"` |
| 65 |
ShortKey []int32 `protobuf:"varint,19,rep,packed,name=short_key,json=shortKey,proto3" json:"short_key,omitempty"` |
| 66 |
Nested *Nested `protobuf:"bytes,6,opt,name=nested,proto3" json:"nested,omitempty"` |
| 67 |
RFunny []Message_Humour `protobuf:"varint,16,rep,packed,name=r_funny,json=rFunny,proto3,enum=proto3_proto.Message_Humour" json:"r_funny,omitempty"` |
| 68 |
Terrain map[string]*Nested `protobuf:"bytes,10,rep,name=terrain,proto3" json:"terrain,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 69 |
Proto2Field *test_proto.SubDefaults `protobuf:"bytes,11,opt,name=proto2_field,json=proto2Field,proto3" json:"proto2_field,omitempty"` |
| 70 |
Proto2Value map[string]*test_proto.SubDefaults `protobuf:"bytes,13,rep,name=proto2_value,json=proto2Value,proto3" json:"proto2_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 71 |
Anything *types.Any `protobuf:"bytes,14,opt,name=anything,proto3" json:"anything,omitempty"` |
| 72 |
ManyThings []*types.Any `protobuf:"bytes,15,rep,name=many_things,json=manyThings,proto3" json:"many_things,omitempty"` |
| 73 |
Submessage *Message `protobuf:"bytes,17,opt,name=submessage,proto3" json:"submessage,omitempty"` |
| 74 |
Children []*Message `protobuf:"bytes,18,rep,name=children,proto3" json:"children,omitempty"` |
| 75 |
StringMap map[string]string `protobuf:"bytes,20,rep,name=string_map,json=stringMap,proto3" json:"string_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 76 |
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 77 |
XXX_unrecognized []byte `json:"-"` |
| 78 |
XXX_sizecache int32 `json:"-"` |
| 79 |
} |
| 80 |
|
| 81 |
func (m *Message) Reset() { *m = Message{} } |
| 82 |
func (m *Message) String() string { return proto.CompactTextString(m) } |
| 83 |
func (*Message) ProtoMessage() {} |
| 84 |
func (*Message) Descriptor() ([]byte, []int) { |
| 85 |
return fileDescriptor_4fee6d65e34a64b6, []int{0} |
| 86 |
} |
| 87 |
func (m *Message) XXX_Unmarshal(b []byte) error { |
| 88 |
return xxx_messageInfo_Message.Unmarshal(m, b) |
| 89 |
} |
| 90 |
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 91 |
return xxx_messageInfo_Message.Marshal(b, m, deterministic) |
| 92 |
} |
| 93 |
func (m *Message) XXX_Merge(src proto.Message) { |
| 94 |
xxx_messageInfo_Message.Merge(m, src) |
| 95 |
} |
| 96 |
func (m *Message) XXX_Size() int { |
| 97 |
return xxx_messageInfo_Message.Size(m) |
| 98 |
} |
| 99 |
func (m *Message) XXX_DiscardUnknown() { |
| 100 |
xxx_messageInfo_Message.DiscardUnknown(m) |
| 101 |
} |
| 102 |
|
| 103 |
var xxx_messageInfo_Message proto.InternalMessageInfo |
| 104 |
|
| 105 |
func (m *Message) GetName() string { |
| 106 |
if m != nil { |
| 107 |
return m.Name |
| 108 |
} |
| 109 |
return "" |
| 110 |
} |
| 111 |
|
| 112 |
func (m *Message) GetHilarity() Message_Humour { |
| 113 |
if m != nil { |
| 114 |
return m.Hilarity |
| 115 |
} |
| 116 |
return Message_UNKNOWN |
| 117 |
} |
| 118 |
|
| 119 |
func (m *Message) GetHeightInCm() uint32 { |
| 120 |
if m != nil { |
| 121 |
return m.HeightInCm |
| 122 |
} |
| 123 |
return 0 |
| 124 |
} |
| 125 |
|
| 126 |
func (m *Message) GetData() []byte { |
| 127 |
if m != nil { |
| 128 |
return m.Data |
| 129 |
} |
| 130 |
return nil |
| 131 |
} |
| 132 |
|
| 133 |
func (m *Message) GetResultCount() int64 { |
| 134 |
if m != nil { |
| 135 |
return m.ResultCount |
| 136 |
} |
| 137 |
return 0 |
| 138 |
} |
| 139 |
|
| 140 |
func (m *Message) GetTrueScotsman() bool { |
| 141 |
if m != nil { |
| 142 |
return m.TrueScotsman |
| 143 |
} |
| 144 |
return false |
| 145 |
} |
| 146 |
|
| 147 |
func (m *Message) GetScore() float32 { |
| 148 |
if m != nil { |
| 149 |
return m.Score |
| 150 |
} |
| 151 |
return 0 |
| 152 |
} |
| 153 |
|
| 154 |
func (m *Message) GetKey() []uint64 { |
| 155 |
if m != nil { |
| 156 |
return m.Key |
| 157 |
} |
| 158 |
return nil |
| 159 |
} |
| 160 |
|
| 161 |
func (m *Message) GetShortKey() []int32 { |
| 162 |
if m != nil { |
| 163 |
return m.ShortKey |
| 164 |
} |
| 165 |
return nil |
| 166 |
} |
| 167 |
|
| 168 |
func (m *Message) GetNested() *Nested { |
| 169 |
if m != nil { |
| 170 |
return m.Nested |
| 171 |
} |
| 172 |
return nil |
| 173 |
} |
| 174 |
|
| 175 |
func (m *Message) GetRFunny() []Message_Humour { |
| 176 |
if m != nil { |
| 177 |
return m.RFunny |
| 178 |
} |
| 179 |
return nil |
| 180 |
} |
| 181 |
|
| 182 |
func (m *Message) GetTerrain() map[string]*Nested { |
| 183 |
if m != nil { |
| 184 |
return m.Terrain |
| 185 |
} |
| 186 |
return nil |
| 187 |
} |
| 188 |
|
| 189 |
func (m *Message) GetProto2Field() *test_proto.SubDefaults { |
| 190 |
if m != nil { |
| 191 |
return m.Proto2Field |
| 192 |
} |
| 193 |
return nil |
| 194 |
} |
| 195 |
|
| 196 |
func (m *Message) GetProto2Value() map[string]*test_proto.SubDefaults { |
| 197 |
if m != nil { |
| 198 |
return m.Proto2Value |
| 199 |
} |
| 200 |
return nil |
| 201 |
} |
| 202 |
|
| 203 |
func (m *Message) GetAnything() *types.Any { |
| 204 |
if m != nil { |
| 205 |
return m.Anything |
| 206 |
} |
| 207 |
return nil |
| 208 |
} |
| 209 |
|
| 210 |
func (m *Message) GetManyThings() []*types.Any { |
| 211 |
if m != nil { |
| 212 |
return m.ManyThings |
| 213 |
} |
| 214 |
return nil |
| 215 |
} |
| 216 |
|
| 217 |
func (m *Message) GetSubmessage() *Message { |
| 218 |
if m != nil { |
| 219 |
return m.Submessage |
| 220 |
} |
| 221 |
return nil |
| 222 |
} |
| 223 |
|
| 224 |
func (m *Message) GetChildren() []*Message { |
| 225 |
if m != nil { |
| 226 |
return m.Children |
| 227 |
} |
| 228 |
return nil |
| 229 |
} |
| 230 |
|
| 231 |
func (m *Message) GetStringMap() map[string]string { |
| 232 |
if m != nil { |
| 233 |
return m.StringMap |
| 234 |
} |
| 235 |
return nil |
| 236 |
} |
| 237 |
|
| 238 |
type Nested struct { |
| 239 |
Bunny string `protobuf:"bytes,1,opt,name=bunny,proto3" json:"bunny,omitempty"` |
| 240 |
Cute bool `protobuf:"varint,2,opt,name=cute,proto3" json:"cute,omitempty"` |
| 241 |
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 242 |
XXX_unrecognized []byte `json:"-"` |
| 243 |
XXX_sizecache int32 `json:"-"` |
| 244 |
} |
| 245 |
|
| 246 |
func (m *Nested) Reset() { *m = Nested{} } |
| 247 |
func (m *Nested) String() string { return proto.CompactTextString(m) } |
| 248 |
func (*Nested) ProtoMessage() {} |
| 249 |
func (*Nested) Descriptor() ([]byte, []int) { |
| 250 |
return fileDescriptor_4fee6d65e34a64b6, []int{1} |
| 251 |
} |
| 252 |
func (m *Nested) XXX_Unmarshal(b []byte) error { |
| 253 |
return xxx_messageInfo_Nested.Unmarshal(m, b) |
| 254 |
} |
| 255 |
func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 256 |
return xxx_messageInfo_Nested.Marshal(b, m, deterministic) |
| 257 |
} |
| 258 |
func (m *Nested) XXX_Merge(src proto.Message) { |
| 259 |
xxx_messageInfo_Nested.Merge(m, src) |
| 260 |
} |
| 261 |
func (m *Nested) XXX_Size() int { |
| 262 |
return xxx_messageInfo_Nested.Size(m) |
| 263 |
} |
| 264 |
func (m *Nested) XXX_DiscardUnknown() { |
| 265 |
xxx_messageInfo_Nested.DiscardUnknown(m) |
| 266 |
} |
| 267 |
|
| 268 |
var xxx_messageInfo_Nested proto.InternalMessageInfo |
| 269 |
|
| 270 |
func (m *Nested) GetBunny() string { |
| 271 |
if m != nil { |
| 272 |
return m.Bunny |
| 273 |
} |
| 274 |
return "" |
| 275 |
} |
| 276 |
|
| 277 |
func (m *Nested) GetCute() bool { |
| 278 |
if m != nil { |
| 279 |
return m.Cute |
| 280 |
} |
| 281 |
return false |
| 282 |
} |
| 283 |
|
| 284 |
type MessageWithMap struct { |
| 285 |
ByteMapping map[bool][]byte `protobuf:"bytes,1,rep,name=byte_mapping,json=byteMapping,proto3" json:"byte_mapping,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 286 |
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 287 |
XXX_unrecognized []byte `json:"-"` |
| 288 |
XXX_sizecache int32 `json:"-"` |
| 289 |
} |
| 290 |
|
| 291 |
func (m *MessageWithMap) Reset() { *m = MessageWithMap{} } |
| 292 |
func (m *MessageWithMap) String() string { return proto.CompactTextString(m) } |
| 293 |
func (*MessageWithMap) ProtoMessage() {} |
| 294 |
func (*MessageWithMap) Descriptor() ([]byte, []int) { |
| 295 |
return fileDescriptor_4fee6d65e34a64b6, []int{2} |
| 296 |
} |
| 297 |
func (m *MessageWithMap) XXX_Unmarshal(b []byte) error { |
| 298 |
return xxx_messageInfo_MessageWithMap.Unmarshal(m, b) |
| 299 |
} |
| 300 |
func (m *MessageWithMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 301 |
return xxx_messageInfo_MessageWithMap.Marshal(b, m, deterministic) |
| 302 |
} |
| 303 |
func (m *MessageWithMap) XXX_Merge(src proto.Message) { |
| 304 |
xxx_messageInfo_MessageWithMap.Merge(m, src) |
| 305 |
} |
| 306 |
func (m *MessageWithMap) XXX_Size() int { |
| 307 |
return xxx_messageInfo_MessageWithMap.Size(m) |
| 308 |
} |
| 309 |
func (m *MessageWithMap) XXX_DiscardUnknown() { |
| 310 |
xxx_messageInfo_MessageWithMap.DiscardUnknown(m) |
| 311 |
} |
| 312 |
|
| 313 |
var xxx_messageInfo_MessageWithMap proto.InternalMessageInfo |
| 314 |
|
| 315 |
func (m *MessageWithMap) GetByteMapping() map[bool][]byte { |
| 316 |
if m != nil { |
| 317 |
return m.ByteMapping |
| 318 |
} |
| 319 |
return nil |
| 320 |
} |
| 321 |
|
| 322 |
type IntMap struct { |
| 323 |
Rtt map[int32]int32 `protobuf:"bytes,1,rep,name=rtt,proto3" json:"rtt,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` |
| 324 |
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 325 |
XXX_unrecognized []byte `json:"-"` |
| 326 |
XXX_sizecache int32 `json:"-"` |
| 327 |
} |
| 328 |
|
| 329 |
func (m *IntMap) Reset() { *m = IntMap{} } |
| 330 |
func (m *IntMap) String() string { return proto.CompactTextString(m) } |
| 331 |
func (*IntMap) ProtoMessage() {} |
| 332 |
func (*IntMap) Descriptor() ([]byte, []int) { |
| 333 |
return fileDescriptor_4fee6d65e34a64b6, []int{3} |
| 334 |
} |
| 335 |
func (m *IntMap) XXX_Unmarshal(b []byte) error { |
| 336 |
return xxx_messageInfo_IntMap.Unmarshal(m, b) |
| 337 |
} |
| 338 |
func (m *IntMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 339 |
return xxx_messageInfo_IntMap.Marshal(b, m, deterministic) |
| 340 |
} |
| 341 |
func (m *IntMap) XXX_Merge(src proto.Message) { |
| 342 |
xxx_messageInfo_IntMap.Merge(m, src) |
| 343 |
} |
| 344 |
func (m *IntMap) XXX_Size() int { |
| 345 |
return xxx_messageInfo_IntMap.Size(m) |
| 346 |
} |
| 347 |
func (m *IntMap) XXX_DiscardUnknown() { |
| 348 |
xxx_messageInfo_IntMap.DiscardUnknown(m) |
| 349 |
} |
| 350 |
|
| 351 |
var xxx_messageInfo_IntMap proto.InternalMessageInfo |
| 352 |
|
| 353 |
func (m *IntMap) GetRtt() map[int32]int32 { |
| 354 |
if m != nil { |
| 355 |
return m.Rtt |
| 356 |
} |
| 357 |
return nil |
| 358 |
} |
| 359 |
|
| 360 |
type IntMaps struct { |
| 361 |
Maps []*IntMap `protobuf:"bytes,1,rep,name=maps,proto3" json:"maps,omitempty"` |
| 362 |
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 363 |
XXX_unrecognized []byte `json:"-"` |
| 364 |
XXX_sizecache int32 `json:"-"` |
| 365 |
} |
| 366 |
|
| 367 |
func (m *IntMaps) Reset() { *m = IntMaps{} } |
| 368 |
func (m *IntMaps) String() string { return proto.CompactTextString(m) } |
| 369 |
func (*IntMaps) ProtoMessage() {} |
| 370 |
func (*IntMaps) Descriptor() ([]byte, []int) { |
| 371 |
return fileDescriptor_4fee6d65e34a64b6, []int{4} |
| 372 |
} |
| 373 |
func (m *IntMaps) XXX_Unmarshal(b []byte) error { |
| 374 |
return xxx_messageInfo_IntMaps.Unmarshal(m, b) |
| 375 |
} |
| 376 |
func (m *IntMaps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 377 |
return xxx_messageInfo_IntMaps.Marshal(b, m, deterministic) |
| 378 |
} |
| 379 |
func (m *IntMaps) XXX_Merge(src proto.Message) { |
| 380 |
xxx_messageInfo_IntMaps.Merge(m, src) |
| 381 |
} |
| 382 |
func (m *IntMaps) XXX_Size() int { |
| 383 |
return xxx_messageInfo_IntMaps.Size(m) |
| 384 |
} |
| 385 |
func (m *IntMaps) XXX_DiscardUnknown() { |
| 386 |
xxx_messageInfo_IntMaps.DiscardUnknown(m) |
| 387 |
} |
| 388 |
|
| 389 |
var xxx_messageInfo_IntMaps proto.InternalMessageInfo |
| 390 |
|
| 391 |
func (m *IntMaps) GetMaps() []*IntMap { |
| 392 |
if m != nil { |
| 393 |
return m.Maps |
| 394 |
} |
| 395 |
return nil |
| 396 |
} |
| 397 |
|
| 398 |
type TestUTF8 struct { |
| 399 |
Scalar string `protobuf:"bytes,1,opt,name=scalar,proto3" json:"scalar,omitempty"` |
| 400 |
Vector []string `protobuf:"bytes,2,rep,name=vector,proto3" json:"vector,omitempty"` |
| 401 |
// Types that are valid to be assigned to Oneof: |
| 402 |
// *TestUTF8_Field |
| 403 |
Oneof isTestUTF8_Oneof `protobuf_oneof:"oneof"` |
| 404 |
MapKey map[string]int64 `protobuf:"bytes,4,rep,name=map_key,json=mapKey,proto3" json:"map_key,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` |
| 405 |
MapValue map[int64]string `protobuf:"bytes,5,rep,name=map_value,json=mapValue,proto3" json:"map_value,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 406 |
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 407 |
XXX_unrecognized []byte `json:"-"` |
| 408 |
XXX_sizecache int32 `json:"-"` |
| 409 |
} |
| 410 |
|
| 411 |
func (m *TestUTF8) Reset() { *m = TestUTF8{} } |
| 412 |
func (m *TestUTF8) String() string { return proto.CompactTextString(m) } |
| 413 |
func (*TestUTF8) ProtoMessage() {} |
| 414 |
func (*TestUTF8) Descriptor() ([]byte, []int) { |
| 415 |
return fileDescriptor_4fee6d65e34a64b6, []int{5} |
| 416 |
} |
| 417 |
func (m *TestUTF8) XXX_Unmarshal(b []byte) error { |
| 418 |
return xxx_messageInfo_TestUTF8.Unmarshal(m, b) |
| 419 |
} |
| 420 |
func (m *TestUTF8) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 421 |
return xxx_messageInfo_TestUTF8.Marshal(b, m, deterministic) |
| 422 |
} |
| 423 |
func (m *TestUTF8) XXX_Merge(src proto.Message) { |
| 424 |
xxx_messageInfo_TestUTF8.Merge(m, src) |
| 425 |
} |
| 426 |
func (m *TestUTF8) XXX_Size() int { |
| 427 |
return xxx_messageInfo_TestUTF8.Size(m) |
| 428 |
} |
| 429 |
func (m *TestUTF8) XXX_DiscardUnknown() { |
| 430 |
xxx_messageInfo_TestUTF8.DiscardUnknown(m) |
| 431 |
} |
| 432 |
|
| 433 |
var xxx_messageInfo_TestUTF8 proto.InternalMessageInfo |
| 434 |
|
| 435 |
type isTestUTF8_Oneof interface { |
| 436 |
isTestUTF8_Oneof() |
| 437 |
} |
| 438 |
|
| 439 |
type TestUTF8_Field struct { |
| 440 |
Field string `protobuf:"bytes,3,opt,name=field,proto3,oneof" json:"field,omitempty"` |
| 441 |
} |
| 442 |
|
| 443 |
func (*TestUTF8_Field) isTestUTF8_Oneof() {} |
| 444 |
|
| 445 |
func (m *TestUTF8) GetOneof() isTestUTF8_Oneof { |
| 446 |
if m != nil { |
| 447 |
return m.Oneof |
| 448 |
} |
| 449 |
return nil |
| 450 |
} |
| 451 |
|
| 452 |
func (m *TestUTF8) GetScalar() string { |
| 453 |
if m != nil { |
| 454 |
return m.Scalar |
| 455 |
} |
| 456 |
return "" |
| 457 |
} |
| 458 |
|
| 459 |
func (m *TestUTF8) GetVector() []string { |
| 460 |
if m != nil { |
| 461 |
return m.Vector |
| 462 |
} |
| 463 |
return nil |
| 464 |
} |
| 465 |
|
| 466 |
func (m *TestUTF8) GetField() string { |
| 467 |
if x, ok := m.GetOneof().(*TestUTF8_Field); ok { |
| 468 |
return x.Field |
| 469 |
} |
| 470 |
return "" |
| 471 |
} |
| 472 |
|
| 473 |
func (m *TestUTF8) GetMapKey() map[string]int64 { |
| 474 |
if m != nil { |
| 475 |
return m.MapKey |
| 476 |
} |
| 477 |
return nil |
| 478 |
} |
| 479 |
|
| 480 |
func (m *TestUTF8) GetMapValue() map[int64]string { |
| 481 |
if m != nil { |
| 482 |
return m.MapValue |
| 483 |
} |
| 484 |
return nil |
| 485 |
} |
| 486 |
|
| 487 |
// XXX_OneofWrappers is for the internal use of the proto package. |
| 488 |
func (*TestUTF8) XXX_OneofWrappers() []interface{} { |
| 489 |
return []interface{}{ |
| 490 |
(*TestUTF8_Field)(nil), |
| 491 |
} |
| 492 |
} |
| 493 |
|
| 494 |
func init() { |
| 495 |
proto.RegisterEnum("proto3_proto.Message_Humour", Message_Humour_name, Message_Humour_value) |
| 496 |
proto.RegisterType((*Message)(nil), "proto3_proto.Message") |
| 497 |
proto.RegisterMapType((map[string]*test_proto.SubDefaults)(nil), "proto3_proto.Message.Proto2ValueEntry") |
| 498 |
proto.RegisterMapType((map[string]string)(nil), "proto3_proto.Message.StringMapEntry") |
| 499 |
proto.RegisterMapType((map[string]*Nested)(nil), "proto3_proto.Message.TerrainEntry") |
| 500 |
proto.RegisterType((*Nested)(nil), "proto3_proto.Nested") |
| 501 |
proto.RegisterType((*MessageWithMap)(nil), "proto3_proto.MessageWithMap") |
| 502 |
proto.RegisterMapType((map[bool][]byte)(nil), "proto3_proto.MessageWithMap.ByteMappingEntry") |
| 503 |
proto.RegisterType((*IntMap)(nil), "proto3_proto.IntMap") |
| 504 |
proto.RegisterMapType((map[int32]int32)(nil), "proto3_proto.IntMap.RttEntry") |
| 505 |
proto.RegisterType((*IntMaps)(nil), "proto3_proto.IntMaps") |
| 506 |
proto.RegisterType((*TestUTF8)(nil), "proto3_proto.TestUTF8") |
| 507 |
proto.RegisterMapType((map[string]int64)(nil), "proto3_proto.TestUTF8.MapKeyEntry") |
| 508 |
proto.RegisterMapType((map[int64]string)(nil), "proto3_proto.TestUTF8.MapValueEntry") |
| 509 |
} |
| 510 |
|
| 511 |
func init() { proto.RegisterFile("proto3.proto", fileDescriptor_4fee6d65e34a64b6) } |
| 512 |
|
| 513 |
var fileDescriptor_4fee6d65e34a64b6 = []byte{ |
| 514 |
// 891 bytes of a gzipped FileDescriptorProto |
| 515 |
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xff, 0x8e, 0xdb, 0x44, |
| 516 |
0x10, 0xae, 0xe3, 0xfc, 0x70, 0x26, 0xc9, 0x35, 0x2c, 0x69, 0x59, 0x02, 0x48, 0x26, 0x20, 0x64, |
| 517 |
0x21, 0xea, 0x83, 0x54, 0x87, 0x8e, 0xb6, 0x02, 0xdd, 0x1d, 0x3d, 0x35, 0xba, 0x4b, 0x88, 0x36, |
| 518 |
0x39, 0x4e, 0xfc, 0x65, 0x6d, 0x72, 0x9b, 0xc4, 0x22, 0x5e, 0x07, 0xef, 0xba, 0x92, 0x5f, 0x80, |
| 519 |
0x07, 0xe1, 0x95, 0x78, 0x21, 0xb4, 0xbb, 0xce, 0xd5, 0xa9, 0x5c, 0xee, 0x2f, 0xef, 0x7c, 0xfe, |
| 520 |
0x66, 0xbe, 0xd9, 0x99, 0xd9, 0x81, 0xf6, 0x2e, 0x89, 0x65, 0xfc, 0xdc, 0xd7, 0x1f, 0x94, 0x5b, |
| 521 |
0x81, 0xfe, 0xf4, 0x3f, 0x5d, 0xc7, 0xf1, 0x7a, 0xcb, 0x8e, 0xb5, 0xb5, 0x48, 0x57, 0xc7, 0x94, |
| 522 |
0x67, 0x86, 0xd8, 0x7f, 0x22, 0x99, 0x90, 0x86, 0x76, 0xac, 0x8e, 0x06, 0x1e, 0xfc, 0xdd, 0x84, |
| 523 |
0xc6, 0x98, 0x09, 0x41, 0xd7, 0x0c, 0x21, 0xa8, 0x72, 0x1a, 0x31, 0x6c, 0xb9, 0x96, 0xd7, 0x24, |
| 524 |
0xfa, 0x8c, 0x4e, 0xc1, 0xd9, 0x84, 0x5b, 0x9a, 0x84, 0x32, 0xc3, 0x15, 0xd7, 0xf2, 0x8e, 0x86, |
| 525 |
0x9f, 0xfb, 0x45, 0x49, 0x3f, 0x77, 0xf6, 0xdf, 0xa4, 0x51, 0x9c, 0x26, 0xe4, 0x9e, 0x8d, 0x5c, |
| 526 |
0x68, 0x6f, 0x58, 0xb8, 0xde, 0xc8, 0x20, 0xe4, 0xc1, 0x32, 0xc2, 0xb6, 0x6b, 0x79, 0x1d, 0x02, |
| 527 |
0x06, 0x1b, 0xf1, 0x8b, 0x48, 0xe9, 0xdd, 0x51, 0x49, 0x71, 0xd5, 0xb5, 0xbc, 0x36, 0xd1, 0x67, |
| 528 |
0xf4, 0x25, 0xb4, 0x13, 0x26, 0xd2, 0xad, 0x0c, 0x96, 0x71, 0xca, 0x25, 0x6e, 0xb8, 0x96, 0x67, |
| 529 |
0x93, 0x96, 0xc1, 0x2e, 0x14, 0x84, 0xbe, 0x82, 0x8e, 0x4c, 0x52, 0x16, 0x88, 0x65, 0x2c, 0x45, |
| 530 |
0x44, 0x39, 0x76, 0x5c, 0xcb, 0x73, 0x48, 0x5b, 0x81, 0xb3, 0x1c, 0x43, 0x3d, 0xa8, 0x89, 0x65, |
| 531 |
0x9c, 0x30, 0xdc, 0x74, 0x2d, 0xaf, 0x42, 0x8c, 0x81, 0xba, 0x60, 0xff, 0xc9, 0x32, 0x5c, 0x73, |
| 532 |
0x6d, 0xaf, 0x4a, 0xd4, 0x11, 0x7d, 0x06, 0x4d, 0xb1, 0x89, 0x13, 0x19, 0x28, 0xfc, 0x63, 0xd7, |
| 533 |
0xf6, 0x6a, 0xc4, 0xd1, 0xc0, 0x15, 0xcb, 0xd0, 0x77, 0x50, 0xe7, 0x4c, 0x48, 0x76, 0x87, 0xeb, |
| 534 |
0xae, 0xe5, 0xb5, 0x86, 0xbd, 0xc3, 0xab, 0x4f, 0xf4, 0x3f, 0x92, 0x73, 0xd0, 0x09, 0x34, 0x92, |
| 535 |
0x60, 0x95, 0x72, 0x9e, 0xe1, 0xae, 0x6b, 0x3f, 0x58, 0xa9, 0x7a, 0x72, 0xa9, 0xb8, 0xe8, 0x15, |
| 536 |
0x34, 0x24, 0x4b, 0x12, 0x1a, 0x72, 0x0c, 0xae, 0xed, 0xb5, 0x86, 0x83, 0x72, 0xb7, 0xb9, 0x21, |
| 537 |
0xbd, 0xe6, 0x32, 0xc9, 0xc8, 0xde, 0x05, 0xbd, 0xc8, 0xe7, 0x61, 0x18, 0xac, 0x42, 0xb6, 0xbd, |
| 538 |
0xc3, 0x2d, 0x9d, 0xe8, 0x27, 0xfe, 0xbb, 0x6e, 0xfb, 0xb3, 0x74, 0xf1, 0x2b, 0x5b, 0xd1, 0x74, |
| 539 |
0x2b, 0x05, 0x69, 0x19, 0xf2, 0xa5, 0xe2, 0xa2, 0xd1, 0xbd, 0xef, 0x5b, 0xba, 0x4d, 0x19, 0xee, |
| 540 |
0x68, 0xf9, 0x6f, 0xca, 0xe5, 0xa7, 0x9a, 0xf9, 0xbb, 0x22, 0x9a, 0x14, 0xf2, 0x50, 0x1a, 0x41, |
| 541 |
0xdf, 0x83, 0x43, 0x79, 0x26, 0x37, 0x21, 0x5f, 0xe3, 0xa3, 0xbc, 0x56, 0x66, 0x16, 0xfd, 0xfd, |
| 542 |
0x2c, 0xfa, 0x67, 0x3c, 0x23, 0xf7, 0x2c, 0x74, 0x02, 0xad, 0x88, 0xf2, 0x2c, 0xd0, 0x96, 0xc0, |
| 543 |
0x8f, 0xb5, 0x76, 0xb9, 0x13, 0x28, 0xe2, 0x5c, 0xf3, 0xd0, 0x09, 0x80, 0x48, 0x17, 0x91, 0x49, |
| 544 |
0x0a, 0x7f, 0xa4, 0xa5, 0x9e, 0x94, 0x66, 0x4c, 0x0a, 0x44, 0xf4, 0x03, 0x38, 0xcb, 0x4d, 0xb8, |
| 545 |
0xbd, 0x4b, 0x18, 0xc7, 0x48, 0x4b, 0x7d, 0xc0, 0xe9, 0x9e, 0x86, 0x2e, 0x00, 0x84, 0x4c, 0x42, |
| 546 |
0xbe, 0x0e, 0x22, 0xba, 0xc3, 0x3d, 0xed, 0xf4, 0x75, 0x79, 0x6d, 0x66, 0x9a, 0x37, 0xa6, 0x3b, |
| 547 |
0x53, 0x99, 0xa6, 0xd8, 0xdb, 0xfd, 0x29, 0xb4, 0x8b, 0x7d, 0xdb, 0x0f, 0xa0, 0x79, 0x61, 0x7a, |
| 548 |
0x00, 0xbf, 0x85, 0x9a, 0xa9, 0x7e, 0xe5, 0x7f, 0x46, 0xcc, 0x50, 0x5e, 0x54, 0x4e, 0xad, 0xfe, |
| 549 |
0x2d, 0x74, 0xdf, 0x6f, 0x45, 0x49, 0xd4, 0x67, 0x87, 0x51, 0x3f, 0x38, 0x0f, 0x85, 0xc0, 0xaf, |
| 550 |
0xe0, 0xe8, 0xf0, 0x1e, 0x25, 0x61, 0x7b, 0xc5, 0xb0, 0xcd, 0x82, 0xf7, 0xe0, 0x17, 0xa8, 0x9b, |
| 551 |
0xb9, 0x46, 0x2d, 0x68, 0xdc, 0x4c, 0xae, 0x26, 0xbf, 0xdd, 0x4e, 0xba, 0x8f, 0x90, 0x03, 0xd5, |
| 552 |
0xe9, 0xcd, 0x64, 0xd6, 0xb5, 0x50, 0x07, 0x9a, 0xb3, 0xeb, 0xb3, 0xe9, 0x6c, 0x3e, 0xba, 0xb8, |
| 553 |
0xea, 0x56, 0xd0, 0x63, 0x68, 0x9d, 0x8f, 0xae, 0xaf, 0x83, 0xf3, 0xb3, 0xd1, 0xf5, 0xeb, 0x3f, |
| 554 |
0xba, 0xf6, 0x60, 0x08, 0x75, 0x73, 0x59, 0x25, 0xb2, 0xd0, 0xaf, 0xc8, 0x08, 0x1b, 0x43, 0x2d, |
| 555 |
0x8b, 0x65, 0x2a, 0x8d, 0xb2, 0x43, 0xf4, 0x79, 0xf0, 0x8f, 0x05, 0x47, 0x79, 0x0f, 0x6e, 0x43, |
| 556 |
0xb9, 0x19, 0xd3, 0x1d, 0x9a, 0x42, 0x7b, 0x91, 0x49, 0xa6, 0x7a, 0xb6, 0x53, 0xc3, 0x68, 0xe9, |
| 557 |
0xbe, 0x3d, 0x2b, 0xed, 0x5b, 0xee, 0xe3, 0x9f, 0x67, 0x92, 0x8d, 0x0d, 0x3f, 0x1f, 0xed, 0xc5, |
| 558 |
0x3b, 0xa4, 0xff, 0x33, 0x74, 0xdf, 0x27, 0x14, 0x2b, 0xe3, 0x94, 0x54, 0xa6, 0x5d, 0xac, 0xcc, |
| 559 |
0x5f, 0x50, 0x1f, 0x71, 0xa9, 0x72, 0x3b, 0x06, 0x3b, 0x91, 0x32, 0x4f, 0xe9, 0x8b, 0xc3, 0x94, |
| 560 |
0x0c, 0xc5, 0x27, 0x52, 0x9a, 0x14, 0x14, 0xb3, 0xff, 0x23, 0x38, 0x7b, 0xa0, 0x28, 0x59, 0x2b, |
| 561 |
0x91, 0xac, 0x15, 0x25, 0x9f, 0x43, 0xc3, 0xc4, 0x13, 0xc8, 0x83, 0x6a, 0x44, 0x77, 0x22, 0x17, |
| 562 |
0xed, 0x95, 0x89, 0x12, 0xcd, 0x18, 0xfc, 0x5b, 0x01, 0x67, 0xce, 0x84, 0xbc, 0x99, 0x5f, 0x9e, |
| 563 |
0xa2, 0xa7, 0x50, 0x17, 0x4b, 0xba, 0xa5, 0x49, 0xde, 0x84, 0xdc, 0x52, 0xf8, 0x5b, 0xb6, 0x94, |
| 564 |
0x71, 0x82, 0x2b, 0xae, 0xad, 0x70, 0x63, 0xa1, 0xa7, 0x50, 0x33, 0xfb, 0x47, 0x6d, 0xf9, 0xe6, |
| 565 |
0x9b, 0x47, 0xc4, 0x98, 0xe8, 0x25, 0x34, 0x22, 0xba, 0xd3, 0xcb, 0xb5, 0x5a, 0xb6, 0xdc, 0xf6, |
| 566 |
0x82, 0xfe, 0x98, 0xee, 0xae, 0x58, 0x66, 0xee, 0x5e, 0x8f, 0xb4, 0x81, 0xce, 0xa0, 0xa9, 0x9c, |
| 567 |
0xcd, 0x25, 0x6b, 0x65, 0x0f, 0xb0, 0xe8, 0x5e, 0x58, 0x4d, 0x4e, 0x94, 0x9b, 0xfd, 0x9f, 0xa0, |
| 568 |
0x55, 0x88, 0xfc, 0xd0, 0x44, 0xdb, 0xc5, 0xf7, 0xf0, 0x12, 0x3a, 0x07, 0x51, 0x8b, 0xce, 0xf6, |
| 569 |
0x03, 0xcf, 0xe1, 0xbc, 0x01, 0xb5, 0x98, 0xb3, 0x78, 0xb5, 0xa8, 0x9b, 0x7c, 0xff, 0x0b, 0x00, |
| 570 |
0x00, 0xff, 0xff, 0x0e, 0x22, 0xea, 0x15, 0xb6, 0x07, 0x00, 0x00, |
| 571 |
} |