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