/
buildbot.pb.go
591 lines (524 loc) · 21.8 KB
/
buildbot.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/milo/api/proto/buildbot.proto
package milo
import prpc "github.com/TriggerMail/luci-go/grpc/prpc"
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The request containing the name of the master.
type MasterRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// if true, exclude response data that the foundation team is actively trying
// to deprecate:
// - slave info
ExcludeDeprecated bool `protobuf:"varint,10,opt,name=exclude_deprecated,json=excludeDeprecated,proto3" json:"exclude_deprecated,omitempty"`
// If true, turn off emulation mode.
NoEmulation bool `protobuf:"varint,11,opt,name=no_emulation,json=noEmulation,proto3" json:"no_emulation,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MasterRequest) Reset() { *m = MasterRequest{} }
func (m *MasterRequest) String() string { return proto.CompactTextString(m) }
func (*MasterRequest) ProtoMessage() {}
func (*MasterRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_42752ec01fa9d3bf, []int{0}
}
func (m *MasterRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MasterRequest.Unmarshal(m, b)
}
func (m *MasterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MasterRequest.Marshal(b, m, deterministic)
}
func (m *MasterRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MasterRequest.Merge(m, src)
}
func (m *MasterRequest) XXX_Size() int {
return xxx_messageInfo_MasterRequest.Size(m)
}
func (m *MasterRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MasterRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MasterRequest proto.InternalMessageInfo
func (m *MasterRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *MasterRequest) GetExcludeDeprecated() bool {
if m != nil {
return m.ExcludeDeprecated
}
return false
}
func (m *MasterRequest) GetNoEmulation() bool {
if m != nil {
return m.NoEmulation
}
return false
}
// The response message containing master information.
type CompressedMasterJSON struct {
// Whether the master is internal or not.
Internal bool `protobuf:"varint,1,opt,name=internal,proto3" json:"internal,omitempty"`
// Timestamp of the freshness of the master data.
Modified *timestamp.Timestamp `protobuf:"bytes,2,opt,name=modified,proto3" json:"modified,omitempty"`
// Gzipped json data of the master.
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CompressedMasterJSON) Reset() { *m = CompressedMasterJSON{} }
func (m *CompressedMasterJSON) String() string { return proto.CompactTextString(m) }
func (*CompressedMasterJSON) ProtoMessage() {}
func (*CompressedMasterJSON) Descriptor() ([]byte, []int) {
return fileDescriptor_42752ec01fa9d3bf, []int{1}
}
func (m *CompressedMasterJSON) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CompressedMasterJSON.Unmarshal(m, b)
}
func (m *CompressedMasterJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CompressedMasterJSON.Marshal(b, m, deterministic)
}
func (m *CompressedMasterJSON) XXX_Merge(src proto.Message) {
xxx_messageInfo_CompressedMasterJSON.Merge(m, src)
}
func (m *CompressedMasterJSON) XXX_Size() int {
return xxx_messageInfo_CompressedMasterJSON.Size(m)
}
func (m *CompressedMasterJSON) XXX_DiscardUnknown() {
xxx_messageInfo_CompressedMasterJSON.DiscardUnknown(m)
}
var xxx_messageInfo_CompressedMasterJSON proto.InternalMessageInfo
func (m *CompressedMasterJSON) GetInternal() bool {
if m != nil {
return m.Internal
}
return false
}
func (m *CompressedMasterJSON) GetModified() *timestamp.Timestamp {
if m != nil {
return m.Modified
}
return nil
}
func (m *CompressedMasterJSON) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
// The request for a specific build.
type BuildbotBuildRequest struct {
Master string `protobuf:"bytes,1,opt,name=master,proto3" json:"master,omitempty"`
Builder string `protobuf:"bytes,2,opt,name=builder,proto3" json:"builder,omitempty"`
BuildNum int64 `protobuf:"varint,3,opt,name=build_num,json=buildNum,proto3" json:"build_num,omitempty"`
// if true, exclude response data that the foundation team is actively trying
// to deprecate:
// - slave info
ExcludeDeprecated bool `protobuf:"varint,10,opt,name=exclude_deprecated,json=excludeDeprecated,proto3" json:"exclude_deprecated,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildbotBuildRequest) Reset() { *m = BuildbotBuildRequest{} }
func (m *BuildbotBuildRequest) String() string { return proto.CompactTextString(m) }
func (*BuildbotBuildRequest) ProtoMessage() {}
func (*BuildbotBuildRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_42752ec01fa9d3bf, []int{2}
}
func (m *BuildbotBuildRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildbotBuildRequest.Unmarshal(m, b)
}
func (m *BuildbotBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildbotBuildRequest.Marshal(b, m, deterministic)
}
func (m *BuildbotBuildRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildbotBuildRequest.Merge(m, src)
}
func (m *BuildbotBuildRequest) XXX_Size() int {
return xxx_messageInfo_BuildbotBuildRequest.Size(m)
}
func (m *BuildbotBuildRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BuildbotBuildRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BuildbotBuildRequest proto.InternalMessageInfo
func (m *BuildbotBuildRequest) GetMaster() string {
if m != nil {
return m.Master
}
return ""
}
func (m *BuildbotBuildRequest) GetBuilder() string {
if m != nil {
return m.Builder
}
return ""
}
func (m *BuildbotBuildRequest) GetBuildNum() int64 {
if m != nil {
return m.BuildNum
}
return 0
}
func (m *BuildbotBuildRequest) GetExcludeDeprecated() bool {
if m != nil {
return m.ExcludeDeprecated
}
return false
}
// The response message for a specific build.
type BuildbotBuildJSON struct {
// Json data of the build.
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildbotBuildJSON) Reset() { *m = BuildbotBuildJSON{} }
func (m *BuildbotBuildJSON) String() string { return proto.CompactTextString(m) }
func (*BuildbotBuildJSON) ProtoMessage() {}
func (*BuildbotBuildJSON) Descriptor() ([]byte, []int) {
return fileDescriptor_42752ec01fa9d3bf, []int{3}
}
func (m *BuildbotBuildJSON) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildbotBuildJSON.Unmarshal(m, b)
}
func (m *BuildbotBuildJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildbotBuildJSON.Marshal(b, m, deterministic)
}
func (m *BuildbotBuildJSON) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildbotBuildJSON.Merge(m, src)
}
func (m *BuildbotBuildJSON) XXX_Size() int {
return xxx_messageInfo_BuildbotBuildJSON.Size(m)
}
func (m *BuildbotBuildJSON) XXX_DiscardUnknown() {
xxx_messageInfo_BuildbotBuildJSON.DiscardUnknown(m)
}
var xxx_messageInfo_BuildbotBuildJSON proto.InternalMessageInfo
func (m *BuildbotBuildJSON) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
// The request for multiple build on a builder.
type BuildbotBuildsRequest struct {
Master string `protobuf:"bytes,1,opt,name=master,proto3" json:"master,omitempty"`
Builder string `protobuf:"bytes,2,opt,name=builder,proto3" json:"builder,omitempty"`
// Limit to the number of builds to return (default: 20).
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// Include ongoing builds (default: false).
IncludeCurrent bool `protobuf:"varint,4,opt,name=include_current,json=includeCurrent,proto3" json:"include_current,omitempty"`
// if true, exclude response data that the foundation team is actively trying
// to deprecate:
// - slave info
ExcludeDeprecated bool `protobuf:"varint,10,opt,name=exclude_deprecated,json=excludeDeprecated,proto3" json:"exclude_deprecated,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildbotBuildsRequest) Reset() { *m = BuildbotBuildsRequest{} }
func (m *BuildbotBuildsRequest) String() string { return proto.CompactTextString(m) }
func (*BuildbotBuildsRequest) ProtoMessage() {}
func (*BuildbotBuildsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_42752ec01fa9d3bf, []int{4}
}
func (m *BuildbotBuildsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildbotBuildsRequest.Unmarshal(m, b)
}
func (m *BuildbotBuildsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildbotBuildsRequest.Marshal(b, m, deterministic)
}
func (m *BuildbotBuildsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildbotBuildsRequest.Merge(m, src)
}
func (m *BuildbotBuildsRequest) XXX_Size() int {
return xxx_messageInfo_BuildbotBuildsRequest.Size(m)
}
func (m *BuildbotBuildsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BuildbotBuildsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BuildbotBuildsRequest proto.InternalMessageInfo
func (m *BuildbotBuildsRequest) GetMaster() string {
if m != nil {
return m.Master
}
return ""
}
func (m *BuildbotBuildsRequest) GetBuilder() string {
if m != nil {
return m.Builder
}
return ""
}
func (m *BuildbotBuildsRequest) GetLimit() int32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *BuildbotBuildsRequest) GetIncludeCurrent() bool {
if m != nil {
return m.IncludeCurrent
}
return false
}
func (m *BuildbotBuildsRequest) GetExcludeDeprecated() bool {
if m != nil {
return m.ExcludeDeprecated
}
return false
}
// The response message for multiple builds in a builder.
type BuildbotBuildsJSON struct {
// builds is the list of builds resulting from the builds request.
Builds []*BuildbotBuildJSON `protobuf:"bytes,1,rep,name=builds,proto3" json:"builds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildbotBuildsJSON) Reset() { *m = BuildbotBuildsJSON{} }
func (m *BuildbotBuildsJSON) String() string { return proto.CompactTextString(m) }
func (*BuildbotBuildsJSON) ProtoMessage() {}
func (*BuildbotBuildsJSON) Descriptor() ([]byte, []int) {
return fileDescriptor_42752ec01fa9d3bf, []int{5}
}
func (m *BuildbotBuildsJSON) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildbotBuildsJSON.Unmarshal(m, b)
}
func (m *BuildbotBuildsJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildbotBuildsJSON.Marshal(b, m, deterministic)
}
func (m *BuildbotBuildsJSON) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildbotBuildsJSON.Merge(m, src)
}
func (m *BuildbotBuildsJSON) XXX_Size() int {
return xxx_messageInfo_BuildbotBuildsJSON.Size(m)
}
func (m *BuildbotBuildsJSON) XXX_DiscardUnknown() {
xxx_messageInfo_BuildbotBuildsJSON.DiscardUnknown(m)
}
var xxx_messageInfo_BuildbotBuildsJSON proto.InternalMessageInfo
func (m *BuildbotBuildsJSON) GetBuilds() []*BuildbotBuildJSON {
if m != nil {
return m.Builds
}
return nil
}
func init() {
proto.RegisterType((*MasterRequest)(nil), "milo.MasterRequest")
proto.RegisterType((*CompressedMasterJSON)(nil), "milo.CompressedMasterJSON")
proto.RegisterType((*BuildbotBuildRequest)(nil), "milo.BuildbotBuildRequest")
proto.RegisterType((*BuildbotBuildJSON)(nil), "milo.BuildbotBuildJSON")
proto.RegisterType((*BuildbotBuildsRequest)(nil), "milo.BuildbotBuildsRequest")
proto.RegisterType((*BuildbotBuildsJSON)(nil), "milo.BuildbotBuildsJSON")
}
func init() {
proto.RegisterFile("github.com/TriggerMail/luci-go/milo/api/proto/buildbot.proto", fileDescriptor_42752ec01fa9d3bf)
}
var fileDescriptor_42752ec01fa9d3bf = []byte{
// 484 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xc1, 0x6e, 0xd3, 0x40,
0x10, 0x86, 0xbb, 0x8d, 0x13, 0x9c, 0x49, 0x81, 0x76, 0x49, 0xa9, 0xe5, 0x1e, 0x30, 0xbe, 0xd4,
0x17, 0x6c, 0x29, 0x48, 0x3c, 0x00, 0x05, 0x55, 0x0a, 0xb4, 0xa0, 0x85, 0x7b, 0xe4, 0xd8, 0xd3,
0xb0, 0x92, 0xd7, 0x6b, 0xd6, 0xbb, 0x12, 0x27, 0x9e, 0x82, 0xd7, 0xe1, 0xc1, 0xb8, 0xa1, 0xec,
0xda, 0x11, 0xa1, 0xe6, 0x50, 0x4e, 0xde, 0x99, 0xf9, 0x3d, 0xfb, 0xfd, 0xb3, 0x03, 0x8b, 0x8d,
0x4c, 0x8b, 0x2f, 0x4a, 0x0a, 0x6e, 0x44, 0x2a, 0xd5, 0x26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xe0, 0x9f, 0xfe, 0x49, 0xc3, 0x60, 0xa8, 0xe8,
0x3a, 0xae, 0x27, 0x76, 0xf5, 0x5f, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xc6, 0xde, 0x7a, 0xd9,
0x23, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// BuildbotClient is the client API for Buildbot service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BuildbotClient interface {
GetCompressedMasterJSON(ctx context.Context, in *MasterRequest, opts ...grpc.CallOption) (*CompressedMasterJSON, error)
GetBuildbotBuildJSON(ctx context.Context, in *BuildbotBuildRequest, opts ...grpc.CallOption) (*BuildbotBuildJSON, error)
GetBuildbotBuildsJSON(ctx context.Context, in *BuildbotBuildsRequest, opts ...grpc.CallOption) (*BuildbotBuildsJSON, error)
}
type buildbotPRPCClient struct {
client *prpc.Client
}
func NewBuildbotPRPCClient(client *prpc.Client) BuildbotClient {
return &buildbotPRPCClient{client}
}
func (c *buildbotPRPCClient) GetCompressedMasterJSON(ctx context.Context, in *MasterRequest, opts ...grpc.CallOption) (*CompressedMasterJSON, error) {
out := new(CompressedMasterJSON)
err := c.client.Call(ctx, "milo.Buildbot", "GetCompressedMasterJSON", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *buildbotPRPCClient) GetBuildbotBuildJSON(ctx context.Context, in *BuildbotBuildRequest, opts ...grpc.CallOption) (*BuildbotBuildJSON, error) {
out := new(BuildbotBuildJSON)
err := c.client.Call(ctx, "milo.Buildbot", "GetBuildbotBuildJSON", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *buildbotPRPCClient) GetBuildbotBuildsJSON(ctx context.Context, in *BuildbotBuildsRequest, opts ...grpc.CallOption) (*BuildbotBuildsJSON, error) {
out := new(BuildbotBuildsJSON)
err := c.client.Call(ctx, "milo.Buildbot", "GetBuildbotBuildsJSON", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type buildbotClient struct {
cc *grpc.ClientConn
}
func NewBuildbotClient(cc *grpc.ClientConn) BuildbotClient {
return &buildbotClient{cc}
}
func (c *buildbotClient) GetCompressedMasterJSON(ctx context.Context, in *MasterRequest, opts ...grpc.CallOption) (*CompressedMasterJSON, error) {
out := new(CompressedMasterJSON)
err := c.cc.Invoke(ctx, "/milo.Buildbot/GetCompressedMasterJSON", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *buildbotClient) GetBuildbotBuildJSON(ctx context.Context, in *BuildbotBuildRequest, opts ...grpc.CallOption) (*BuildbotBuildJSON, error) {
out := new(BuildbotBuildJSON)
err := c.cc.Invoke(ctx, "/milo.Buildbot/GetBuildbotBuildJSON", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *buildbotClient) GetBuildbotBuildsJSON(ctx context.Context, in *BuildbotBuildsRequest, opts ...grpc.CallOption) (*BuildbotBuildsJSON, error) {
out := new(BuildbotBuildsJSON)
err := c.cc.Invoke(ctx, "/milo.Buildbot/GetBuildbotBuildsJSON", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// BuildbotServer is the server API for Buildbot service.
type BuildbotServer interface {
GetCompressedMasterJSON(context.Context, *MasterRequest) (*CompressedMasterJSON, error)
GetBuildbotBuildJSON(context.Context, *BuildbotBuildRequest) (*BuildbotBuildJSON, error)
GetBuildbotBuildsJSON(context.Context, *BuildbotBuildsRequest) (*BuildbotBuildsJSON, error)
}
func RegisterBuildbotServer(s prpc.Registrar, srv BuildbotServer) {
s.RegisterService(&_Buildbot_serviceDesc, srv)
}
func _Buildbot_GetCompressedMasterJSON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MasterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BuildbotServer).GetCompressedMasterJSON(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milo.Buildbot/GetCompressedMasterJSON",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BuildbotServer).GetCompressedMasterJSON(ctx, req.(*MasterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Buildbot_GetBuildbotBuildJSON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BuildbotBuildRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BuildbotServer).GetBuildbotBuildJSON(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milo.Buildbot/GetBuildbotBuildJSON",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BuildbotServer).GetBuildbotBuildJSON(ctx, req.(*BuildbotBuildRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Buildbot_GetBuildbotBuildsJSON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BuildbotBuildsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BuildbotServer).GetBuildbotBuildsJSON(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/milo.Buildbot/GetBuildbotBuildsJSON",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BuildbotServer).GetBuildbotBuildsJSON(ctx, req.(*BuildbotBuildsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Buildbot_serviceDesc = grpc.ServiceDesc{
ServiceName: "milo.Buildbot",
HandlerType: (*BuildbotServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetCompressedMasterJSON",
Handler: _Buildbot_GetCompressedMasterJSON_Handler,
},
{
MethodName: "GetBuildbotBuildJSON",
Handler: _Buildbot_GetBuildbotBuildJSON_Handler,
},
{
MethodName: "GetBuildbotBuildsJSON",
Handler: _Buildbot_GetBuildbotBuildsJSON_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "github.com/TriggerMail/luci-go/milo/api/proto/buildbot.proto",
}