-
Notifications
You must be signed in to change notification settings - Fork 0
/
gerrit.pb.go
499 lines (452 loc) · 19.2 KB
/
gerrit.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/common/proto/gerrit/gerrit.proto
package gerrit
import prpc "github.com/TriggerMail/luci-go/grpc/prpc"
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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
// Specifies what extra information to include in the response.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#query-options
type QueryOption int32
const (
QueryOption_OPTION_UNSPECIFIED QueryOption = 0
// A summary of each label required for submit, and approvers that have
// granted (or rejected) with that label.
QueryOption_LABELS QueryOption = 1
// Detailed label information, including numeric values of all existing
// approvals, recognized label values, values permitted to be set by the
// current user, all reviewers by state, and reviewers that may be removed by
// the current user.
QueryOption_DETAILED_LABELS QueryOption = 2
// Describe the current revision (patch set) of the change, including the
// commit SHA-1 and URLs to fetch from.
QueryOption_CURRENT_REVISION QueryOption = 4
// Describe all revisions, not just current.
QueryOption_ALL_REVISIONS QueryOption = 8
// Parse and output all header fields from the commit object, including
// message. Only valid when the CURRENT_REVISION or ALL_REVISIONS option is
// selected.
QueryOption_CURRENT_COMMIT QueryOption = 16
// Parse and output all header fields from the output revisions. If only
// CURRENT_REVISION was requested then only the current revision’s commit data
// will be output.
QueryOption_ALL_COMMITS QueryOption = 32
// List files modified by the commit and magic files, including basic line
// counts inserted/deleted per file. Only valid when the CURRENT_REVISION or
// ALL_REVISIONS option is selected.
QueryOption_CURRENT_FILES QueryOption = 64
// List files modified by the commit and magic files, including basic line
// counts inserted/deleted per file. If only the CURRENT_REVISION was
// requested then only that commit’s modified files will be output.
QueryOption_ALL_FILES QueryOption = 128
// Include _account_id, email and username fields when referencing accounts.
QueryOption_DETAILED_ACCOUNTS QueryOption = 256
// Include updates to reviewers set as ReviewerUpdateInfo entities.
QueryOption_REVIEWER_UPDATES QueryOption = 512
// Include messages associated with the change.
QueryOption_MESSAGES QueryOption = 1024
// Include information on available actions for the change and its current
// revision. Ignored if the caller is not authenticated.
QueryOption_CURRENT_ACTIONS QueryOption = 2048
// Include information on available change actions for the change. Ignored if
// the caller is not authenticated.
QueryOption_CHANGE_ACTIONS QueryOption = 4096
// Include the reviewed field if all of the following are true:
// - the change is open
// - the caller is authenticated
// - the caller has commented on the change more recently than the last update
// from the change owner, i.e. this change would show up in the results of
// reviewedby:self.
QueryOption_REVIEWED QueryOption = 8192
// Skip the mergeable field in ChangeInfo. For fast moving projects, this
// field must be recomputed often, which is slow for projects with big trees.
QueryOption_SKIP_MERGEABLE QueryOption = 16384
// Include the submittable field in ChangeInfo, which can be used to tell if
// the change is reviewed and ready for submit.
QueryOption_SUBMITTABLE QueryOption = 32768
// Include the web_links field in CommitInfo, therefore only valid in
// combination with CURRENT_COMMIT or ALL_COMMITS.
QueryOption_WEB_LINKS QueryOption = 65536
// Include potential problems with the change.
QueryOption_CHECK QueryOption = 131072
// Include the full commit message with Gerrit-specific commit footers in the
// RevisionInfo.
QueryOption_COMMIT_FOOTERS QueryOption = 262144
// Include push certificate information in the RevisionInfo. Ignored if signed
// push is not enabled on the server.
QueryOption_PUSH_CERTIFICATES QueryOption = 524288
// Include references to external tracking systems as TrackingIdInfo.
QueryOption_TRACKING_IDS QueryOption = 1048576
// Include the commands field in the FetchInfo for revisions. Only valid when
// the CURRENT_REVISION or ALL_REVISIONS option is selected.
QueryOption_DOWNLOAD_COMMANDS QueryOption = 2097152
)
var QueryOption_name = map[int32]string{
0: "OPTION_UNSPECIFIED",
1: "LABELS",
2: "DETAILED_LABELS",
4: "CURRENT_REVISION",
8: "ALL_REVISIONS",
16: "CURRENT_COMMIT",
32: "ALL_COMMITS",
64: "CURRENT_FILES",
128: "ALL_FILES",
256: "DETAILED_ACCOUNTS",
512: "REVIEWER_UPDATES",
1024: "MESSAGES",
2048: "CURRENT_ACTIONS",
4096: "CHANGE_ACTIONS",
8192: "REVIEWED",
16384: "SKIP_MERGEABLE",
32768: "SUBMITTABLE",
65536: "WEB_LINKS",
131072: "CHECK",
262144: "COMMIT_FOOTERS",
524288: "PUSH_CERTIFICATES",
1048576: "TRACKING_IDS",
2097152: "DOWNLOAD_COMMANDS",
}
var QueryOption_value = map[string]int32{
"OPTION_UNSPECIFIED": 0,
"LABELS": 1,
"DETAILED_LABELS": 2,
"CURRENT_REVISION": 4,
"ALL_REVISIONS": 8,
"CURRENT_COMMIT": 16,
"ALL_COMMITS": 32,
"CURRENT_FILES": 64,
"ALL_FILES": 128,
"DETAILED_ACCOUNTS": 256,
"REVIEWER_UPDATES": 512,
"MESSAGES": 1024,
"CURRENT_ACTIONS": 2048,
"CHANGE_ACTIONS": 4096,
"REVIEWED": 8192,
"SKIP_MERGEABLE": 16384,
"SUBMITTABLE": 32768,
"WEB_LINKS": 65536,
"CHECK": 131072,
"COMMIT_FOOTERS": 262144,
"PUSH_CERTIFICATES": 524288,
"TRACKING_IDS": 1048576,
"DOWNLOAD_COMMANDS": 2097152,
}
func (x QueryOption) String() string {
return proto.EnumName(QueryOption_name, int32(x))
}
func (QueryOption) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3c6e096860f6adc3, []int{0}
}
type GetChangeRequest struct {
// Change number.
Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
// What to include in the response.
Options []QueryOption `protobuf:"varint,2,rep,packed,name=options,proto3,enum=gerrit.QueryOption" json:"options,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetChangeRequest) Reset() { *m = GetChangeRequest{} }
func (m *GetChangeRequest) String() string { return proto.CompactTextString(m) }
func (*GetChangeRequest) ProtoMessage() {}
func (*GetChangeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3c6e096860f6adc3, []int{0}
}
func (m *GetChangeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetChangeRequest.Unmarshal(m, b)
}
func (m *GetChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetChangeRequest.Marshal(b, m, deterministic)
}
func (m *GetChangeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetChangeRequest.Merge(m, src)
}
func (m *GetChangeRequest) XXX_Size() int {
return xxx_messageInfo_GetChangeRequest.Size(m)
}
func (m *GetChangeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetChangeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetChangeRequest proto.InternalMessageInfo
func (m *GetChangeRequest) GetNumber() int64 {
if m != nil {
return m.Number
}
return 0
}
func (m *GetChangeRequest) GetOptions() []QueryOption {
if m != nil {
return m.Options
}
return nil
}
// Information about an account.
// Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-info
type AccountInfo struct {
// The full name of the user.
// Only set if detailed account information is requested.
// See option DETAILED_ACCOUNTS for change queries
// and option DETAILS for account queries.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The email address the user prefers to be contacted through.
// Only set if detailed account information is requested.
// See option DETAILED_ACCOUNTS for change queries
// and options DETAILS and ALL_EMAILS for account queries.
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
// A list of the secondary email addresses of the user.
// Only set for account queries when the ALL_EMAILS option or the suggest
// parameter is set. Secondary emails are only included if the calling user
// has the Modify Account, and hence is allowed to see secondary emails of
// other users.
SecondaryEmails []string `protobuf:"bytes,3,rep,name=secondary_emails,json=secondaryEmails,proto3" json:"secondary_emails,omitempty"`
// The username of the user.
// Only set if detailed account information is requested.
// See option DETAILED_ACCOUNTS for change queries
// and option DETAILS for account queries.
Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AccountInfo) Reset() { *m = AccountInfo{} }
func (m *AccountInfo) String() string { return proto.CompactTextString(m) }
func (*AccountInfo) ProtoMessage() {}
func (*AccountInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_3c6e096860f6adc3, []int{1}
}
func (m *AccountInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AccountInfo.Unmarshal(m, b)
}
func (m *AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AccountInfo.Marshal(b, m, deterministic)
}
func (m *AccountInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_AccountInfo.Merge(m, src)
}
func (m *AccountInfo) XXX_Size() int {
return xxx_messageInfo_AccountInfo.Size(m)
}
func (m *AccountInfo) XXX_DiscardUnknown() {
xxx_messageInfo_AccountInfo.DiscardUnknown(m)
}
var xxx_messageInfo_AccountInfo proto.InternalMessageInfo
func (m *AccountInfo) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *AccountInfo) GetEmail() string {
if m != nil {
return m.Email
}
return ""
}
func (m *AccountInfo) GetSecondaryEmails() []string {
if m != nil {
return m.SecondaryEmails
}
return nil
}
func (m *AccountInfo) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
// Information about a change.
// Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-info
type ChangeInfo struct {
// The change number.
Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
// The owner of the change.
Owner *AccountInfo `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
// The project of this change. For example, "chromium/src".
Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ChangeInfo) Reset() { *m = ChangeInfo{} }
func (m *ChangeInfo) String() string { return proto.CompactTextString(m) }
func (*ChangeInfo) ProtoMessage() {}
func (*ChangeInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_3c6e096860f6adc3, []int{2}
}
func (m *ChangeInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChangeInfo.Unmarshal(m, b)
}
func (m *ChangeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChangeInfo.Marshal(b, m, deterministic)
}
func (m *ChangeInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChangeInfo.Merge(m, src)
}
func (m *ChangeInfo) XXX_Size() int {
return xxx_messageInfo_ChangeInfo.Size(m)
}
func (m *ChangeInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ChangeInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ChangeInfo proto.InternalMessageInfo
func (m *ChangeInfo) GetNumber() int64 {
if m != nil {
return m.Number
}
return 0
}
func (m *ChangeInfo) GetOwner() *AccountInfo {
if m != nil {
return m.Owner
}
return nil
}
func (m *ChangeInfo) GetProject() string {
if m != nil {
return m.Project
}
return ""
}
func init() {
proto.RegisterEnum("gerrit.QueryOption", QueryOption_name, QueryOption_value)
proto.RegisterType((*GetChangeRequest)(nil), "gerrit.GetChangeRequest")
proto.RegisterType((*AccountInfo)(nil), "gerrit.AccountInfo")
proto.RegisterType((*ChangeInfo)(nil), "gerrit.ChangeInfo")
}
func init() {
proto.RegisterFile("github.com/TriggerMail/luci-go/common/proto/gerrit/gerrit.proto", fileDescriptor_3c6e096860f6adc3)
}
var fileDescriptor_3c6e096860f6adc3 = []byte{
// 596 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0x4d, 0x6f, 0xda, 0x40,
0x10, 0x2d, 0x1f, 0x21, 0x30, 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,
0xbb, 0xfb, 0x86, 0xda, 0xb7, 0x0f, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x17, 0xaa, 0x86, 0x8f,
0xa8, 0x03, 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
// GerritClient is the client API for Gerrit service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type GerritClient interface {
// Loads a change by id.
GetChange(ctx context.Context, in *GetChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
}
type gerritPRPCClient struct {
client *prpc.Client
}
func NewGerritPRPCClient(client *prpc.Client) GerritClient {
return &gerritPRPCClient{client}
}
func (c *gerritPRPCClient) GetChange(ctx context.Context, in *GetChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error) {
out := new(ChangeInfo)
err := c.client.Call(ctx, "gerrit.Gerrit", "GetChange", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type gerritClient struct {
cc *grpc.ClientConn
}
func NewGerritClient(cc *grpc.ClientConn) GerritClient {
return &gerritClient{cc}
}
func (c *gerritClient) GetChange(ctx context.Context, in *GetChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error) {
out := new(ChangeInfo)
err := c.cc.Invoke(ctx, "/gerrit.Gerrit/GetChange", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// GerritServer is the server API for Gerrit service.
type GerritServer interface {
// Loads a change by id.
GetChange(context.Context, *GetChangeRequest) (*ChangeInfo, error)
}
func RegisterGerritServer(s prpc.Registrar, srv GerritServer) {
s.RegisterService(&_Gerrit_serviceDesc, srv)
}
func _Gerrit_GetChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetChangeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GerritServer).GetChange(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gerrit.Gerrit/GetChange",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GerritServer).GetChange(ctx, req.(*GetChangeRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Gerrit_serviceDesc = grpc.ServiceDesc{
ServiceName: "gerrit.Gerrit",
HandlerType: (*GerritServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetChange",
Handler: _Gerrit_GetChange_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "github.com/TriggerMail/luci-go/common/proto/gerrit/gerrit.proto",
}