github.com/gogo/protobuf@v1.3.2/protoc-gen-gogo/testdata/extension_user/extension_user.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: extension_user/extension_user.proto 3 4 package extension_user 5 6 import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 extension_base "github.com/gogo/protobuf/protoc-gen-gogo/testdata/extension_base" 10 extension_extra "github.com/gogo/protobuf/protoc-gen-gogo/testdata/extension_extra" 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 UserMessage struct { 26 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 27 Rank *string `protobuf:"bytes,2,opt,name=rank" json:"rank,omitempty"` 28 XXX_NoUnkeyedLiteral struct{} `json:"-"` 29 XXX_unrecognized []byte `json:"-"` 30 XXX_sizecache int32 `json:"-"` 31 } 32 33 func (m *UserMessage) Reset() { *m = UserMessage{} } 34 func (m *UserMessage) String() string { return proto.CompactTextString(m) } 35 func (*UserMessage) ProtoMessage() {} 36 func (*UserMessage) Descriptor() ([]byte, []int) { 37 return fileDescriptor_359ba8abf543ca10, []int{0} 38 } 39 func (m *UserMessage) XXX_Unmarshal(b []byte) error { 40 return xxx_messageInfo_UserMessage.Unmarshal(m, b) 41 } 42 func (m *UserMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 43 return xxx_messageInfo_UserMessage.Marshal(b, m, deterministic) 44 } 45 func (m *UserMessage) XXX_Merge(src proto.Message) { 46 xxx_messageInfo_UserMessage.Merge(m, src) 47 } 48 func (m *UserMessage) XXX_Size() int { 49 return xxx_messageInfo_UserMessage.Size(m) 50 } 51 func (m *UserMessage) XXX_DiscardUnknown() { 52 xxx_messageInfo_UserMessage.DiscardUnknown(m) 53 } 54 55 var xxx_messageInfo_UserMessage proto.InternalMessageInfo 56 57 func (m *UserMessage) GetName() string { 58 if m != nil && m.Name != nil { 59 return *m.Name 60 } 61 return "" 62 } 63 64 func (m *UserMessage) GetRank() string { 65 if m != nil && m.Rank != nil { 66 return *m.Rank 67 } 68 return "" 69 } 70 71 // Extend inside the scope of another type 72 type LoudMessage struct { 73 XXX_NoUnkeyedLiteral struct{} `json:"-"` 74 proto.XXX_InternalExtensions `json:"-"` 75 XXX_unrecognized []byte `json:"-"` 76 XXX_sizecache int32 `json:"-"` 77 } 78 79 func (m *LoudMessage) Reset() { *m = LoudMessage{} } 80 func (m *LoudMessage) String() string { return proto.CompactTextString(m) } 81 func (*LoudMessage) ProtoMessage() {} 82 func (*LoudMessage) Descriptor() ([]byte, []int) { 83 return fileDescriptor_359ba8abf543ca10, []int{1} 84 } 85 86 var extRange_LoudMessage = []proto.ExtensionRange{ 87 {Start: 100, End: 536870911}, 88 } 89 90 func (*LoudMessage) ExtensionRangeArray() []proto.ExtensionRange { 91 return extRange_LoudMessage 92 } 93 94 func (m *LoudMessage) XXX_Unmarshal(b []byte) error { 95 return xxx_messageInfo_LoudMessage.Unmarshal(m, b) 96 } 97 func (m *LoudMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 98 return xxx_messageInfo_LoudMessage.Marshal(b, m, deterministic) 99 } 100 func (m *LoudMessage) XXX_Merge(src proto.Message) { 101 xxx_messageInfo_LoudMessage.Merge(m, src) 102 } 103 func (m *LoudMessage) XXX_Size() int { 104 return xxx_messageInfo_LoudMessage.Size(m) 105 } 106 func (m *LoudMessage) XXX_DiscardUnknown() { 107 xxx_messageInfo_LoudMessage.DiscardUnknown(m) 108 } 109 110 var xxx_messageInfo_LoudMessage proto.InternalMessageInfo 111 112 var E_LoudMessage_Volume = &proto.ExtensionDesc{ 113 ExtendedType: (*extension_base.BaseMessage)(nil), 114 ExtensionType: (*uint32)(nil), 115 Field: 8, 116 Name: "extension_user.LoudMessage.volume", 117 Tag: "varint,8,opt,name=volume", 118 Filename: "extension_user/extension_user.proto", 119 } 120 121 // Extend inside the scope of another type, using a message. 122 type LoginMessage struct { 123 XXX_NoUnkeyedLiteral struct{} `json:"-"` 124 XXX_unrecognized []byte `json:"-"` 125 XXX_sizecache int32 `json:"-"` 126 } 127 128 func (m *LoginMessage) Reset() { *m = LoginMessage{} } 129 func (m *LoginMessage) String() string { return proto.CompactTextString(m) } 130 func (*LoginMessage) ProtoMessage() {} 131 func (*LoginMessage) Descriptor() ([]byte, []int) { 132 return fileDescriptor_359ba8abf543ca10, []int{2} 133 } 134 func (m *LoginMessage) XXX_Unmarshal(b []byte) error { 135 return xxx_messageInfo_LoginMessage.Unmarshal(m, b) 136 } 137 func (m *LoginMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 138 return xxx_messageInfo_LoginMessage.Marshal(b, m, deterministic) 139 } 140 func (m *LoginMessage) XXX_Merge(src proto.Message) { 141 xxx_messageInfo_LoginMessage.Merge(m, src) 142 } 143 func (m *LoginMessage) XXX_Size() int { 144 return xxx_messageInfo_LoginMessage.Size(m) 145 } 146 func (m *LoginMessage) XXX_DiscardUnknown() { 147 xxx_messageInfo_LoginMessage.DiscardUnknown(m) 148 } 149 150 var xxx_messageInfo_LoginMessage proto.InternalMessageInfo 151 152 var E_LoginMessage_UserMessage = &proto.ExtensionDesc{ 153 ExtendedType: (*extension_base.BaseMessage)(nil), 154 ExtensionType: (*UserMessage)(nil), 155 Field: 16, 156 Name: "extension_user.LoginMessage.user_message", 157 Tag: "bytes,16,opt,name=user_message", 158 Filename: "extension_user/extension_user.proto", 159 } 160 161 type Detail struct { 162 Color *string `protobuf:"bytes,1,opt,name=color" json:"color,omitempty"` 163 XXX_NoUnkeyedLiteral struct{} `json:"-"` 164 XXX_unrecognized []byte `json:"-"` 165 XXX_sizecache int32 `json:"-"` 166 } 167 168 func (m *Detail) Reset() { *m = Detail{} } 169 func (m *Detail) String() string { return proto.CompactTextString(m) } 170 func (*Detail) ProtoMessage() {} 171 func (*Detail) Descriptor() ([]byte, []int) { 172 return fileDescriptor_359ba8abf543ca10, []int{3} 173 } 174 func (m *Detail) XXX_Unmarshal(b []byte) error { 175 return xxx_messageInfo_Detail.Unmarshal(m, b) 176 } 177 func (m *Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 178 return xxx_messageInfo_Detail.Marshal(b, m, deterministic) 179 } 180 func (m *Detail) XXX_Merge(src proto.Message) { 181 xxx_messageInfo_Detail.Merge(m, src) 182 } 183 func (m *Detail) XXX_Size() int { 184 return xxx_messageInfo_Detail.Size(m) 185 } 186 func (m *Detail) XXX_DiscardUnknown() { 187 xxx_messageInfo_Detail.DiscardUnknown(m) 188 } 189 190 var xxx_messageInfo_Detail proto.InternalMessageInfo 191 192 func (m *Detail) GetColor() string { 193 if m != nil && m.Color != nil { 194 return *m.Color 195 } 196 return "" 197 } 198 199 // An extension of an extension 200 type Announcement struct { 201 Words *string `protobuf:"bytes,1,opt,name=words" json:"words,omitempty"` 202 XXX_NoUnkeyedLiteral struct{} `json:"-"` 203 XXX_unrecognized []byte `json:"-"` 204 XXX_sizecache int32 `json:"-"` 205 } 206 207 func (m *Announcement) Reset() { *m = Announcement{} } 208 func (m *Announcement) String() string { return proto.CompactTextString(m) } 209 func (*Announcement) ProtoMessage() {} 210 func (*Announcement) Descriptor() ([]byte, []int) { 211 return fileDescriptor_359ba8abf543ca10, []int{4} 212 } 213 func (m *Announcement) XXX_Unmarshal(b []byte) error { 214 return xxx_messageInfo_Announcement.Unmarshal(m, b) 215 } 216 func (m *Announcement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 217 return xxx_messageInfo_Announcement.Marshal(b, m, deterministic) 218 } 219 func (m *Announcement) XXX_Merge(src proto.Message) { 220 xxx_messageInfo_Announcement.Merge(m, src) 221 } 222 func (m *Announcement) XXX_Size() int { 223 return xxx_messageInfo_Announcement.Size(m) 224 } 225 func (m *Announcement) XXX_DiscardUnknown() { 226 xxx_messageInfo_Announcement.DiscardUnknown(m) 227 } 228 229 var xxx_messageInfo_Announcement proto.InternalMessageInfo 230 231 func (m *Announcement) GetWords() string { 232 if m != nil && m.Words != nil { 233 return *m.Words 234 } 235 return "" 236 } 237 238 var E_Announcement_LoudExt = &proto.ExtensionDesc{ 239 ExtendedType: (*LoudMessage)(nil), 240 ExtensionType: (*Announcement)(nil), 241 Field: 100, 242 Name: "extension_user.Announcement.loud_ext", 243 Tag: "bytes,100,opt,name=loud_ext", 244 Filename: "extension_user/extension_user.proto", 245 } 246 247 // Something that can be put in a message set. 248 type OldStyleParcel struct { 249 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 250 Height *int32 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"` 251 XXX_NoUnkeyedLiteral struct{} `json:"-"` 252 XXX_unrecognized []byte `json:"-"` 253 XXX_sizecache int32 `json:"-"` 254 } 255 256 func (m *OldStyleParcel) Reset() { *m = OldStyleParcel{} } 257 func (m *OldStyleParcel) String() string { return proto.CompactTextString(m) } 258 func (*OldStyleParcel) ProtoMessage() {} 259 func (*OldStyleParcel) Descriptor() ([]byte, []int) { 260 return fileDescriptor_359ba8abf543ca10, []int{5} 261 } 262 func (m *OldStyleParcel) XXX_Unmarshal(b []byte) error { 263 return xxx_messageInfo_OldStyleParcel.Unmarshal(m, b) 264 } 265 func (m *OldStyleParcel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 266 return xxx_messageInfo_OldStyleParcel.Marshal(b, m, deterministic) 267 } 268 func (m *OldStyleParcel) XXX_Merge(src proto.Message) { 269 xxx_messageInfo_OldStyleParcel.Merge(m, src) 270 } 271 func (m *OldStyleParcel) XXX_Size() int { 272 return xxx_messageInfo_OldStyleParcel.Size(m) 273 } 274 func (m *OldStyleParcel) XXX_DiscardUnknown() { 275 xxx_messageInfo_OldStyleParcel.DiscardUnknown(m) 276 } 277 278 var xxx_messageInfo_OldStyleParcel proto.InternalMessageInfo 279 280 func (m *OldStyleParcel) GetName() string { 281 if m != nil && m.Name != nil { 282 return *m.Name 283 } 284 return "" 285 } 286 287 func (m *OldStyleParcel) GetHeight() int32 { 288 if m != nil && m.Height != nil { 289 return *m.Height 290 } 291 return 0 292 } 293 294 var E_OldStyleParcel_MessageSetExtension = &proto.ExtensionDesc{ 295 ExtendedType: (*extension_base.OldStyleMessage)(nil), 296 ExtensionType: (*OldStyleParcel)(nil), 297 Field: 2001, 298 Name: "extension_user.OldStyleParcel", 299 Tag: "bytes,2001,opt,name=message_set_extension", 300 Filename: "extension_user/extension_user.proto", 301 } 302 303 var E_UserMessage = &proto.ExtensionDesc{ 304 ExtendedType: (*extension_base.BaseMessage)(nil), 305 ExtensionType: (*UserMessage)(nil), 306 Field: 5, 307 Name: "extension_user.user_message", 308 Tag: "bytes,5,opt,name=user_message", 309 Filename: "extension_user/extension_user.proto", 310 } 311 312 var E_ExtraMessage = &proto.ExtensionDesc{ 313 ExtendedType: (*extension_base.BaseMessage)(nil), 314 ExtensionType: (*extension_extra.ExtraMessage)(nil), 315 Field: 9, 316 Name: "extension_user.extra_message", 317 Tag: "bytes,9,opt,name=extra_message", 318 Filename: "extension_user/extension_user.proto", 319 } 320 321 var E_Width = &proto.ExtensionDesc{ 322 ExtendedType: (*extension_base.BaseMessage)(nil), 323 ExtensionType: (*int32)(nil), 324 Field: 6, 325 Name: "extension_user.width", 326 Tag: "varint,6,opt,name=width", 327 Filename: "extension_user/extension_user.proto", 328 } 329 330 var E_Area = &proto.ExtensionDesc{ 331 ExtendedType: (*extension_base.BaseMessage)(nil), 332 ExtensionType: (*int64)(nil), 333 Field: 7, 334 Name: "extension_user.area", 335 Tag: "varint,7,opt,name=area", 336 Filename: "extension_user/extension_user.proto", 337 } 338 339 var E_Detail = &proto.ExtensionDesc{ 340 ExtendedType: (*extension_base.BaseMessage)(nil), 341 ExtensionType: ([]*Detail)(nil), 342 Field: 17, 343 Name: "extension_user.detail", 344 Tag: "bytes,17,rep,name=detail", 345 Filename: "extension_user/extension_user.proto", 346 } 347 348 func init() { 349 proto.RegisterType((*UserMessage)(nil), "extension_user.UserMessage") 350 proto.RegisterExtension(E_LoudMessage_Volume) 351 proto.RegisterType((*LoudMessage)(nil), "extension_user.LoudMessage") 352 proto.RegisterExtension(E_LoginMessage_UserMessage) 353 proto.RegisterType((*LoginMessage)(nil), "extension_user.LoginMessage") 354 proto.RegisterType((*Detail)(nil), "extension_user.Detail") 355 proto.RegisterExtension(E_Announcement_LoudExt) 356 proto.RegisterType((*Announcement)(nil), "extension_user.Announcement") 357 proto.RegisterExtension(E_OldStyleParcel_MessageSetExtension) 358 proto.RegisterType((*OldStyleParcel)(nil), "extension_user.OldStyleParcel") 359 proto.RegisterExtension(E_UserMessage) 360 proto.RegisterExtension(E_ExtraMessage) 361 proto.RegisterExtension(E_Width) 362 proto.RegisterExtension(E_Area) 363 proto.RegisterExtension(E_Detail) 364 } 365 366 func init() { 367 proto.RegisterFile("extension_user/extension_user.proto", fileDescriptor_359ba8abf543ca10) 368 } 369 370 var fileDescriptor_359ba8abf543ca10 = []byte{ 371 // 490 bytes of a gzipped FileDescriptorProto 372 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xc1, 0x6e, 0xd3, 0x40, 373 0x10, 0x95, 0xdb, 0xc6, 0x4d, 0xc7, 0x69, 0x29, 0x06, 0xaa, 0xa8, 0x40, 0xb1, 0x8c, 0x90, 0x2c, 374 0xa4, 0xc6, 0xc2, 0x88, 0x8b, 0x4f, 0x10, 0x91, 0x13, 0x41, 0x20, 0x17, 0x2e, 0x70, 0xb0, 0x36, 375 0xf6, 0xe0, 0x58, 0xb5, 0x77, 0xd1, 0xee, 0x9a, 0x06, 0x4e, 0xf9, 0x26, 0xfe, 0x84, 0x3f, 0x42, 376 0x5e, 0xaf, 0x5b, 0xc7, 0x48, 0x11, 0xbd, 0x44, 0xfb, 0x66, 0xdf, 0xbc, 0x99, 0x7d, 0x33, 0x31, 377 0x3c, 0xc5, 0x95, 0x44, 0x2a, 0x72, 0x46, 0xe3, 0x4a, 0x20, 0xf7, 0x37, 0xe1, 0xe4, 0x3b, 0x67, 378 0x92, 0xd9, 0x47, 0x9b, 0xd1, 0xd3, 0x4e, 0xd2, 0x82, 0x08, 0xf4, 0x37, 0x61, 0x93, 0x74, 0xfa, 379 0xec, 0x26, 0x8a, 0x2b, 0xc9, 0x89, 0xdf, 0xc3, 0x0d, 0xcd, 0x7d, 0x05, 0xd6, 0x67, 0x81, 0xfc, 380 0x3d, 0x0a, 0x41, 0x32, 0xb4, 0x6d, 0xd8, 0xa3, 0xa4, 0xc4, 0xb1, 0xe1, 0x18, 0xde, 0x41, 0xa4, 381 0xce, 0x75, 0x8c, 0x13, 0x7a, 0x39, 0xde, 0x69, 0x62, 0xf5, 0xd9, 0x9d, 0x83, 0x35, 0x67, 0x55, 382 0xaa, 0xd3, 0x9e, 0x0f, 0x87, 0xe9, 0xf1, 0x7a, 0xbd, 0x5e, 0xef, 0x04, 0x2f, 0xc1, 0xfc, 0xc1, 383 0x8a, 0xaa, 0x44, 0xfb, 0xe1, 0xa4, 0xd7, 0xd7, 0x94, 0x08, 0xd4, 0x09, 0xe3, 0xa1, 0x63, 0x78, 384 0x87, 0x91, 0xa6, 0xba, 0x97, 0x30, 0x9a, 0xb3, 0x2c, 0xa7, 0xfa, 0x36, 0xf8, 0x0a, 0xa3, 0xfa, 385 0xa1, 0x71, 0xa9, 0xbb, 0xda, 0x2a, 0x75, 0xec, 0x18, 0x9e, 0x15, 0x74, 0x29, 0xca, 0xba, 0xce, 386 0xab, 0x22, 0xab, 0xba, 0x01, 0xee, 0x19, 0x98, 0x6f, 0x51, 0x92, 0xbc, 0xb0, 0xef, 0xc3, 0x20, 387 0x61, 0x05, 0xe3, 0xfa, 0xb5, 0x0d, 0x70, 0x7f, 0xc1, 0xe8, 0x0d, 0xa5, 0xac, 0xa2, 0x09, 0x96, 388 0x48, 0x65, 0xcd, 0xba, 0x62, 0x3c, 0x15, 0x2d, 0x4b, 0x81, 0xe0, 0x13, 0x0c, 0x0b, 0x56, 0xa5, 389 0xb5, 0x97, 0xf6, 0x3f, 0xb5, 0x3b, 0xd6, 0x8c, 0x53, 0xd5, 0xde, 0xa3, 0x3e, 0xa5, 0x5b, 0x22, 390 0xda, 0xaf, 0xa5, 0x66, 0x2b, 0xe9, 0xfe, 0x36, 0xe0, 0xe8, 0x43, 0x91, 0x5e, 0xc8, 0x9f, 0x05, 391 0x7e, 0x24, 0x3c, 0xc1, 0xa2, 0x33, 0x91, 0x9d, 0xeb, 0x89, 0x9c, 0x80, 0xb9, 0xc4, 0x3c, 0x5b, 392 0x4a, 0x35, 0x93, 0x41, 0xa4, 0x51, 0x20, 0xe1, 0x81, 0xb6, 0x2c, 0x16, 0x28, 0xe3, 0xeb, 0x92, 393 0xf6, 0x93, 0xbe, 0x81, 0x6d, 0x91, 0xb6, 0xcb, 0x3f, 0x77, 0x54, 0x9b, 0x67, 0xfd, 0x36, 0x37, 394 0x9b, 0x89, 0xee, 0x69, 0xf9, 0x0b, 0x94, 0xb3, 0x96, 0x18, 0xde, 0x6a, 0x5a, 0x83, 0xdb, 0x4d, 395 0x2b, 0x8c, 0xe1, 0x50, 0xad, 0xeb, 0xff, 0xa9, 0x1f, 0x28, 0xf5, 0xc7, 0x93, 0xfe, 0xae, 0xcf, 396 0xea, 0xdf, 0x56, 0x7f, 0x84, 0x1d, 0x14, 0xbe, 0x80, 0xc1, 0x55, 0x9e, 0xca, 0xe5, 0x76, 0x61, 397 0x53, 0xf9, 0xdc, 0x30, 0x43, 0x1f, 0xf6, 0x08, 0x47, 0xb2, 0x3d, 0x63, 0xdf, 0x31, 0xbc, 0xdd, 398 0x48, 0x11, 0xc3, 0x77, 0x60, 0xa6, 0xcd, 0xca, 0x6d, 0x4d, 0xb9, 0xeb, 0xec, 0x7a, 0x56, 0x70, 399 0xd2, 0xf7, 0xa6, 0xd9, 0xd6, 0x48, 0x4b, 0x4c, 0xa7, 0x5f, 0x5e, 0x67, 0xb9, 0x5c, 0x56, 0x8b, 400 0x49, 0xc2, 0x4a, 0x3f, 0x63, 0x19, 0xf3, 0xd5, 0x5f, 0x79, 0x51, 0x7d, 0x6b, 0x0e, 0xc9, 0x79, 401 0x86, 0xf4, 0x5c, 0x5d, 0x48, 0x14, 0x32, 0x25, 0x92, 0xf4, 0xbe, 0x2b, 0x7f, 0x03, 0x00, 0x00, 402 0xff, 0xff, 0xc5, 0x88, 0x70, 0x88, 0x77, 0x04, 0x00, 0x00, 403 }