Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: go/src/infra/monorail/monorail.pb.go

Issue 2037143002: Monorail client in Go (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Code generated by protoc-gen-go.
2 // source: monorail.proto
3 // DO NOT EDIT!
4
5 /*
6 Package monorail is a generated protocol buffer package.
7
8 It is generated from these files:
9 monorail.proto
10
11 It has these top-level messages:
12 Issue
13 IssueRef
14 InsertIssueRequest
15 InsertIssueResponse
16 InsertCommentRequest
17 InsertCommentResponse
18 Update
19 AtomPerson
20 */
21 package monorail
22
23 import prpccommon "github.com/luci/luci-go/common/prpc"
24 import prpc "github.com/luci/luci-go/server/prpc"
25
26 import proto "github.com/golang/protobuf/proto"
27 import fmt "fmt"
28 import math "math"
29
30 import (
31 context "golang.org/x/net/context"
32 grpc "google.golang.org/grpc"
33 )
34
35 // Reference imports to suppress errors if they are not otherwise used.
36 var _ = proto.Marshal
37 var _ = fmt.Errorf
38 var _ = math.Inf
39
40 // This is a compile-time assertion to ensure that this generated file
41 // is compatible with the proto package it is being compiled against.
42 // A compilation error at this line likely means your copy of the
43 // proto package needs to be updated.
44 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
45
46 // Issue is an existing monorail issue.
47 type Issue struct {
48 // Reporter of the issue.
49 Author *AtomPerson `protobuf:"bytes,1,opt,name=author" json:"author,omit empty"`
50 // Issues that must be fixed before this one can be fixed.
51 BlockedOn []*IssueRef `protobuf:"bytes,2,rep,name=blockedOn" json:"block edOn,omitempty"`
52 // People participating in the issue discussion.
53 Cc []*AtomPerson `protobuf:"bytes,6,rep,name=cc" json:"cc,omitempty"`
54 // The text body of the issue.
55 Description string `protobuf:"bytes,8,opt,name=description" json:"descri ption,omitempty"`
56 // Identifier of the issue, unique within the appengine app.
57 Id int32 `protobuf:"varint,9,opt,name=id" json:"id,omitempty"`
58 // Arbitrary indexed strings visible to users,
59 // usually of form "Key-Value" or "Key-Value-SubValue",
60 Labels []string `protobuf:"bytes,11,rep,name=labels" json:"labels,omitem pty"`
61 // Who is currently responsible for closing the issue.
62 Owner *AtomPerson `protobuf:"bytes,12,opt,name=owner" json:"owner,omitem pty"`
63 // Current status of issue. Standard values:
64 //
65 // Open statuses:
66 // "Unconrimed" - New, has been not verified or reproduced.
67 // "Untriaged" - Confirmed, not reviews for priority of assignment
68 // "Available" - Triaged, but no owner assigned
69 // "Started" - Work in progress.
70 // "ExternalDependency" - Requires action from a third party
71 // Closed statuses:
72 // "Fixed" - Work completed, needs verificaiton
73 // "Verified" - Test or reporter verified that the fix works
74 // "Duplicate" - Same root cause as another issue
75 // "WontFix" - Cannot reproduce, works as intended, invalid or absolete .
76 // "Archived" - Old issue with no activity.
77 Status string `protobuf:"bytes,17,opt,name=status" json:"status,omitempt y"`
78 // A one line description of the issue.
79 Summary string `protobuf:"bytes,18,opt,name=summary" json:"summary,omite mpty"`
80 }
81
82 func (m *Issue) Reset() { *m = Issue{} }
83 func (m *Issue) String() string { return proto.CompactTextString(m) }
84 func (*Issue) ProtoMessage() {}
85 func (*Issue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
86
87 func (m *Issue) GetAuthor() *AtomPerson {
88 if m != nil {
89 return m.Author
90 }
91 return nil
92 }
93
94 func (m *Issue) GetBlockedOn() []*IssueRef {
95 if m != nil {
96 return m.BlockedOn
97 }
98 return nil
99 }
100
101 func (m *Issue) GetCc() []*AtomPerson {
102 if m != nil {
103 return m.Cc
104 }
105 return nil
106 }
107
108 func (m *Issue) GetOwner() *AtomPerson {
109 if m != nil {
110 return m.Owner
111 }
112 return nil
113 }
114
115 // IssueRef references another issue in the same Monorail instance.
116 type IssueRef struct {
117 // ID of the issue.
118 IssueId int32 `protobuf:"varint,1,opt,name=issueId" json:"issueId,omitem pty"`
119 // ID of the project containing the issue.
120 ProjectId string `protobuf:"bytes,2,opt,name=projectId" json:"projectId, omitempty"`
121 }
122
123 func (m *IssueRef) Reset() { *m = IssueRef{} }
124 func (m *IssueRef) String() string { return proto.CompactTextString(m ) }
125 func (*IssueRef) ProtoMessage() {}
126 func (*IssueRef) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
127
128 // Request for Monorail.InsertIssue().
129 type InsertIssueRequest struct {
130 // Target project id.
131 ProjectId string `protobuf:"bytes,1,opt,name=projectId" json:"projectId, omitempty"`
132 // Definition of the issue.
133 // issue.id must be empty.
134 Issue *Issue `protobuf:"bytes,2,opt,name=issue" json:"issue,omitempty"`
135 // Whether to send email to participants.
136 SendEmail bool `protobuf:"varint,3,opt,name=sendEmail" json:"sendEmail,o mitempty"`
137 }
138
139 func (m *InsertIssueRequest) Reset() { *m = InsertIssueReques t{} }
140 func (m *InsertIssueRequest) String() string { return proto.CompactTe xtString(m) }
141 func (*InsertIssueRequest) ProtoMessage() {}
142 func (*InsertIssueRequest) Descriptor() ([]byte, []int) { return fileDescriptor0 , []int{2} }
143
144 func (m *InsertIssueRequest) GetIssue() *Issue {
145 if m != nil {
146 return m.Issue
147 }
148 return nil
149 }
150
151 // Response for Monorail.InsertIssue()
152 type InsertIssueResponse struct {
153 // Created issue.
154 Issue *Issue `protobuf:"bytes,1,opt,name=issue" json:"issue,omitempty"`
155 }
156
157 func (m *InsertIssueResponse) Reset() { *m = InsertIssueRespo nse{} }
158 func (m *InsertIssueResponse) String() string { return proto.CompactT extString(m) }
159 func (*InsertIssueResponse) ProtoMessage() {}
160 func (*InsertIssueResponse) Descriptor() ([]byte, []int) { return fileDescriptor 0, []int{3} }
161
162 func (m *InsertIssueResponse) GetIssue() *Issue {
163 if m != nil {
164 return m.Issue
165 }
166 return nil
167 }
168
169 // Request for Monorail.InsertComment()
170 type InsertCommentRequest struct {
171 // Definition of the comment.
172 Comment *InsertCommentRequest_Comment `protobuf:"bytes,1,opt,name=commen t" json:"comment,omitempty"`
173 // The reference to post the comment to.
174 Issue *IssueRef `protobuf:"bytes,2,opt,name=issue" json:"issue,omitempty "`
175 }
176
177 func (m *InsertCommentRequest) Reset() { *m = InsertCommentRe quest{} }
178 func (m *InsertCommentRequest) String() string { return proto.Compact TextString(m) }
179 func (*InsertCommentRequest) ProtoMessage() {}
180 func (*InsertCommentRequest) Descriptor() ([]byte, []int) { return fileDescripto r0, []int{4} }
181
182 func (m *InsertCommentRequest) GetComment() *InsertCommentRequest_Comment {
183 if m != nil {
184 return m.Comment
185 }
186 return nil
187 }
188
189 func (m *InsertCommentRequest) GetIssue() *IssueRef {
190 if m != nil {
191 return m.Issue
192 }
193 return nil
194 }
195
196 // Defines the comment.
197 // This message is partial.
198 // Derived from IssueCommentWrapper type in api_pb2_v1.py.
199 type InsertCommentRequest_Comment struct {
200 Content string `protobuf:"bytes,4,opt,name=content" json:"content,omite mpty"`
201 Updates *Update `protobuf:"bytes,8,opt,name=updates" json:"updates,omite mpty"`
202 }
203
204 func (m *InsertCommentRequest_Comment) Reset() { *m = InsertC ommentRequest_Comment{} }
205 func (m *InsertCommentRequest_Comment) String() string { return proto .CompactTextString(m) }
206 func (*InsertCommentRequest_Comment) ProtoMessage() {}
207 func (*InsertCommentRequest_Comment) Descriptor() ([]byte, []int) { return fileD escriptor0, []int{4, 0} }
208
209 func (m *InsertCommentRequest_Comment) GetUpdates() *Update {
210 if m != nil {
211 return m.Updates
212 }
213 return nil
214 }
215
216 type InsertCommentResponse struct {
217 }
218
219 func (m *InsertCommentResponse) Reset() { *m = InsertCommentR esponse{} }
220 func (m *InsertCommentResponse) String() string { return proto.Compac tTextString(m) }
221 func (*InsertCommentResponse) ProtoMessage() {}
222 func (*InsertCommentResponse) Descriptor() ([]byte, []int) { return fileDescript or0, []int{5} }
223
224 // Defines a mutation to an issue.
225 // This message is partial.
226 // Derived from Update type in api_pb2_v1.py.
227 type Update struct {
228 // If set, the new status of the issue.
229 Status string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty "`
230 }
231
232 func (m *Update) Reset() { *m = Update{} }
233 func (m *Update) String() string { return proto.CompactTextString(m) }
234 func (*Update) ProtoMessage() {}
235 func (*Update) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
236
237 // Identifies a Monorail user.
238 type AtomPerson struct {
239 // User email.
240 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
241 }
242
243 func (m *AtomPerson) Reset() { *m = AtomPerson{} }
244 func (m *AtomPerson) String() string { return proto.CompactTextString (m) }
245 func (*AtomPerson) ProtoMessage() {}
246 func (*AtomPerson) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{ 7} }
247
248 func init() {
249 proto.RegisterType((*Issue)(nil), "monorail.Issue")
250 proto.RegisterType((*IssueRef)(nil), "monorail.IssueRef")
251 proto.RegisterType((*InsertIssueRequest)(nil), "monorail.InsertIssueRequ est")
252 proto.RegisterType((*InsertIssueResponse)(nil), "monorail.InsertIssueRes ponse")
253 proto.RegisterType((*InsertCommentRequest)(nil), "monorail.InsertComment Request")
254 proto.RegisterType((*InsertCommentRequest_Comment)(nil), "monorail.Inser tCommentRequest.Comment")
255 proto.RegisterType((*InsertCommentResponse)(nil), "monorail.InsertCommen tResponse")
256 proto.RegisterType((*Update)(nil), "monorail.Update")
257 proto.RegisterType((*AtomPerson)(nil), "monorail.AtomPerson")
258 }
259
260 // Reference imports to suppress errors if they are not otherwise used.
261 var _ context.Context
262 var _ grpc.ClientConn
263
264 // This is a compile-time assertion to ensure that this generated file
265 // is compatible with the grpc package it is being compiled against.
266 const _ = grpc.SupportPackageIsVersion2
267
268 // Client API for Monorail service
269
270 type MonorailClient interface {
271 // Creates an issue.
272 InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.Ca llOption) (*InsertIssueResponse, error)
273 // Posts a comment to an issue. Can update issue attributes, such as sta tus.
274 InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grp c.CallOption) (*InsertCommentResponse, error)
275 }
276 type monorailPRPCClient struct {
277 client *prpccommon.Client
278 }
279
280 func NewMonorailPRPCClient(client *prpccommon.Client) MonorailClient {
281 return &monorailPRPCClient{client}
282 }
283
284 func (c *monorailPRPCClient) InsertIssue(ctx context.Context, in *InsertIssueReq uest, opts ...grpc.CallOption) (*InsertIssueResponse, error) {
285 out := new(InsertIssueResponse)
286 err := c.client.Call(ctx, "monorail.Monorail", "InsertIssue", in, out, o pts...)
287 if err != nil {
288 return nil, err
289 }
290 return out, nil
291 }
292
293 func (c *monorailPRPCClient) InsertComment(ctx context.Context, in *InsertCommen tRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error) {
294 out := new(InsertCommentResponse)
295 err := c.client.Call(ctx, "monorail.Monorail", "InsertComment", in, out, opts...)
296 if err != nil {
297 return nil, err
298 }
299 return out, nil
300 }
301
302 type monorailClient struct {
303 cc *grpc.ClientConn
304 }
305
306 func NewMonorailClient(cc *grpc.ClientConn) MonorailClient {
307 return &monorailClient{cc}
308 }
309
310 func (c *monorailClient) InsertIssue(ctx context.Context, in *InsertIssueRequest , opts ...grpc.CallOption) (*InsertIssueResponse, error) {
311 out := new(InsertIssueResponse)
312 err := grpc.Invoke(ctx, "/monorail.Monorail/InsertIssue", in, out, c.cc, opts...)
313 if err != nil {
314 return nil, err
315 }
316 return out, nil
317 }
318
319 func (c *monorailClient) InsertComment(ctx context.Context, in *InsertCommentReq uest, opts ...grpc.CallOption) (*InsertCommentResponse, error) {
320 out := new(InsertCommentResponse)
321 err := grpc.Invoke(ctx, "/monorail.Monorail/InsertComment", in, out, c.c c, opts...)
322 if err != nil {
323 return nil, err
324 }
325 return out, nil
326 }
327
328 // Server API for Monorail service
329
330 type MonorailServer interface {
331 // Creates an issue.
332 InsertIssue(context.Context, *InsertIssueRequest) (*InsertIssueResponse, error)
333 // Posts a comment to an issue. Can update issue attributes, such as sta tus.
334 InsertComment(context.Context, *InsertCommentRequest) (*InsertCommentRes ponse, error)
335 }
336
337 func RegisterMonorailServer(s prpc.Registrar, srv MonorailServer) {
338 s.RegisterService(&_Monorail_serviceDesc, srv)
339 }
340
341 func _Monorail_InsertIssue_Handler(srv interface{}, ctx context.Context, dec fun c(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, err or) {
342 in := new(InsertIssueRequest)
343 if err := dec(in); err != nil {
344 return nil, err
345 }
346 if interceptor == nil {
347 return srv.(MonorailServer).InsertIssue(ctx, in)
348 }
349 info := &grpc.UnaryServerInfo{
350 Server: srv,
351 FullMethod: "/monorail.Monorail/InsertIssue",
352 }
353 handler := func(ctx context.Context, req interface{}) (interface{}, erro r) {
354 return srv.(MonorailServer).InsertIssue(ctx, req.(*InsertIssueRe quest))
355 }
356 return interceptor(ctx, in, info, handler)
357 }
358
359 func _Monorail_InsertComment_Handler(srv interface{}, ctx context.Context, dec f unc(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, e rror) {
360 in := new(InsertCommentRequest)
361 if err := dec(in); err != nil {
362 return nil, err
363 }
364 if interceptor == nil {
365 return srv.(MonorailServer).InsertComment(ctx, in)
366 }
367 info := &grpc.UnaryServerInfo{
368 Server: srv,
369 FullMethod: "/monorail.Monorail/InsertComment",
370 }
371 handler := func(ctx context.Context, req interface{}) (interface{}, erro r) {
372 return srv.(MonorailServer).InsertComment(ctx, req.(*InsertComme ntRequest))
373 }
374 return interceptor(ctx, in, info, handler)
375 }
376
377 var _Monorail_serviceDesc = grpc.ServiceDesc{
378 ServiceName: "monorail.Monorail",
379 HandlerType: (*MonorailServer)(nil),
380 Methods: []grpc.MethodDesc{
381 {
382 MethodName: "InsertIssue",
383 Handler: _Monorail_InsertIssue_Handler,
384 },
385 {
386 MethodName: "InsertComment",
387 Handler: _Monorail_InsertComment_Handler,
388 },
389 },
390 Streams: []grpc.StreamDesc{},
391 }
392
393 var fileDescriptor0 = []byte{
394 // 478 bytes of a gzipped FileDescriptorProto
395 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x54, 0xcd, 0x8e, 0xd3, 0x30,
396 0x10, 0x26, 0xd9, 0x4d, 0x9a, 0x4c, 0x60, 0x81, 0x61, 0x01, 0xab, 0x5a, 0xa0, 0x8a, 0x00, 0xad,
397 0x10, 0xaa, 0x50, 0xb9, 0x72, 0xe0, 0x47, 0x1c, 0x2a, 0x81, 0x16, 0x59, 0xe2, 0x01, 0xd2, 0xc4,
398 0x88, 0x40, 0x63, 0x97, 0xd8, 0xd1, 0x8a, 0x77, 0xe2, 0xca, 0x93, 0xf0, 0x42, 0x38, 0xfe, 0xd9,
399 0xa4, 0x55, 0xb7, 0x37, 0x8f, 0xbf, 0x9f, 0x19, 0x7f, 0x19, 0x05, 0x4e, 0x1a, 0xc1, 0x45, 0x5b,
400 0xd4, 0xeb, 0xf9, 0xa6, 0x15, 0x4a, 0x60, 0xe2, 0xeb, 0xfc, 0x6f, 0x08, 0xd1, 0x52, 0xca, 0x8e,
401 0xe1, 0x4b, 0x88, 0x8b, 0x4e, 0x7d, 0x17, 0x2d, 0x09, 0x66, 0xc1, 0x79, 0xb6, 0x38, 0x9d, 0x5f,
402 0x89, 0xde, 0x29, 0xd1, 0x7c, 0x61, 0xad, 0x14, 0x9c, 0x3a, 0x0e, 0xbe, 0x82, 0x74, 0xb5, 0x16,
403 0xe5, 0x4f, 0x56, 0x5d, 0x70, 0x12, 0xce, 0x8e, 0xb4, 0x00, 0x07, 0x81, 0x71, 0xa4, 0xec, 0x1b,
404 0x1d, 0x48, 0xf8, 0x14, 0xc2, 0xb2, 0x24, 0xb1, 0xa1, 0xee, 0xf7, 0xd6, 0x38, 0xce, 0x20, 0xab,
405 0x98, 0x2c, 0xdb, 0x7a, 0xa3, 0x6a, 0xc1, 0x49, 0xa2, 0x47, 0x49, 0xe9, 0xf8, 0x0a, 0x4f, 0x20,
406 0xac, 0x2b, 0x92, 0x6a, 0x20, 0xa2, 0xfa, 0x84, 0x0f, 0x20, 0x5e, 0x17, 0x2b, 0xb6, 0x96, 0x24,
407 0xd3, 0xde, 0x29, 0x75, 0x15, 0xbe, 0x80, 0x48, 0x5c, 0x72, 0xd6, 0x92, 0x9b, 0x07, 0x9e, 0x63,
408 0x29, 0xbd, 0x87, 0x54, 0x85, 0xea, 0x24, 0xb9, 0x6b, 0x1a, 0xba, 0x0a, 0x09, 0x4c, 0x64, 0xd7,
409 0x34, 0x45, 0xfb, 0x9b, 0xa0, 0x01, 0x7c, 0x99, 0xbf, 0x87, 0xc4, 0x3f, 0xb2, 0x67, 0xd5, 0xfd,
410 0x79, 0x59, 0x99, 0xe8, 0x22, 0xea, 0x4b, 0x3c, 0x83, 0x54, 0x07, 0xfe, 0x83, 0x95, 0x4a, 0x63,
411 0xa1, 0x71, 0x18, 0x2e, 0xf2, 0x4b, 0xc0, 0x25, 0x97, 0xac, 0x55, 0xce, 0xe9, 0x57, 0xc7, 0xa4,
412 0xda, 0xd6, 0x04, 0x3b, 0x1a, 0x7c, 0x06, 0x91, 0x31, 0x37, 0x6e, 0xd9, 0xe2, 0xf6, 0x6e, 0xe6,
413 0x16, 0xed, 0x4d, 0x24, 0xe3, 0xd5, 0xc7, 0x46, 0x23, 0xe4, 0x48, 0x53, 0x13, 0x3a, 0x5c, 0xe4,
414 0x6f, 0xe0, 0xde, 0x56, 0x63, 0xb9, 0x11, 0xba, 0x1c, 0xbc, 0x83, 0x43, 0xde, 0xf9, 0xbf, 0x00,
415 0x4e, 0xad, 0xfc, 0x83, 0x68, 0x1a, 0xc6, 0x95, 0x9f, 0xfc, 0x2d, 0x4c, 0x4a, 0x7b, 0xe3, 0x1c,
416 0x9e, 0x8f, 0x1c, 0xf6, 0x08, 0xe6, 0xbe, 0xf4, 0x32, 0x3c, 0xdf, 0x7e, 0xdd, 0xbe, 0x8d, 0xb2,
417 0x84, 0xe9, 0x05, 0x4c, 0x9c, 0xba, 0x8f, 0xbf, 0x14, 0x5c, 0xf5, 0x6d, 0x8f, 0xed, 0x47, 0x72,
418 0xa5, 0x5e, 0x81, 0x49, 0xb7, 0xa9, 0x0a, 0xc5, 0xa4, 0x59, 0xa4, 0x6c, 0x71, 0x67, 0x30, 0xfc,
419 0x6a, 0x00, 0xea, 0x09, 0xf9, 0x43, 0xb8, 0xbf, 0x33, 0xa3, 0x4d, 0x25, 0x9f, 0x41, 0x6c, 0xb9,
420 0xa3, 0x2d, 0x09, 0xc7, 0x5b, 0xa2, 0x19, 0x30, 0xac, 0x14, 0x22, 0x1c, 0xf3, 0xa2, 0x61, 0xee,
421 0xd3, 0x99, 0xf3, 0xe2, 0x4f, 0x00, 0xc9, 0x67, 0xd7, 0x19, 0x3f, 0x41, 0x36, 0x4a, 0x1f, 0xcf,
422 0x76, 0x43, 0x1a, 0x6f, 0xc3, 0xf4, 0xd1, 0x35, 0xa8, 0x1b, 0xee, 0x06, 0x52, 0xb8, 0xb5, 0x35,
423 0x37, 0x3e, 0x3e, 0x1c, 0xfa, 0xf4, 0xc9, 0xb5, 0xb8, 0xf7, 0x5c, 0xc5, 0xe6, 0x2f, 0xf1, 0xfa,
424 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf7, 0xf4, 0xf3, 0x9c, 0x37, 0x04, 0x00, 0x00,
425 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698