OLD | NEW |
1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
2 // source: github.com/luci/luci-go/common/proto/google/descriptor/util_test.prot
o | 2 // source: github.com/luci/luci-go/common/proto/google/descutil/util_test.proto |
3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
4 | 4 |
5 package descriptor | 5 /* |
| 6 Package descutil is a generated protocol buffer package. |
| 7 |
| 8 It is generated from these files: |
| 9 » github.com/luci/luci-go/common/proto/google/descutil/util_test.proto |
| 10 |
| 11 It has these top-level messages: |
| 12 » M1 |
| 13 » M2 |
| 14 » M3 |
| 15 » NestedMessageParent |
| 16 */ |
| 17 package descutil |
6 | 18 |
7 import prpc "github.com/luci/luci-go/grpc/prpc" | 19 import prpc "github.com/luci/luci-go/grpc/prpc" |
8 | 20 |
9 import proto "github.com/golang/protobuf/proto" | 21 import proto "github.com/golang/protobuf/proto" |
10 import fmt "fmt" | 22 import fmt "fmt" |
11 import math "math" | 23 import math "math" |
12 | 24 |
13 import ( | 25 import ( |
14 context "golang.org/x/net/context" | 26 context "golang.org/x/net/context" |
15 grpc "google.golang.org/grpc" | 27 grpc "google.golang.org/grpc" |
16 ) | 28 ) |
17 | 29 |
18 // Reference imports to suppress errors if they are not otherwise used. | 30 // Reference imports to suppress errors if they are not otherwise used. |
19 var _ = proto.Marshal | 31 var _ = proto.Marshal |
20 var _ = fmt.Errorf | 32 var _ = fmt.Errorf |
21 var _ = math.Inf | 33 var _ = math.Inf |
22 | 34 |
| 35 // This is a compile-time assertion to ensure that this generated file |
| 36 // is compatible with the proto package it is being compiled against. |
| 37 // A compilation error at this line likely means your copy of the |
| 38 // proto package needs to be updated. |
| 39 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| 40 |
23 // Enum comment. | 41 // Enum comment. |
24 // next line. | 42 // next line. |
25 type E1 int32 | 43 type E1 int32 |
26 | 44 |
27 const ( | 45 const ( |
28 // V0 | 46 // V0 |
29 // next line. | 47 // next line. |
30 E1_V0 E1 = 0 | 48 E1_V0 E1 = 0 |
31 // V1 | 49 // V1 |
32 // next line. | 50 // next line. |
33 E1_V1 E1 = 1 | 51 E1_V1 E1 = 1 |
34 ) | 52 ) |
35 | 53 |
36 var E1_name = map[int32]string{ | 54 var E1_name = map[int32]string{ |
37 0: "V0", | 55 0: "V0", |
38 1: "V1", | 56 1: "V1", |
39 } | 57 } |
40 var E1_value = map[string]int32{ | 58 var E1_value = map[string]int32{ |
41 "V0": 0, | 59 "V0": 0, |
42 "V1": 1, | 60 "V1": 1, |
43 } | 61 } |
44 | 62 |
45 func (x E1) String() string { | 63 func (x E1) String() string { |
46 return proto.EnumName(E1_name, int32(x)) | 64 return proto.EnumName(E1_name, int32(x)) |
47 } | 65 } |
48 func (E1) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } | 66 func (E1) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
49 | 67 |
50 type NestedMessageParent_NestedEnum int32 | 68 type NestedMessageParent_NestedEnum int32 |
51 | 69 |
52 const ( | 70 const ( |
53 NestedMessageParent_V0 NestedMessageParent_NestedEnum = 0 | 71 NestedMessageParent_V0 NestedMessageParent_NestedEnum = 0 |
54 NestedMessageParent_V1 NestedMessageParent_NestedEnum = 1 | 72 NestedMessageParent_V1 NestedMessageParent_NestedEnum = 1 |
55 ) | 73 ) |
56 | 74 |
57 var NestedMessageParent_NestedEnum_name = map[int32]string{ | 75 var NestedMessageParent_NestedEnum_name = map[int32]string{ |
58 0: "V0", | 76 0: "V0", |
59 1: "V1", | 77 1: "V1", |
60 } | 78 } |
61 var NestedMessageParent_NestedEnum_value = map[string]int32{ | 79 var NestedMessageParent_NestedEnum_value = map[string]int32{ |
62 "V0": 0, | 80 "V0": 0, |
63 "V1": 1, | 81 "V1": 1, |
64 } | 82 } |
65 | 83 |
66 func (x NestedMessageParent_NestedEnum) String() string { | 84 func (x NestedMessageParent_NestedEnum) String() string { |
67 return proto.EnumName(NestedMessageParent_NestedEnum_name, int32(x)) | 85 return proto.EnumName(NestedMessageParent_NestedEnum_name, int32(x)) |
68 } | 86 } |
69 func (NestedMessageParent_NestedEnum) EnumDescriptor() ([]byte, []int) { | 87 func (NestedMessageParent_NestedEnum) EnumDescriptor() ([]byte, []int) { |
70 » return fileDescriptor1, []int{3, 0} | 88 » return fileDescriptor0, []int{3, 0} |
71 } | 89 } |
72 | 90 |
73 // M1 | 91 // M1 |
74 // next line. | 92 // next line. |
75 type M1 struct { | 93 type M1 struct { |
76 // f1 | 94 // f1 |
77 // next line. | 95 // next line. |
78 F1 string `protobuf:"bytes,1,opt,name=f1" json:"f1,omitempty"` | 96 F1 string `protobuf:"bytes,1,opt,name=f1" json:"f1,omitempty"` |
79 } | 97 } |
80 | 98 |
81 func (m *M1) Reset() { *m = M1{} } | 99 func (m *M1) Reset() { *m = M1{} } |
82 func (m *M1) String() string { return proto.CompactTextString(m) } | 100 func (m *M1) String() string { return proto.CompactTextString(m) } |
83 func (*M1) ProtoMessage() {} | 101 func (*M1) ProtoMessage() {} |
84 func (*M1) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } | 102 func (*M1) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
85 | 103 |
86 // M2 | 104 // M2 |
87 // next line. | 105 // next line. |
88 type M2 struct { | 106 type M2 struct { |
89 // f1 | 107 // f1 |
90 // next line. | 108 // next line. |
91 F1 []*M1 `protobuf:"bytes,1,rep,name=f1" json:"f1,omitempty"` | 109 F1 []*M1 `protobuf:"bytes,1,rep,name=f1" json:"f1,omitempty"` |
92 // f2 | 110 // f2 |
93 // next line. | 111 // next line. |
94 » F2 E1 `protobuf:"varint,2,opt,name=f2,enum=pkg.E1" json:"f2,omitempty"` | 112 » F2 E1 `protobuf:"varint,2,opt,name=f2,enum=descutil.E1" json:"f2,omitemp
ty"` |
95 } | 113 } |
96 | 114 |
97 func (m *M2) Reset() { *m = M2{} } | 115 func (m *M2) Reset() { *m = M2{} } |
98 func (m *M2) String() string { return proto.CompactTextString(m) } | 116 func (m *M2) String() string { return proto.CompactTextString(m) } |
99 func (*M2) ProtoMessage() {} | 117 func (*M2) ProtoMessage() {} |
100 func (*M2) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} } | 118 func (*M2) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } |
101 | 119 |
102 func (m *M2) GetF1() []*M1 { | 120 func (m *M2) GetF1() []*M1 { |
103 if m != nil { | 121 if m != nil { |
104 return m.F1 | 122 return m.F1 |
105 } | 123 } |
106 return nil | 124 return nil |
107 } | 125 } |
108 | 126 |
109 // M3 | 127 // M3 |
110 type M3 struct { | 128 type M3 struct { |
(...skipping 11 matching lines...) Expand all Loading... |
122 O2 isM3_O2 `protobuf_oneof:"O2"` | 140 O2 isM3_O2 `protobuf_oneof:"O2"` |
123 // f5 | 141 // f5 |
124 F5 string `protobuf:"bytes,5,opt,name=f5" json:"f5,omitempty"` | 142 F5 string `protobuf:"bytes,5,opt,name=f5" json:"f5,omitempty"` |
125 // f6 | 143 // f6 |
126 F6 int32 `protobuf:"varint,6,opt,name=f6" json:"f6,omitempty"` | 144 F6 int32 `protobuf:"varint,6,opt,name=f6" json:"f6,omitempty"` |
127 } | 145 } |
128 | 146 |
129 func (m *M3) Reset() { *m = M3{} } | 147 func (m *M3) Reset() { *m = M3{} } |
130 func (m *M3) String() string { return proto.CompactTextString(m) } | 148 func (m *M3) String() string { return proto.CompactTextString(m) } |
131 func (*M3) ProtoMessage() {} | 149 func (*M3) ProtoMessage() {} |
132 func (*M3) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} } | 150 func (*M3) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } |
133 | 151 |
134 type isM3_O1 interface { | 152 type isM3_O1 interface { |
135 isM3_O1() | 153 isM3_O1() |
136 } | 154 } |
137 type isM3_O2 interface { | 155 type isM3_O2 interface { |
138 isM3_O2() | 156 isM3_O2() |
139 } | 157 } |
140 | 158 |
141 type M3_F1 struct { | 159 type M3_F1 struct { |
142 F1 int32 `protobuf:"varint,1,opt,name=f1,oneof"` | 160 F1 int32 `protobuf:"varint,1,opt,name=f1,oneof"` |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 } | 318 } |
301 return n | 319 return n |
302 } | 320 } |
303 | 321 |
304 type NestedMessageParent struct { | 322 type NestedMessageParent struct { |
305 } | 323 } |
306 | 324 |
307 func (m *NestedMessageParent) Reset() { *m = NestedMessagePar
ent{} } | 325 func (m *NestedMessageParent) Reset() { *m = NestedMessagePar
ent{} } |
308 func (m *NestedMessageParent) String() string { return proto.CompactT
extString(m) } | 326 func (m *NestedMessageParent) String() string { return proto.CompactT
extString(m) } |
309 func (*NestedMessageParent) ProtoMessage() {} | 327 func (*NestedMessageParent) ProtoMessage() {} |
310 func (*NestedMessageParent) Descriptor() ([]byte, []int) { return fileDescriptor
1, []int{3} } | 328 func (*NestedMessageParent) Descriptor() ([]byte, []int) { return fileDescriptor
0, []int{3} } |
311 | 329 |
312 type NestedMessageParent_NestedMessage struct { | 330 type NestedMessageParent_NestedMessage struct { |
313 F1 int32 `protobuf:"varint,1,opt,name=f1" json:"f1,omitempty"` | 331 F1 int32 `protobuf:"varint,1,opt,name=f1" json:"f1,omitempty"` |
314 F2 int32 `protobuf:"varint,2,opt,name=f2" json:"f2,omitempty"` | 332 F2 int32 `protobuf:"varint,2,opt,name=f2" json:"f2,omitempty"` |
315 } | 333 } |
316 | 334 |
317 func (m *NestedMessageParent_NestedMessage) Reset() { *m = NestedMessage
Parent_NestedMessage{} } | 335 func (m *NestedMessageParent_NestedMessage) Reset() { *m = NestedMessage
Parent_NestedMessage{} } |
318 func (m *NestedMessageParent_NestedMessage) String() string { return proto.Compa
ctTextString(m) } | 336 func (m *NestedMessageParent_NestedMessage) String() string { return proto.Compa
ctTextString(m) } |
319 func (*NestedMessageParent_NestedMessage) ProtoMessage() {} | 337 func (*NestedMessageParent_NestedMessage) ProtoMessage() {} |
320 func (*NestedMessageParent_NestedMessage) Descriptor() ([]byte, []int) { | 338 func (*NestedMessageParent_NestedMessage) Descriptor() ([]byte, []int) { |
321 » return fileDescriptor1, []int{3, 0} | 339 » return fileDescriptor0, []int{3, 0} |
322 } | 340 } |
323 | 341 |
324 func init() { | 342 func init() { |
325 » proto.RegisterType((*M1)(nil), "pkg.M1") | 343 » proto.RegisterType((*M1)(nil), "descutil.M1") |
326 » proto.RegisterType((*M2)(nil), "pkg.M2") | 344 » proto.RegisterType((*M2)(nil), "descutil.M2") |
327 » proto.RegisterType((*M3)(nil), "pkg.M3") | 345 » proto.RegisterType((*M3)(nil), "descutil.M3") |
328 » proto.RegisterType((*NestedMessageParent)(nil), "pkg.NestedMessageParent
") | 346 » proto.RegisterType((*NestedMessageParent)(nil), "descutil.NestedMessageP
arent") |
329 » proto.RegisterType((*NestedMessageParent_NestedMessage)(nil), "pkg.Neste
dMessageParent.NestedMessage") | 347 » proto.RegisterType((*NestedMessageParent_NestedMessage)(nil), "descutil.
NestedMessageParent.NestedMessage") |
330 » proto.RegisterEnum("pkg.E1", E1_name, E1_value) | 348 » proto.RegisterEnum("descutil.E1", E1_name, E1_value) |
331 » proto.RegisterEnum("pkg.NestedMessageParent_NestedEnum", NestedMessagePa
rent_NestedEnum_name, NestedMessageParent_NestedEnum_value) | 349 » proto.RegisterEnum("descutil.NestedMessageParent_NestedEnum", NestedMess
ageParent_NestedEnum_name, NestedMessageParent_NestedEnum_value) |
332 } | 350 } |
333 | 351 |
334 // Reference imports to suppress errors if they are not otherwise used. | 352 // Reference imports to suppress errors if they are not otherwise used. |
335 var _ context.Context | 353 var _ context.Context |
336 var _ grpc.ClientConn | 354 var _ grpc.ClientConn |
337 | 355 |
338 // This is a compile-time assertion to ensure that this generated file | 356 // This is a compile-time assertion to ensure that this generated file |
339 // is compatible with the grpc package it is being compiled against. | 357 // is compatible with the grpc package it is being compiled against. |
340 const _ = grpc.SupportPackageIsVersion3 | 358 const _ = grpc.SupportPackageIsVersion3 |
341 | 359 |
342 // Client API for S1 service | 360 // Client API for S1 service |
343 | 361 |
344 type S1Client interface { | 362 type S1Client interface { |
345 // R1 | 363 // R1 |
346 R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) | 364 R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) |
347 } | 365 } |
348 type s1PRPCClient struct { | 366 type s1PRPCClient struct { |
349 client *prpc.Client | 367 client *prpc.Client |
350 } | 368 } |
351 | 369 |
352 func NewS1PRPCClient(client *prpc.Client) S1Client { | 370 func NewS1PRPCClient(client *prpc.Client) S1Client { |
353 return &s1PRPCClient{client} | 371 return &s1PRPCClient{client} |
354 } | 372 } |
355 | 373 |
356 func (c *s1PRPCClient) R1(ctx context.Context, in *M1, opts ...grpc.CallOption)
(*M2, error) { | 374 func (c *s1PRPCClient) R1(ctx context.Context, in *M1, opts ...grpc.CallOption)
(*M2, error) { |
357 out := new(M2) | 375 out := new(M2) |
358 » err := c.client.Call(ctx, "pkg.S1", "R1", in, out, opts...) | 376 » err := c.client.Call(ctx, "descutil.S1", "R1", in, out, opts...) |
359 if err != nil { | 377 if err != nil { |
360 return nil, err | 378 return nil, err |
361 } | 379 } |
362 return out, nil | 380 return out, nil |
363 } | 381 } |
364 | 382 |
365 type s1Client struct { | 383 type s1Client struct { |
366 cc *grpc.ClientConn | 384 cc *grpc.ClientConn |
367 } | 385 } |
368 | 386 |
369 func NewS1Client(cc *grpc.ClientConn) S1Client { | 387 func NewS1Client(cc *grpc.ClientConn) S1Client { |
370 return &s1Client{cc} | 388 return &s1Client{cc} |
371 } | 389 } |
372 | 390 |
373 func (c *s1Client) R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2
, error) { | 391 func (c *s1Client) R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2
, error) { |
374 out := new(M2) | 392 out := new(M2) |
375 » err := grpc.Invoke(ctx, "/pkg.S1/R1", in, out, c.cc, opts...) | 393 » err := grpc.Invoke(ctx, "/descutil.S1/R1", in, out, c.cc, opts...) |
376 if err != nil { | 394 if err != nil { |
377 return nil, err | 395 return nil, err |
378 } | 396 } |
379 return out, nil | 397 return out, nil |
380 } | 398 } |
381 | 399 |
382 // Server API for S1 service | 400 // Server API for S1 service |
383 | 401 |
384 type S1Server interface { | 402 type S1Server interface { |
385 // R1 | 403 // R1 |
386 R1(context.Context, *M1) (*M2, error) | 404 R1(context.Context, *M1) (*M2, error) |
387 } | 405 } |
388 | 406 |
389 func RegisterS1Server(s prpc.Registrar, srv S1Server) { | 407 func RegisterS1Server(s prpc.Registrar, srv S1Server) { |
390 s.RegisterService(&_S1_serviceDesc, srv) | 408 s.RegisterService(&_S1_serviceDesc, srv) |
391 } | 409 } |
392 | 410 |
393 func _S1_R1_Handler(srv interface{}, ctx context.Context, dec func(interface{})
error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | 411 func _S1_R1_Handler(srv interface{}, ctx context.Context, dec func(interface{})
error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
394 in := new(M1) | 412 in := new(M1) |
395 if err := dec(in); err != nil { | 413 if err := dec(in); err != nil { |
396 return nil, err | 414 return nil, err |
397 } | 415 } |
398 if interceptor == nil { | 416 if interceptor == nil { |
399 return srv.(S1Server).R1(ctx, in) | 417 return srv.(S1Server).R1(ctx, in) |
400 } | 418 } |
401 info := &grpc.UnaryServerInfo{ | 419 info := &grpc.UnaryServerInfo{ |
402 Server: srv, | 420 Server: srv, |
403 » » FullMethod: "/pkg.S1/R1", | 421 » » FullMethod: "/descutil.S1/R1", |
404 } | 422 } |
405 handler := func(ctx context.Context, req interface{}) (interface{}, erro
r) { | 423 handler := func(ctx context.Context, req interface{}) (interface{}, erro
r) { |
406 return srv.(S1Server).R1(ctx, req.(*M1)) | 424 return srv.(S1Server).R1(ctx, req.(*M1)) |
407 } | 425 } |
408 return interceptor(ctx, in, info, handler) | 426 return interceptor(ctx, in, info, handler) |
409 } | 427 } |
410 | 428 |
411 var _S1_serviceDesc = grpc.ServiceDesc{ | 429 var _S1_serviceDesc = grpc.ServiceDesc{ |
412 » ServiceName: "pkg.S1", | 430 » ServiceName: "descutil.S1", |
413 HandlerType: (*S1Server)(nil), | 431 HandlerType: (*S1Server)(nil), |
414 Methods: []grpc.MethodDesc{ | 432 Methods: []grpc.MethodDesc{ |
415 { | 433 { |
416 MethodName: "R1", | 434 MethodName: "R1", |
417 Handler: _S1_R1_Handler, | 435 Handler: _S1_R1_Handler, |
418 }, | 436 }, |
419 }, | 437 }, |
420 Streams: []grpc.StreamDesc{}, | 438 Streams: []grpc.StreamDesc{}, |
421 » Metadata: fileDescriptor1, | 439 » Metadata: fileDescriptor0, |
422 } | 440 } |
423 | 441 |
424 // Client API for S2 service | 442 // Client API for S2 service |
425 | 443 |
426 type S2Client interface { | 444 type S2Client interface { |
427 // R1 | 445 // R1 |
428 R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) | 446 R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) |
429 // R2 | 447 // R2 |
430 R2(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) | 448 R2(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) |
431 } | 449 } |
432 type s2PRPCClient struct { | 450 type s2PRPCClient struct { |
433 client *prpc.Client | 451 client *prpc.Client |
434 } | 452 } |
435 | 453 |
436 func NewS2PRPCClient(client *prpc.Client) S2Client { | 454 func NewS2PRPCClient(client *prpc.Client) S2Client { |
437 return &s2PRPCClient{client} | 455 return &s2PRPCClient{client} |
438 } | 456 } |
439 | 457 |
440 func (c *s2PRPCClient) R1(ctx context.Context, in *M1, opts ...grpc.CallOption)
(*M2, error) { | 458 func (c *s2PRPCClient) R1(ctx context.Context, in *M1, opts ...grpc.CallOption)
(*M2, error) { |
441 out := new(M2) | 459 out := new(M2) |
442 » err := c.client.Call(ctx, "pkg.S2", "R1", in, out, opts...) | 460 » err := c.client.Call(ctx, "descutil.S2", "R1", in, out, opts...) |
443 if err != nil { | 461 if err != nil { |
444 return nil, err | 462 return nil, err |
445 } | 463 } |
446 return out, nil | 464 return out, nil |
447 } | 465 } |
448 | 466 |
449 func (c *s2PRPCClient) R2(ctx context.Context, in *M1, opts ...grpc.CallOption)
(*M2, error) { | 467 func (c *s2PRPCClient) R2(ctx context.Context, in *M1, opts ...grpc.CallOption)
(*M2, error) { |
450 out := new(M2) | 468 out := new(M2) |
451 » err := c.client.Call(ctx, "pkg.S2", "R2", in, out, opts...) | 469 » err := c.client.Call(ctx, "descutil.S2", "R2", in, out, opts...) |
452 if err != nil { | 470 if err != nil { |
453 return nil, err | 471 return nil, err |
454 } | 472 } |
455 return out, nil | 473 return out, nil |
456 } | 474 } |
457 | 475 |
458 type s2Client struct { | 476 type s2Client struct { |
459 cc *grpc.ClientConn | 477 cc *grpc.ClientConn |
460 } | 478 } |
461 | 479 |
462 func NewS2Client(cc *grpc.ClientConn) S2Client { | 480 func NewS2Client(cc *grpc.ClientConn) S2Client { |
463 return &s2Client{cc} | 481 return &s2Client{cc} |
464 } | 482 } |
465 | 483 |
466 func (c *s2Client) R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2
, error) { | 484 func (c *s2Client) R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2
, error) { |
467 out := new(M2) | 485 out := new(M2) |
468 » err := grpc.Invoke(ctx, "/pkg.S2/R1", in, out, c.cc, opts...) | 486 » err := grpc.Invoke(ctx, "/descutil.S2/R1", in, out, c.cc, opts...) |
469 if err != nil { | 487 if err != nil { |
470 return nil, err | 488 return nil, err |
471 } | 489 } |
472 return out, nil | 490 return out, nil |
473 } | 491 } |
474 | 492 |
475 func (c *s2Client) R2(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2
, error) { | 493 func (c *s2Client) R2(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2
, error) { |
476 out := new(M2) | 494 out := new(M2) |
477 » err := grpc.Invoke(ctx, "/pkg.S2/R2", in, out, c.cc, opts...) | 495 » err := grpc.Invoke(ctx, "/descutil.S2/R2", in, out, c.cc, opts...) |
478 if err != nil { | 496 if err != nil { |
479 return nil, err | 497 return nil, err |
480 } | 498 } |
481 return out, nil | 499 return out, nil |
482 } | 500 } |
483 | 501 |
484 // Server API for S2 service | 502 // Server API for S2 service |
485 | 503 |
486 type S2Server interface { | 504 type S2Server interface { |
487 // R1 | 505 // R1 |
488 R1(context.Context, *M1) (*M2, error) | 506 R1(context.Context, *M1) (*M2, error) |
489 // R2 | 507 // R2 |
490 R2(context.Context, *M1) (*M2, error) | 508 R2(context.Context, *M1) (*M2, error) |
491 } | 509 } |
492 | 510 |
493 func RegisterS2Server(s prpc.Registrar, srv S2Server) { | 511 func RegisterS2Server(s prpc.Registrar, srv S2Server) { |
494 s.RegisterService(&_S2_serviceDesc, srv) | 512 s.RegisterService(&_S2_serviceDesc, srv) |
495 } | 513 } |
496 | 514 |
497 func _S2_R1_Handler(srv interface{}, ctx context.Context, dec func(interface{})
error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | 515 func _S2_R1_Handler(srv interface{}, ctx context.Context, dec func(interface{})
error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
498 in := new(M1) | 516 in := new(M1) |
499 if err := dec(in); err != nil { | 517 if err := dec(in); err != nil { |
500 return nil, err | 518 return nil, err |
501 } | 519 } |
502 if interceptor == nil { | 520 if interceptor == nil { |
503 return srv.(S2Server).R1(ctx, in) | 521 return srv.(S2Server).R1(ctx, in) |
504 } | 522 } |
505 info := &grpc.UnaryServerInfo{ | 523 info := &grpc.UnaryServerInfo{ |
506 Server: srv, | 524 Server: srv, |
507 » » FullMethod: "/pkg.S2/R1", | 525 » » FullMethod: "/descutil.S2/R1", |
508 } | 526 } |
509 handler := func(ctx context.Context, req interface{}) (interface{}, erro
r) { | 527 handler := func(ctx context.Context, req interface{}) (interface{}, erro
r) { |
510 return srv.(S2Server).R1(ctx, req.(*M1)) | 528 return srv.(S2Server).R1(ctx, req.(*M1)) |
511 } | 529 } |
512 return interceptor(ctx, in, info, handler) | 530 return interceptor(ctx, in, info, handler) |
513 } | 531 } |
514 | 532 |
515 func _S2_R2_Handler(srv interface{}, ctx context.Context, dec func(interface{})
error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | 533 func _S2_R2_Handler(srv interface{}, ctx context.Context, dec func(interface{})
error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
516 in := new(M1) | 534 in := new(M1) |
517 if err := dec(in); err != nil { | 535 if err := dec(in); err != nil { |
518 return nil, err | 536 return nil, err |
519 } | 537 } |
520 if interceptor == nil { | 538 if interceptor == nil { |
521 return srv.(S2Server).R2(ctx, in) | 539 return srv.(S2Server).R2(ctx, in) |
522 } | 540 } |
523 info := &grpc.UnaryServerInfo{ | 541 info := &grpc.UnaryServerInfo{ |
524 Server: srv, | 542 Server: srv, |
525 » » FullMethod: "/pkg.S2/R2", | 543 » » FullMethod: "/descutil.S2/R2", |
526 } | 544 } |
527 handler := func(ctx context.Context, req interface{}) (interface{}, erro
r) { | 545 handler := func(ctx context.Context, req interface{}) (interface{}, erro
r) { |
528 return srv.(S2Server).R2(ctx, req.(*M1)) | 546 return srv.(S2Server).R2(ctx, req.(*M1)) |
529 } | 547 } |
530 return interceptor(ctx, in, info, handler) | 548 return interceptor(ctx, in, info, handler) |
531 } | 549 } |
532 | 550 |
533 var _S2_serviceDesc = grpc.ServiceDesc{ | 551 var _S2_serviceDesc = grpc.ServiceDesc{ |
534 » ServiceName: "pkg.S2", | 552 » ServiceName: "descutil.S2", |
535 HandlerType: (*S2Server)(nil), | 553 HandlerType: (*S2Server)(nil), |
536 Methods: []grpc.MethodDesc{ | 554 Methods: []grpc.MethodDesc{ |
537 { | 555 { |
538 MethodName: "R1", | 556 MethodName: "R1", |
539 Handler: _S2_R1_Handler, | 557 Handler: _S2_R1_Handler, |
540 }, | 558 }, |
541 { | 559 { |
542 MethodName: "R2", | 560 MethodName: "R2", |
543 Handler: _S2_R2_Handler, | 561 Handler: _S2_R2_Handler, |
544 }, | 562 }, |
545 }, | 563 }, |
546 Streams: []grpc.StreamDesc{}, | 564 Streams: []grpc.StreamDesc{}, |
547 » Metadata: fileDescriptor1, | 565 » Metadata: fileDescriptor0, |
548 } | 566 } |
549 | 567 |
550 func init() { | 568 func init() { |
551 » proto.RegisterFile("github.com/luci/luci-go/common/proto/google/descript
or/util_test.proto", fileDescriptor1) | 569 » proto.RegisterFile("github.com/luci/luci-go/common/proto/google/descutil
/util_test.proto", fileDescriptor0) |
552 } | 570 } |
553 | 571 |
554 var fileDescriptor1 = []byte{ | 572 var fileDescriptor0 = []byte{ |
555 » // 308 bytes of a gzipped FileDescriptorProto | 573 » // 309 bytes of a gzipped FileDescriptorProto |
556 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x91,
0xcb, 0x4b, 0xec, 0x30, | 574 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x91,
0xcf, 0x4b, 0xfb, 0x30, |
557 » 0x14, 0x87, 0xa7, 0x99, 0xc7, 0xe5, 0x46, 0x1c, 0x4a, 0x14, 0x0c, 0x83,
0x88, 0x74, 0x35, 0x08, | 575 » 0x18, 0xc6, 0xd7, 0xec, 0x07, 0xdf, 0x6f, 0xd4, 0x51, 0xa2, 0x87, 0x30,
0x76, 0x90, 0x9c, 0x86, |
558 » 0x36, 0x26, 0xf3, 0xc0, 0xb5, 0x50, 0x71, 0x53, 0x95, 0x11, 0xdc, 0xca,
0x4c, 0x1b, 0x63, 0xb1, | 576 » 0x60, 0x63, 0xd2, 0x6d, 0x67, 0x11, 0x0b, 0x1e, 0xac, 0xca, 0x04, 0xaf,
0xb2, 0xb5, 0xb1, 0x16, |
559 » 0x6d, 0x4a, 0x9b, 0x82, 0x7f, 0xbe, 0xe9, 0x69, 0xad, 0x0f, 0x74, 0x93,
0x26, 0xdf, 0x77, 0x7e, | 577 » 0xda, 0x46, 0xd6, 0x14, 0xfc, 0xf3, 0x4d, 0xdf, 0x6e, 0xb5, 0xf3, 0x20,
0x5e, 0xde, 0xf6, 0xfd, |
560 » 0xe5, 0x9c, 0x04, 0x5f, 0xab, 0xc4, 0xbc, 0xd4, 0x3b, 0x3f, 0xd2, 0x19,
0x4b, 0xeb, 0x28, 0x81, | 578 » 0x3c, 0xcf, 0x13, 0xde, 0x37, 0xc1, 0xb7, 0x49, 0x6a, 0xde, 0xab, 0x8d,
0x17, 0xe9, 0x9c, 0x67, |
561 » 0xe5, 0x5c, 0x69, 0x66, 0x41, 0xa6, 0x73, 0x56, 0x94, 0xda, 0x68, 0xa6,
0xb4, 0x56, 0xa9, 0x64, | 579 » 0x55, 0x94, 0x42, 0xb9, 0x4c, 0x34, 0xb7, 0x20, 0xd7, 0x05, 0xff, 0xd8,
0x6a, 0xa3, 0x79, 0xa2, |
562 » 0xb1, 0xac, 0xa2, 0x32, 0x29, 0x8c, 0x2e, 0x59, 0x6d, 0x92, 0xf4, 0xc9,
0xc8, 0xca, 0xf8, 0x50, | 580 » 0x75, 0x92, 0x29, 0x1e, 0xab, 0x32, 0xaa, 0x4c, 0x9a, 0xf1, 0xba, 0xbc,
0x1a, 0x55, 0x1a, 0x0f, |
563 » 0x41, 0x86, 0xc5, 0xab, 0xf2, 0x0e, 0x31, 0x0a, 0x39, 0x99, 0x62, 0xf4,
0xcc, 0xa9, 0x73, 0xea, | 581 » 0x74, 0xf2, 0x6f, 0xaf, 0xb0, 0x33, 0x8c, 0x42, 0x41, 0xc6, 0x18, 0xbd,
0x09, 0xea, 0x9c, 0x3b, |
564 » 0xcc, 0xff, 0x6f, 0xec, 0xce, 0x5b, 0x5b, 0x2a, 0xc8, 0x51, 0x47, 0x87,
0xf3, 0x3d, 0xf1, 0xcf, | 582 » 0xb3, 0xff, 0x2b, 0xfb, 0xc7, 0xae, 0x2d, 0x95, 0x64, 0xba, 0xa3, 0xfd,
0xd9, 0x91, 0x3c, 0xf6, |
565 » 0xb7, 0xd5, 0x7e, 0xc8, 0x1b, 0x0d, 0x42, 0x50, 0x64, 0xcb, 0xa7, 0x9d,
0x08, 0x1a, 0x21, 0xbc, | 583 » 0xf6, 0x11, 0x2f, 0x14, 0xb5, 0x07, 0x54, 0x49, 0x91, 0xcd, 0x8c, 0xbb,
0x6a, 0x50, 0xab, 0x92, |
566 » 0x37, 0x9b, 0x5b, 0x10, 0xb7, 0xff, 0xdb, 0xf8, 0x66, 0x00, 0x01, 0xb7,
0x0f, 0xb4, 0x44, 0x00, | 584 » 0x7d, 0xda, 0x13, 0x7c, 0xe2, 0xb6, 0xe7, 0x0e, 0xef, 0x7a, 0x90, 0x72,
0xdb, 0x54, 0x43, 0x24, |
567 » 0x59, 0xd0, 0x21, 0x10, 0xc7, 0x92, 0x36, 0xb5, 0xa4, 0xa3, 0x9e, 0x2c,
0xa1, 0xab, 0x15, 0x1d, | 585 » 0x10, 0x9f, 0xf6, 0x81, 0x38, 0x96, 0x34, 0xa9, 0x39, 0x1d, 0xb4, 0x64,
0x0e, 0xf3, 0x2d, 0xe8, |
568 » 0x77, 0x5d, 0xad, 0xe0, 0xbc, 0xa6, 0x93, 0xa6, 0xc2, 0x9e, 0xd7, 0x57,
0x23, 0x8c, 0xee, 0x38, | 586 » 0x70, 0x37, 0xdf, 0x02, 0xfa, 0x25, 0x1d, 0xd5, 0x0e, 0xdb, 0x2f, 0x6f,
0x06, 0x18, 0x3d, 0x0a, |
569 » 0xac, 0xc2, 0x8b, 0xf1, 0xc1, 0xad, 0x1d, 0x4d, 0xc6, 0xa1, 0xac, 0xaa,
0xad, 0x92, 0xf7, 0xdb, | 587 » 0xa8, 0x92, 0xc5, 0xf8, 0xf4, 0xc1, 0x6e, 0xaa, 0xe2, 0x50, 0x95, 0xe5,
0x3a, 0x51, 0x4f, 0xeb, |
570 » 0x52, 0xe6, 0x66, 0xc6, 0xf0, 0xfe, 0x37, 0xfc, 0x65, 0xd2, 0x31, 0x74,
0x36, 0xfd, 0xec, 0x0c, | 588 » 0xad, 0x2a, 0xcc, 0x84, 0xe3, 0x93, 0x03, 0xdc, 0xd9, 0x79, 0x08, 0x93,
0x8d, 0xbf, 0x27, 0x83, |
571 » 0x26, 0x38, 0xc6, 0xb8, 0x0d, 0x04, 0x79, 0x9d, 0x91, 0x09, 0x46, 0x8f,
0x17, 0xee, 0x00, 0xbe, | 589 » 0x0d, 0xa6, 0x18, 0x37, 0x81, 0xa0, 0xa8, 0x72, 0x32, 0xc2, 0xe8, 0xe5,
0xca, 0xed, 0xc1, 0x57, |
572 » 0xdc, 0x75, 0xce, 0xec, 0x6d, 0x05, 0xfc, 0x27, 0x15, 0x27, 0x18, 0x3d,
0x70, 0x42, 0x31, 0xda, | 590 » 0xb8, 0xce, 0x85, 0xbd, 0xb7, 0x40, 0xfc, 0xa4, 0x72, 0x86, 0xd1, 0xb3,
0x20, 0x0c, 0xa3, 0x95, |
573 » 0x70, 0xf2, 0x71, 0x4f, 0xb3, 0x6e, 0x23, 0xbc, 0x81, 0xb8, 0xb4, 0x5e,
0xfc, 0xed, 0xc1, 0x88, | 591 » 0x20, 0x07, 0x37, 0x36, 0xe9, 0x76, 0x92, 0xf5, 0xe4, 0xbd, 0x75, 0xca,
0xbf, 0x38, 0xc1, 0x23, |
574 » 0xdf, 0xcc, 0x6e, 0x02, 0x2f, 0xb5, 0x78, 0x0f, 0x00, 0x00, 0xff, 0xff,
0xa7, 0x45, 0x97, 0x30, | 592 » 0x7f, 0xf7, 0x6c, 0x46, 0xf0, 0xac, 0xfe, 0x57, 0x00, 0x00, 0x00, 0xff,
0xff, 0x09, 0xb9, 0x09, |
575 » 0xf3, 0x01, 0x00, 0x00, | 593 » 0x37, 0x1e, 0x02, 0x00, 0x00, |
576 } | 594 } |
OLD | NEW |