github.com/jhump/protocompile@v0.0.0-20221021153901-4f6f732835e8/internal/testprotos/desc_test_comments.pb.go (about) 1 // This is the first detached comment for the syntax. 2 3 // 4 // This is a second detached comment. 5 6 // This is a third. 7 8 // Syntax comment... 9 10 // Code generated by protoc-gen-go. DO NOT EDIT. 11 // versions: 12 // protoc-gen-go v1.27.0 13 // protoc v3.14.0 14 // source: desc_test_comments.proto 15 16 // And now the package declaration 17 18 package testprotos 19 20 import ( 21 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 22 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 23 emptypb "google.golang.org/protobuf/types/known/emptypb" 24 reflect "reflect" 25 sync "sync" 26 ) 27 28 const ( 29 // Verify that this generated code is sufficiently up-to-date. 30 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 31 // Verify that runtime/protoimpl is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 33 ) 34 35 // Symbols defined in public import of google/protobuf/empty.proto. 36 37 type Empty = emptypb.Empty 38 39 type Request_MarioCharacters int32 40 41 const ( 42 Request_MARIO Request_MarioCharacters = 1 43 Request_LUIGI Request_MarioCharacters = 2 44 Request_PEACH Request_MarioCharacters = 3 45 Request_BOWSER Request_MarioCharacters = 4 46 Request_WARIO Request_MarioCharacters = 5 47 Request_WALUIGI Request_MarioCharacters = 6 48 Request_SHY_GUY Request_MarioCharacters = 7 49 Request_HEY_HO Request_MarioCharacters = 7 50 Request_MAGIKOOPA Request_MarioCharacters = 8 51 Request_KAMEK Request_MarioCharacters = 8 52 Request_SNIFIT Request_MarioCharacters = -101 53 ) 54 55 // Enum value maps for Request_MarioCharacters. 56 var ( 57 Request_MarioCharacters_name = map[int32]string{ 58 1: "MARIO", 59 2: "LUIGI", 60 3: "PEACH", 61 4: "BOWSER", 62 5: "WARIO", 63 6: "WALUIGI", 64 7: "SHY_GUY", 65 // Duplicate value: 7: "HEY_HO", 66 8: "MAGIKOOPA", 67 // Duplicate value: 8: "KAMEK", 68 -101: "SNIFIT", 69 } 70 Request_MarioCharacters_value = map[string]int32{ 71 "MARIO": 1, 72 "LUIGI": 2, 73 "PEACH": 3, 74 "BOWSER": 4, 75 "WARIO": 5, 76 "WALUIGI": 6, 77 "SHY_GUY": 7, 78 "HEY_HO": 7, 79 "MAGIKOOPA": 8, 80 "KAMEK": 8, 81 "SNIFIT": -101, 82 } 83 ) 84 85 func (x Request_MarioCharacters) Enum() *Request_MarioCharacters { 86 p := new(Request_MarioCharacters) 87 *p = x 88 return p 89 } 90 91 func (x Request_MarioCharacters) String() string { 92 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 93 } 94 95 func (Request_MarioCharacters) Descriptor() protoreflect.EnumDescriptor { 96 return file_desc_test_comments_proto_enumTypes[0].Descriptor() 97 } 98 99 func (Request_MarioCharacters) Type() protoreflect.EnumType { 100 return &file_desc_test_comments_proto_enumTypes[0] 101 } 102 103 func (x Request_MarioCharacters) Number() protoreflect.EnumNumber { 104 return protoreflect.EnumNumber(x) 105 } 106 107 // Deprecated: Do not use. 108 func (x *Request_MarioCharacters) UnmarshalJSON(b []byte) error { 109 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 110 if err != nil { 111 return err 112 } 113 *x = Request_MarioCharacters(num) 114 return nil 115 } 116 117 // Deprecated: Use Request_MarioCharacters.Descriptor instead. 118 func (Request_MarioCharacters) EnumDescriptor() ([]byte, []int) { 119 return file_desc_test_comments_proto_rawDescGZIP(), []int{0, 0} 120 } 121 122 // We need a request for our RPC service below. 123 // 124 // Deprecated: Do not use. 125 type Request struct { 126 state protoimpl.MessageState 127 sizeCache protoimpl.SizeCache 128 unknownFields protoimpl.UnknownFields 129 extensionFields protoimpl.ExtensionFields 130 131 // A field comment 132 Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,json=|foo|" json:"ids,omitempty"` // field trailer #1... 133 // label comment 134 Name *string `protobuf:"bytes,2,opt,name=name,def=fubar" json:"name,omitempty"` 135 Extras *Request_Extras `protobuf:"group,3,opt,name=Extras,json=extras" json:"extras,omitempty"` 136 // can be this or that 137 // 138 // Types that are assignable to Abc: 139 // *Request_This 140 // *Request_That 141 Abc isRequest_Abc `protobuf_oneof:"abc"` 142 // can be these or those 143 // 144 // Types that are assignable to Xyz: 145 // *Request_These 146 // *Request_Those 147 Xyz isRequest_Xyz `protobuf_oneof:"xyz"` 148 // map field 149 Things map[string]string `protobuf:"bytes,8,rep,name=things" json:"things,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 150 } 151 152 // Default values for Request fields. 153 const ( 154 Default_Request_Name = string("fubar") 155 ) 156 157 func (x *Request) Reset() { 158 *x = Request{} 159 if protoimpl.UnsafeEnabled { 160 mi := &file_desc_test_comments_proto_msgTypes[0] 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 162 ms.StoreMessageInfo(mi) 163 } 164 } 165 166 func (x *Request) String() string { 167 return protoimpl.X.MessageStringOf(x) 168 } 169 170 func (*Request) ProtoMessage() {} 171 172 func (x *Request) ProtoReflect() protoreflect.Message { 173 mi := &file_desc_test_comments_proto_msgTypes[0] 174 if protoimpl.UnsafeEnabled && x != nil { 175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 176 if ms.LoadMessageInfo() == nil { 177 ms.StoreMessageInfo(mi) 178 } 179 return ms 180 } 181 return mi.MessageOf(x) 182 } 183 184 // Deprecated: Use Request.ProtoReflect.Descriptor instead. 185 func (*Request) Descriptor() ([]byte, []int) { 186 return file_desc_test_comments_proto_rawDescGZIP(), []int{0} 187 } 188 189 func (x *Request) GetIds() []int32 { 190 if x != nil { 191 return x.Ids 192 } 193 return nil 194 } 195 196 func (x *Request) GetName() string { 197 if x != nil && x.Name != nil { 198 return *x.Name 199 } 200 return Default_Request_Name 201 } 202 203 func (x *Request) GetExtras() *Request_Extras { 204 if x != nil { 205 return x.Extras 206 } 207 return nil 208 } 209 210 func (m *Request) GetAbc() isRequest_Abc { 211 if m != nil { 212 return m.Abc 213 } 214 return nil 215 } 216 217 func (x *Request) GetThis() string { 218 if x, ok := x.GetAbc().(*Request_This); ok { 219 return x.This 220 } 221 return "" 222 } 223 224 func (x *Request) GetThat() int32 { 225 if x, ok := x.GetAbc().(*Request_That); ok { 226 return x.That 227 } 228 return 0 229 } 230 231 func (m *Request) GetXyz() isRequest_Xyz { 232 if m != nil { 233 return m.Xyz 234 } 235 return nil 236 } 237 238 func (x *Request) GetThese() string { 239 if x, ok := x.GetXyz().(*Request_These); ok { 240 return x.These 241 } 242 return "" 243 } 244 245 func (x *Request) GetThose() int32 { 246 if x, ok := x.GetXyz().(*Request_Those); ok { 247 return x.Those 248 } 249 return 0 250 } 251 252 func (x *Request) GetThings() map[string]string { 253 if x != nil { 254 return x.Things 255 } 256 return nil 257 } 258 259 type isRequest_Abc interface { 260 isRequest_Abc() 261 } 262 263 type Request_This struct { 264 This string `protobuf:"bytes,4,opt,name=this,oneof"` 265 } 266 267 type Request_That struct { 268 That int32 `protobuf:"varint,5,opt,name=that,oneof"` 269 } 270 271 func (*Request_This) isRequest_Abc() {} 272 273 func (*Request_That) isRequest_Abc() {} 274 275 type isRequest_Xyz interface { 276 isRequest_Xyz() 277 } 278 279 type Request_These struct { 280 These string `protobuf:"bytes,6,opt,name=these,oneof"` 281 } 282 283 type Request_Those struct { 284 Those int32 `protobuf:"varint,7,opt,name=those,oneof"` 285 } 286 287 func (*Request_These) isRequest_Xyz() {} 288 289 func (*Request_Those) isRequest_Xyz() {} 290 291 type AnEmptyMessage struct { 292 state protoimpl.MessageState 293 sizeCache protoimpl.SizeCache 294 unknownFields protoimpl.UnknownFields 295 } 296 297 func (x *AnEmptyMessage) Reset() { 298 *x = AnEmptyMessage{} 299 if protoimpl.UnsafeEnabled { 300 mi := &file_desc_test_comments_proto_msgTypes[1] 301 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 302 ms.StoreMessageInfo(mi) 303 } 304 } 305 306 func (x *AnEmptyMessage) String() string { 307 return protoimpl.X.MessageStringOf(x) 308 } 309 310 func (*AnEmptyMessage) ProtoMessage() {} 311 312 func (x *AnEmptyMessage) ProtoReflect() protoreflect.Message { 313 mi := &file_desc_test_comments_proto_msgTypes[1] 314 if protoimpl.UnsafeEnabled && x != nil { 315 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 316 if ms.LoadMessageInfo() == nil { 317 ms.StoreMessageInfo(mi) 318 } 319 return ms 320 } 321 return mi.MessageOf(x) 322 } 323 324 // Deprecated: Use AnEmptyMessage.ProtoReflect.Descriptor instead. 325 func (*AnEmptyMessage) Descriptor() ([]byte, []int) { 326 return file_desc_test_comments_proto_rawDescGZIP(), []int{1} 327 } 328 329 // Group comment 330 type Request_Extras struct { 331 state protoimpl.MessageState 332 sizeCache protoimpl.SizeCache 333 unknownFields protoimpl.UnknownFields 334 335 Dbl *float64 `protobuf:"fixed64,1,opt,name=dbl" json:"dbl,omitempty"` 336 Flt *float32 `protobuf:"fixed32,2,opt,name=flt" json:"flt,omitempty"` 337 // Leading comment... 338 Str *string `protobuf:"bytes,3,opt,name=str" json:"str,omitempty"` // Trailing comment... 339 } 340 341 func (x *Request_Extras) Reset() { 342 *x = Request_Extras{} 343 if protoimpl.UnsafeEnabled { 344 mi := &file_desc_test_comments_proto_msgTypes[2] 345 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 346 ms.StoreMessageInfo(mi) 347 } 348 } 349 350 func (x *Request_Extras) String() string { 351 return protoimpl.X.MessageStringOf(x) 352 } 353 354 func (*Request_Extras) ProtoMessage() {} 355 356 func (x *Request_Extras) ProtoReflect() protoreflect.Message { 357 mi := &file_desc_test_comments_proto_msgTypes[2] 358 if protoimpl.UnsafeEnabled && x != nil { 359 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 360 if ms.LoadMessageInfo() == nil { 361 ms.StoreMessageInfo(mi) 362 } 363 return ms 364 } 365 return mi.MessageOf(x) 366 } 367 368 // Deprecated: Use Request_Extras.ProtoReflect.Descriptor instead. 369 func (*Request_Extras) Descriptor() ([]byte, []int) { 370 return file_desc_test_comments_proto_rawDescGZIP(), []int{0, 0} 371 } 372 373 func (x *Request_Extras) GetDbl() float64 { 374 if x != nil && x.Dbl != nil { 375 return *x.Dbl 376 } 377 return 0 378 } 379 380 func (x *Request_Extras) GetFlt() float32 { 381 if x != nil && x.Flt != nil { 382 return *x.Flt 383 } 384 return 0 385 } 386 387 func (x *Request_Extras) GetStr() string { 388 if x != nil && x.Str != nil { 389 return *x.Str 390 } 391 return "" 392 } 393 394 var file_desc_test_comments_proto_extTypes = []protoimpl.ExtensionInfo{ 395 { 396 ExtendedType: (*Request)(nil), 397 ExtensionType: (*uint64)(nil), 398 Field: 123, 399 Name: "foo.bar.guid1", 400 Tag: "varint,123,opt,name=guid1", 401 Filename: "desc_test_comments.proto", 402 }, 403 { 404 ExtendedType: (*Request)(nil), 405 ExtensionType: (*uint64)(nil), 406 Field: 124, 407 Name: "foo.bar.guid2", 408 Tag: "varint,124,opt,name=guid2", 409 Filename: "desc_test_comments.proto", 410 }, 411 } 412 413 // Extension fields to Request. 414 var ( 415 // comment for guid1 416 // 417 // optional uint64 guid1 = 123; 418 E_Guid1 = &file_desc_test_comments_proto_extTypes[0] 419 // ... and a comment for guid2 420 // 421 // optional uint64 guid2 = 124; 422 E_Guid2 = &file_desc_test_comments_proto_extTypes[1] 423 ) 424 425 var File_desc_test_comments_proto protoreflect.FileDescriptor 426 427 var file_desc_test_comments_proto_rawDesc = []byte{ 428 0x0a, 0x18, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 429 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x66, 0x6f, 0x6f, 0x2e, 430 0x62, 0x61, 0x72, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 431 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 432 0x1a, 0x17, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 433 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x05, 0x0a, 0x07, 0x52, 0x65, 434 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 435 0x28, 0x05, 0x42, 0x10, 0x10, 0x01, 0xaa, 0xf7, 0x04, 0x03, 0x61, 0x62, 0x63, 0xb2, 0xf7, 0x04, 436 0x03, 0x78, 0x79, 0x7a, 0x52, 0x05, 0x7c, 0x66, 0x6f, 0x6f, 0x7c, 0x12, 0x19, 0x0a, 0x04, 0x6e, 437 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x05, 0x66, 0x75, 0x62, 0x61, 0x72, 438 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 439 0x18, 0x03, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x17, 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 440 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x73, 0x52, 441 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x68, 0x69, 0x73, 0x18, 442 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x68, 0x69, 0x73, 0x12, 0x14, 0x0a, 443 0x04, 0x74, 0x68, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x04, 0x74, 444 0x68, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x68, 0x65, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 445 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x74, 0x68, 0x65, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x05, 0x74, 446 0x68, 0x6f, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x05, 0x74, 0x68, 447 0x6f, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x08, 0x20, 448 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 449 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x68, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 450 0x79, 0x52, 0x06, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x46, 0x0a, 0x06, 0x45, 0x78, 0x74, 451 0x72, 0x61, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x62, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 452 0x52, 0x03, 0x64, 0x62, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 453 0x28, 0x02, 0x52, 0x03, 0x66, 0x6c, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x03, 454 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x3a, 0x06, 0x10, 0x00, 0xa8, 0xf7, 0x04, 455 0x00, 0x1a, 0x39, 0x0a, 0x0b, 0x54, 0x68, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 456 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 457 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 458 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd6, 0x01, 0x0a, 459 0x0f, 0x4d, 0x61, 0x72, 0x69, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x73, 460 0x12, 0x15, 0x0a, 0x05, 0x4d, 0x41, 0x52, 0x49, 0x4f, 0x10, 0x01, 0x1a, 0x0a, 0xb0, 0xf7, 0x04, 461 0xf3, 0x04, 0xa8, 0xf7, 0x04, 0x96, 0x02, 0x12, 0x1b, 0x0a, 0x05, 0x4c, 0x55, 0x49, 0x47, 0x49, 462 0x10, 0x02, 0x1a, 0x10, 0xc9, 0xf7, 0x04, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 463 0xf7, 0x04, 0xc8, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x45, 0x41, 0x43, 0x48, 0x10, 0x03, 0x12, 464 0x0a, 0x0a, 0x06, 0x42, 0x4f, 0x57, 0x53, 0x45, 0x52, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x57, 465 0x41, 0x52, 0x49, 0x4f, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x4c, 0x55, 0x49, 0x47, 466 0x49, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x07, 0x53, 0x48, 0x59, 0x5f, 0x47, 0x55, 0x59, 0x10, 0x07, 467 0x1a, 0x0b, 0xb9, 0xf7, 0x04, 0x75, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x0a, 0x0a, 468 0x06, 0x48, 0x45, 0x59, 0x5f, 0x48, 0x4f, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x41, 0x47, 469 0x49, 0x4b, 0x4f, 0x4f, 0x50, 0x41, 0x10, 0x08, 0x12, 0x09, 0x0a, 0x05, 0x4b, 0x41, 0x4d, 0x45, 470 0x4b, 0x10, 0x08, 0x12, 0x13, 0x0a, 0x06, 0x53, 0x4e, 0x49, 0x46, 0x49, 0x54, 0x10, 0x9b, 0xff, 471 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x1a, 0x0b, 0x10, 0x01, 0xb0, 0xf7, 0x04, 0x81, 472 0x05, 0xa8, 0xf7, 0x04, 0x7b, 0x2a, 0x05, 0x08, 0x64, 0x10, 0xc9, 0x01, 0x2a, 0x1e, 0x08, 0xc9, 473 0x01, 0x10, 0xfb, 0x01, 0x1a, 0x16, 0xb2, 0xf7, 0x04, 0x08, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 474 0x06, 0x07, 0xaa, 0xf7, 0x04, 0x06, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x21, 0x3a, 0x06, 0x18, 0x01, 475 0xa8, 0xf7, 0x04, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x61, 0x62, 0x63, 0x42, 0x05, 0x0a, 0x03, 0x78, 476 0x79, 0x7a, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x15, 0x4a, 0x04, 0x08, 0x1e, 0x10, 0x33, 0x52, 0x03, 477 0x66, 0x6f, 0x6f, 0x52, 0x03, 0x62, 0x61, 0x72, 0x52, 0x03, 0x62, 0x61, 0x7a, 0x22, 0x10, 0x0a, 478 0x0e, 0x41, 0x6e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 479 0xa7, 0x01, 0x0a, 0x0a, 0x52, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x34, 480 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x70, 0x63, 0x12, 0x10, 481 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 482 0x1a, 0x10, 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 483 0x73, 0x74, 0x28, 0x01, 0x12, 0x4b, 0x0a, 0x08, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x70, 0x63, 484 0x12, 0x10, 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 485 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 486 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x15, 0x88, 0x02, 0x01, 0xad, 487 0xf7, 0x04, 0xa4, 0x70, 0x45, 0x41, 0xb1, 0xf7, 0x04, 0x77, 0xbe, 0x9f, 0x1a, 0x2f, 0xdd, 0x5e, 488 0x40, 0x1a, 0x16, 0x88, 0x02, 0x00, 0xaa, 0xf7, 0x04, 0x02, 0x08, 0x64, 0xaa, 0xf7, 0x04, 0x05, 489 0x12, 0x03, 0x62, 0x6f, 0x62, 0xb0, 0xf7, 0x04, 0x01, 0x3a, 0x26, 0x0a, 0x05, 0x67, 0x75, 0x69, 490 0x64, 0x31, 0x12, 0x10, 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 0x71, 491 0x75, 0x65, 0x73, 0x74, 0x18, 0x7b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x67, 0x75, 0x69, 0x64, 492 0x31, 0x3a, 0x26, 0x0a, 0x05, 0x67, 0x75, 0x69, 0x64, 0x32, 0x12, 0x10, 0x2e, 0x66, 0x6f, 0x6f, 493 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x7c, 0x20, 0x01, 494 0x28, 0x04, 0x52, 0x05, 0x67, 0x75, 0x69, 0x64, 0x32, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 495 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x68, 0x75, 0x6d, 0x70, 0x2f, 0x70, 0x72, 496 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 497 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x50, 0x00, 498 } 499 500 var ( 501 file_desc_test_comments_proto_rawDescOnce sync.Once 502 file_desc_test_comments_proto_rawDescData = file_desc_test_comments_proto_rawDesc 503 ) 504 505 func file_desc_test_comments_proto_rawDescGZIP() []byte { 506 file_desc_test_comments_proto_rawDescOnce.Do(func() { 507 file_desc_test_comments_proto_rawDescData = protoimpl.X.CompressGZIP(file_desc_test_comments_proto_rawDescData) 508 }) 509 return file_desc_test_comments_proto_rawDescData 510 } 511 512 var file_desc_test_comments_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 513 var file_desc_test_comments_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 514 var file_desc_test_comments_proto_goTypes = []interface{}{ 515 (Request_MarioCharacters)(0), // 0: foo.bar.Request.MarioCharacters 516 (*Request)(nil), // 1: foo.bar.Request 517 (*AnEmptyMessage)(nil), // 2: foo.bar.AnEmptyMessage 518 (*Request_Extras)(nil), // 3: foo.bar.Request.Extras 519 nil, // 4: foo.bar.Request.ThingsEntry 520 (*emptypb.Empty)(nil), // 5: google.protobuf.Empty 521 } 522 var file_desc_test_comments_proto_depIdxs = []int32{ 523 3, // 0: foo.bar.Request.extras:type_name -> foo.bar.Request.Extras 524 4, // 1: foo.bar.Request.things:type_name -> foo.bar.Request.ThingsEntry 525 1, // 2: foo.bar.guid1:extendee -> foo.bar.Request 526 1, // 3: foo.bar.guid2:extendee -> foo.bar.Request 527 1, // 4: foo.bar.RpcService.StreamingRpc:input_type -> foo.bar.Request 528 1, // 5: foo.bar.RpcService.UnaryRpc:input_type -> foo.bar.Request 529 1, // 6: foo.bar.RpcService.StreamingRpc:output_type -> foo.bar.Request 530 5, // 7: foo.bar.RpcService.UnaryRpc:output_type -> google.protobuf.Empty 531 6, // [6:8] is the sub-list for method output_type 532 4, // [4:6] is the sub-list for method input_type 533 4, // [4:4] is the sub-list for extension type_name 534 2, // [2:4] is the sub-list for extension extendee 535 0, // [0:2] is the sub-list for field type_name 536 } 537 538 func init() { file_desc_test_comments_proto_init() } 539 func file_desc_test_comments_proto_init() { 540 if File_desc_test_comments_proto != nil { 541 return 542 } 543 file_desc_test_options_proto_init() 544 if !protoimpl.UnsafeEnabled { 545 file_desc_test_comments_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 546 switch v := v.(*Request); i { 547 case 0: 548 return &v.state 549 case 1: 550 return &v.sizeCache 551 case 2: 552 return &v.unknownFields 553 case 3: 554 return &v.extensionFields 555 default: 556 return nil 557 } 558 } 559 file_desc_test_comments_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 560 switch v := v.(*AnEmptyMessage); i { 561 case 0: 562 return &v.state 563 case 1: 564 return &v.sizeCache 565 case 2: 566 return &v.unknownFields 567 default: 568 return nil 569 } 570 } 571 file_desc_test_comments_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 572 switch v := v.(*Request_Extras); i { 573 case 0: 574 return &v.state 575 case 1: 576 return &v.sizeCache 577 case 2: 578 return &v.unknownFields 579 default: 580 return nil 581 } 582 } 583 } 584 file_desc_test_comments_proto_msgTypes[0].OneofWrappers = []interface{}{ 585 (*Request_This)(nil), 586 (*Request_That)(nil), 587 (*Request_These)(nil), 588 (*Request_Those)(nil), 589 } 590 type x struct{} 591 out := protoimpl.TypeBuilder{ 592 File: protoimpl.DescBuilder{ 593 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 594 RawDescriptor: file_desc_test_comments_proto_rawDesc, 595 NumEnums: 1, 596 NumMessages: 4, 597 NumExtensions: 2, 598 NumServices: 1, 599 }, 600 GoTypes: file_desc_test_comments_proto_goTypes, 601 DependencyIndexes: file_desc_test_comments_proto_depIdxs, 602 EnumInfos: file_desc_test_comments_proto_enumTypes, 603 MessageInfos: file_desc_test_comments_proto_msgTypes, 604 ExtensionInfos: file_desc_test_comments_proto_extTypes, 605 }.Build() 606 File_desc_test_comments_proto = out.File 607 file_desc_test_comments_proto_rawDesc = nil 608 file_desc_test_comments_proto_goTypes = nil 609 file_desc_test_comments_proto_depIdxs = nil 610 }