| OLD | NEW |
| 1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
| 2 // source: monorail.proto | 2 // source: monorail.proto |
| 3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
| 4 | 4 |
| 5 /* | 5 /* |
| 6 Package monorail is a generated protocol buffer package. | 6 Package monorail is a generated protocol buffer package. |
| 7 | 7 |
| 8 It is generated from these files: | 8 It is generated from these files: |
| 9 monorail.proto | 9 monorail.proto |
| 10 | 10 |
| 11 It has these top-level messages: | 11 It has these top-level messages: |
| 12 Issue | 12 Issue |
| 13 IssueRef | 13 IssueRef |
| 14 InsertIssueRequest | 14 InsertIssueRequest |
| 15 InsertIssueResponse | 15 InsertIssueResponse |
| 16 InsertCommentRequest | 16 InsertCommentRequest |
| 17 InsertCommentResponse | 17 InsertCommentResponse |
| 18 IssuesListRequest |
| 19 IssuesListResponse |
| 18 Update | 20 Update |
| 19 AtomPerson | 21 AtomPerson |
| 20 */ | 22 */ |
| 21 package monorail | 23 package monorail |
| 22 | 24 |
| 23 import prpccommon "github.com/luci/luci-go/common/prpc" | 25 import prpccommon "github.com/luci/luci-go/common/prpc" |
| 24 import prpc "github.com/luci/luci-go/server/prpc" | 26 import prpc "github.com/luci/luci-go/server/prpc" |
| 25 | 27 |
| 26 import proto "github.com/golang/protobuf/proto" | 28 import proto "github.com/golang/protobuf/proto" |
| 27 import fmt "fmt" | 29 import fmt "fmt" |
| 28 import math "math" | 30 import math "math" |
| 29 | 31 |
| 30 import ( | 32 import ( |
| 31 context "golang.org/x/net/context" | 33 context "golang.org/x/net/context" |
| 32 grpc "google.golang.org/grpc" | 34 grpc "google.golang.org/grpc" |
| 33 ) | 35 ) |
| 34 | 36 |
| 35 // Reference imports to suppress errors if they are not otherwise used. | 37 // Reference imports to suppress errors if they are not otherwise used. |
| 36 var _ = proto.Marshal | 38 var _ = proto.Marshal |
| 37 var _ = fmt.Errorf | 39 var _ = fmt.Errorf |
| 38 var _ = math.Inf | 40 var _ = math.Inf |
| 39 | 41 |
| 40 // This is a compile-time assertion to ensure that this generated file | 42 // This is a compile-time assertion to ensure that this generated file |
| 41 // is compatible with the proto package it is being compiled against. | 43 // is compatible with the proto package it is being compiled against. |
| 42 // A compilation error at this line likely means your copy of the | 44 // A compilation error at this line likely means your copy of the |
| 43 // proto package needs to be updated. | 45 // proto package needs to be updated. |
| 44 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package | 46 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| 45 | 47 |
| 48 type IssuesListRequest_CannedQuery int32 |
| 49 |
| 50 const ( |
| 51 IssuesListRequest_ALL IssuesListRequest_CannedQuery = 0 |
| 52 IssuesListRequest_NEW IssuesListRequest_CannedQuery = 1 |
| 53 IssuesListRequest_OPEN IssuesListRequest_CannedQuery = 2 |
| 54 IssuesListRequest_OWNED IssuesListRequest_CannedQuery = 3 |
| 55 IssuesListRequest_REPORTED IssuesListRequest_CannedQuery = 4 |
| 56 IssuesListRequest_STARRED IssuesListRequest_CannedQuery = 5 |
| 57 IssuesListRequest_TO_VERIFY IssuesListRequest_CannedQuery = 6 |
| 58 ) |
| 59 |
| 60 var IssuesListRequest_CannedQuery_name = map[int32]string{ |
| 61 0: "ALL", |
| 62 1: "NEW", |
| 63 2: "OPEN", |
| 64 3: "OWNED", |
| 65 4: "REPORTED", |
| 66 5: "STARRED", |
| 67 6: "TO_VERIFY", |
| 68 } |
| 69 var IssuesListRequest_CannedQuery_value = map[string]int32{ |
| 70 "ALL": 0, |
| 71 "NEW": 1, |
| 72 "OPEN": 2, |
| 73 "OWNED": 3, |
| 74 "REPORTED": 4, |
| 75 "STARRED": 5, |
| 76 "TO_VERIFY": 6, |
| 77 } |
| 78 |
| 79 func (x IssuesListRequest_CannedQuery) String() string { |
| 80 return proto.EnumName(IssuesListRequest_CannedQuery_name, int32(x)) |
| 81 } |
| 82 func (IssuesListRequest_CannedQuery) EnumDescriptor() ([]byte, []int) { |
| 83 return fileDescriptor0, []int{6, 0} |
| 84 } |
| 85 |
| 46 // A monorail issue. | 86 // A monorail issue. |
| 47 type Issue struct { | 87 type Issue struct { |
| 48 // Reporter of the issue. | 88 // Reporter of the issue. |
| 49 Author *AtomPerson `protobuf:"bytes,1,opt,name=author" json:"author,omit
empty"` | 89 Author *AtomPerson `protobuf:"bytes,1,opt,name=author" json:"author,omit
empty"` |
| 50 // Issues that must be fixed before this one can be fixed. | 90 // Issues that must be fixed before this one can be fixed. |
| 51 BlockedOn []*IssueRef `protobuf:"bytes,2,rep,name=blockedOn" json:"block
edOn,omitempty"` | 91 BlockedOn []*IssueRef `protobuf:"bytes,2,rep,name=blockedOn" json:"block
edOn,omitempty"` |
| 52 // People participating in the issue discussion. | 92 // People participating in the issue discussion. |
| 53 Cc []*AtomPerson `protobuf:"bytes,6,rep,name=cc" json:"cc,omitempty"` | 93 Cc []*AtomPerson `protobuf:"bytes,6,rep,name=cc" json:"cc,omitempty"` |
| 54 // The text body of the issue. | 94 // The text body of the issue. |
| 55 Description string `protobuf:"bytes,8,opt,name=description" json:"descri
ption,omitempty"` | 95 Description string `protobuf:"bytes,8,opt,name=description" json:"descri
ption,omitempty"` |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 } | 256 } |
| 217 | 257 |
| 218 type InsertCommentResponse struct { | 258 type InsertCommentResponse struct { |
| 219 } | 259 } |
| 220 | 260 |
| 221 func (m *InsertCommentResponse) Reset() { *m = InsertCommentR
esponse{} } | 261 func (m *InsertCommentResponse) Reset() { *m = InsertCommentR
esponse{} } |
| 222 func (m *InsertCommentResponse) String() string { return proto.Compac
tTextString(m) } | 262 func (m *InsertCommentResponse) String() string { return proto.Compac
tTextString(m) } |
| 223 func (*InsertCommentResponse) ProtoMessage() {} | 263 func (*InsertCommentResponse) ProtoMessage() {} |
| 224 func (*InsertCommentResponse) Descriptor() ([]byte, []int) { return fileDescript
or0, []int{5} } | 264 func (*InsertCommentResponse) Descriptor() ([]byte, []int) { return fileDescript
or0, []int{5} } |
| 225 | 265 |
| 266 type IssuesListRequest struct { |
| 267 ProjectId string `protobuf:"bytes,1,opt,n
ame=projectId" json:"projectId,omitempty"` |
| 268 AdditionalProject []string `protobuf:"bytes,2,rep,n
ame=additionalProject" json:"additionalProject,omitempty"` |
| 269 Can IssuesListRequest_CannedQuery `protobuf:"varint,3,opt,
name=can,enum=monorail.IssuesListRequest_CannedQuery" json:"can,omitempty"` |
| 270 Label string `protobuf:"bytes,4,opt,n
ame=label" json:"label,omitempty"` |
| 271 MaxResults int32 `protobuf:"varint,5,opt,
name=maxResults" json:"maxResults,omitempty"` |
| 272 Owner string `protobuf:"bytes,6,opt,n
ame=owner" json:"owner,omitempty"` |
| 273 PublishedMax int64 `protobuf:"varint,7,opt,
name=publishedMax" json:"publishedMax,omitempty"` |
| 274 PublishedMin int64 `protobuf:"varint,8,opt,
name=publishedMin" json:"publishedMin,omitempty"` |
| 275 Q string `protobuf:"bytes,9,opt,n
ame=q" json:"q,omitempty"` |
| 276 Sort string `protobuf:"bytes,10,opt,
name=sort" json:"sort,omitempty"` |
| 277 StartIndex int32 `protobuf:"varint,11,opt
,name=startIndex" json:"startIndex,omitempty"` |
| 278 Status string `protobuf:"bytes,12,opt,
name=status" json:"status,omitempty"` |
| 279 UpdatedMax int64 `protobuf:"varint,13,opt
,name=updatedMax" json:"updatedMax,omitempty"` |
| 280 UpdatedMin int64 `protobuf:"varint,14,opt
,name=updatedMin" json:"updatedMin,omitempty"` |
| 281 } |
| 282 |
| 283 func (m *IssuesListRequest) Reset() { *m = IssuesListRequest{
} } |
| 284 func (m *IssuesListRequest) String() string { return proto.CompactTex
tString(m) } |
| 285 func (*IssuesListRequest) ProtoMessage() {} |
| 286 func (*IssuesListRequest) Descriptor() ([]byte, []int) { return fileDescriptor0,
[]int{6} } |
| 287 |
| 288 type IssuesListResponse struct { |
| 289 // error = messages.MessageField(ErrorMessage, 1) |
| 290 Items []*Issue `protobuf:"bytes,2,rep,name=items" json:"items,omi
tempty"` |
| 291 TotalResults int32 `protobuf:"varint,3,opt,name=totalResults" json:"t
otalResults,omitempty"` |
| 292 Kind string `protobuf:"bytes,4,opt,name=kind" json:"kind,omite
mpty"` |
| 293 } |
| 294 |
| 295 func (m *IssuesListResponse) Reset() { *m = IssuesListRespons
e{} } |
| 296 func (m *IssuesListResponse) String() string { return proto.CompactTe
xtString(m) } |
| 297 func (*IssuesListResponse) ProtoMessage() {} |
| 298 func (*IssuesListResponse) Descriptor() ([]byte, []int) { return fileDescriptor0
, []int{7} } |
| 299 |
| 300 func (m *IssuesListResponse) GetItems() []*Issue { |
| 301 if m != nil { |
| 302 return m.Items |
| 303 } |
| 304 return nil |
| 305 } |
| 306 |
| 226 // Defines a mutation to an issue. | 307 // Defines a mutation to an issue. |
| 227 // This message is partial. | 308 // This message is partial. |
| 228 // Derived from Update type in api_pb2_v1.py. | 309 // Derived from Update type in api_pb2_v1.py. |
| 229 type Update struct { | 310 type Update struct { |
| 230 // If set, the new status of the issue. | 311 // If set, the new status of the issue. |
| 231 Status string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty
"` | 312 Status string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty
"` |
| 232 } | 313 } |
| 233 | 314 |
| 234 func (m *Update) Reset() { *m = Update{} } | 315 func (m *Update) Reset() { *m = Update{} } |
| 235 func (m *Update) String() string { return proto.CompactTextString(m)
} | 316 func (m *Update) String() string { return proto.CompactTextString(m)
} |
| 236 func (*Update) ProtoMessage() {} | 317 func (*Update) ProtoMessage() {} |
| 237 func (*Update) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } | 318 func (*Update) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } |
| 238 | 319 |
| 239 // Identifies a Monorail user. | 320 // Identifies a Monorail user. |
| 240 type AtomPerson struct { | 321 type AtomPerson struct { |
| 241 // User email. | 322 // User email. |
| 242 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` | 323 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` |
| 243 } | 324 } |
| 244 | 325 |
| 245 func (m *AtomPerson) Reset() { *m = AtomPerson{} } | 326 func (m *AtomPerson) Reset() { *m = AtomPerson{} } |
| 246 func (m *AtomPerson) String() string { return proto.CompactTextString
(m) } | 327 func (m *AtomPerson) String() string { return proto.CompactTextString
(m) } |
| 247 func (*AtomPerson) ProtoMessage() {} | 328 func (*AtomPerson) ProtoMessage() {} |
| 248 func (*AtomPerson) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{
7} } | 329 func (*AtomPerson) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{
9} } |
| 249 | 330 |
| 250 func init() { | 331 func init() { |
| 251 proto.RegisterType((*Issue)(nil), "monorail.Issue") | 332 proto.RegisterType((*Issue)(nil), "monorail.Issue") |
| 252 proto.RegisterType((*IssueRef)(nil), "monorail.IssueRef") | 333 proto.RegisterType((*IssueRef)(nil), "monorail.IssueRef") |
| 253 proto.RegisterType((*InsertIssueRequest)(nil), "monorail.InsertIssueRequ
est") | 334 proto.RegisterType((*InsertIssueRequest)(nil), "monorail.InsertIssueRequ
est") |
| 254 proto.RegisterType((*InsertIssueResponse)(nil), "monorail.InsertIssueRes
ponse") | 335 proto.RegisterType((*InsertIssueResponse)(nil), "monorail.InsertIssueRes
ponse") |
| 255 proto.RegisterType((*InsertCommentRequest)(nil), "monorail.InsertComment
Request") | 336 proto.RegisterType((*InsertCommentRequest)(nil), "monorail.InsertComment
Request") |
| 256 proto.RegisterType((*InsertCommentRequest_Comment)(nil), "monorail.Inser
tCommentRequest.Comment") | 337 proto.RegisterType((*InsertCommentRequest_Comment)(nil), "monorail.Inser
tCommentRequest.Comment") |
| 257 proto.RegisterType((*InsertCommentResponse)(nil), "monorail.InsertCommen
tResponse") | 338 proto.RegisterType((*InsertCommentResponse)(nil), "monorail.InsertCommen
tResponse") |
| 339 proto.RegisterType((*IssuesListRequest)(nil), "monorail.IssuesListReques
t") |
| 340 proto.RegisterType((*IssuesListResponse)(nil), "monorail.IssuesListRespo
nse") |
| 258 proto.RegisterType((*Update)(nil), "monorail.Update") | 341 proto.RegisterType((*Update)(nil), "monorail.Update") |
| 259 proto.RegisterType((*AtomPerson)(nil), "monorail.AtomPerson") | 342 proto.RegisterType((*AtomPerson)(nil), "monorail.AtomPerson") |
| 343 proto.RegisterEnum("monorail.IssuesListRequest_CannedQuery", IssuesListR
equest_CannedQuery_name, IssuesListRequest_CannedQuery_value) |
| 260 } | 344 } |
| 261 | 345 |
| 262 // Reference imports to suppress errors if they are not otherwise used. | 346 // Reference imports to suppress errors if they are not otherwise used. |
| 263 var _ context.Context | 347 var _ context.Context |
| 264 var _ grpc.ClientConn | 348 var _ grpc.ClientConn |
| 265 | 349 |
| 266 // This is a compile-time assertion to ensure that this generated file | 350 // This is a compile-time assertion to ensure that this generated file |
| 267 // is compatible with the grpc package it is being compiled against. | 351 // is compatible with the grpc package it is being compiled against. |
| 268 const _ = grpc.SupportPackageIsVersion2 | 352 const _ = grpc.SupportPackageIsVersion2 |
| 269 | 353 |
| 270 // Client API for Monorail service | 354 // Client API for Monorail service |
| 271 | 355 |
| 272 type MonorailClient interface { | 356 type MonorailClient interface { |
| 273 // Creates an issue. | 357 // Creates an issue. |
| 274 InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.Ca
llOption) (*InsertIssueResponse, error) | 358 InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.Ca
llOption) (*InsertIssueResponse, error) |
| 275 // Posts a comment to an issue. Can update issue attributes, such as sta
tus. | 359 // Posts a comment to an issue. Can update issue attributes, such as sta
tus. |
| 276 InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grp
c.CallOption) (*InsertCommentResponse, error) | 360 InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grp
c.CallOption) (*InsertCommentResponse, error) |
| 361 // Lists issues from a project. |
| 362 IssuesList(ctx context.Context, in *IssuesListRequest, opts ...grpc.Call
Option) (*IssuesListResponse, error) |
| 277 } | 363 } |
| 278 type monorailPRPCClient struct { | 364 type monorailPRPCClient struct { |
| 279 client *prpccommon.Client | 365 client *prpccommon.Client |
| 280 } | 366 } |
| 281 | 367 |
| 282 func NewMonorailPRPCClient(client *prpccommon.Client) MonorailClient { | 368 func NewMonorailPRPCClient(client *prpccommon.Client) MonorailClient { |
| 283 return &monorailPRPCClient{client} | 369 return &monorailPRPCClient{client} |
| 284 } | 370 } |
| 285 | 371 |
| 286 func (c *monorailPRPCClient) InsertIssue(ctx context.Context, in *InsertIssueReq
uest, opts ...grpc.CallOption) (*InsertIssueResponse, error) { | 372 func (c *monorailPRPCClient) InsertIssue(ctx context.Context, in *InsertIssueReq
uest, opts ...grpc.CallOption) (*InsertIssueResponse, error) { |
| 287 out := new(InsertIssueResponse) | 373 out := new(InsertIssueResponse) |
| 288 err := c.client.Call(ctx, "monorail.Monorail", "InsertIssue", in, out, o
pts...) | 374 err := c.client.Call(ctx, "monorail.Monorail", "InsertIssue", in, out, o
pts...) |
| 289 if err != nil { | 375 if err != nil { |
| 290 return nil, err | 376 return nil, err |
| 291 } | 377 } |
| 292 return out, nil | 378 return out, nil |
| 293 } | 379 } |
| 294 | 380 |
| 295 func (c *monorailPRPCClient) InsertComment(ctx context.Context, in *InsertCommen
tRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error) { | 381 func (c *monorailPRPCClient) InsertComment(ctx context.Context, in *InsertCommen
tRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error) { |
| 296 out := new(InsertCommentResponse) | 382 out := new(InsertCommentResponse) |
| 297 err := c.client.Call(ctx, "monorail.Monorail", "InsertComment", in, out,
opts...) | 383 err := c.client.Call(ctx, "monorail.Monorail", "InsertComment", in, out,
opts...) |
| 298 if err != nil { | 384 if err != nil { |
| 299 return nil, err | 385 return nil, err |
| 300 } | 386 } |
| 301 return out, nil | 387 return out, nil |
| 302 } | 388 } |
| 303 | 389 |
| 390 func (c *monorailPRPCClient) IssuesList(ctx context.Context, in *IssuesListReque
st, opts ...grpc.CallOption) (*IssuesListResponse, error) { |
| 391 out := new(IssuesListResponse) |
| 392 err := c.client.Call(ctx, "monorail.Monorail", "IssuesList", in, out, op
ts...) |
| 393 if err != nil { |
| 394 return nil, err |
| 395 } |
| 396 return out, nil |
| 397 } |
| 398 |
| 304 type monorailClient struct { | 399 type monorailClient struct { |
| 305 cc *grpc.ClientConn | 400 cc *grpc.ClientConn |
| 306 } | 401 } |
| 307 | 402 |
| 308 func NewMonorailClient(cc *grpc.ClientConn) MonorailClient { | 403 func NewMonorailClient(cc *grpc.ClientConn) MonorailClient { |
| 309 return &monorailClient{cc} | 404 return &monorailClient{cc} |
| 310 } | 405 } |
| 311 | 406 |
| 312 func (c *monorailClient) InsertIssue(ctx context.Context, in *InsertIssueRequest
, opts ...grpc.CallOption) (*InsertIssueResponse, error) { | 407 func (c *monorailClient) InsertIssue(ctx context.Context, in *InsertIssueRequest
, opts ...grpc.CallOption) (*InsertIssueResponse, error) { |
| 313 out := new(InsertIssueResponse) | 408 out := new(InsertIssueResponse) |
| 314 err := grpc.Invoke(ctx, "/monorail.Monorail/InsertIssue", in, out, c.cc,
opts...) | 409 err := grpc.Invoke(ctx, "/monorail.Monorail/InsertIssue", in, out, c.cc,
opts...) |
| 315 if err != nil { | 410 if err != nil { |
| 316 return nil, err | 411 return nil, err |
| 317 } | 412 } |
| 318 return out, nil | 413 return out, nil |
| 319 } | 414 } |
| 320 | 415 |
| 321 func (c *monorailClient) InsertComment(ctx context.Context, in *InsertCommentReq
uest, opts ...grpc.CallOption) (*InsertCommentResponse, error) { | 416 func (c *monorailClient) InsertComment(ctx context.Context, in *InsertCommentReq
uest, opts ...grpc.CallOption) (*InsertCommentResponse, error) { |
| 322 out := new(InsertCommentResponse) | 417 out := new(InsertCommentResponse) |
| 323 err := grpc.Invoke(ctx, "/monorail.Monorail/InsertComment", in, out, c.c
c, opts...) | 418 err := grpc.Invoke(ctx, "/monorail.Monorail/InsertComment", in, out, c.c
c, opts...) |
| 324 if err != nil { | 419 if err != nil { |
| 325 return nil, err | 420 return nil, err |
| 326 } | 421 } |
| 327 return out, nil | 422 return out, nil |
| 328 } | 423 } |
| 329 | 424 |
| 425 func (c *monorailClient) IssuesList(ctx context.Context, in *IssuesListRequest,
opts ...grpc.CallOption) (*IssuesListResponse, error) { |
| 426 out := new(IssuesListResponse) |
| 427 err := grpc.Invoke(ctx, "/monorail.Monorail/IssuesList", in, out, c.cc,
opts...) |
| 428 if err != nil { |
| 429 return nil, err |
| 430 } |
| 431 return out, nil |
| 432 } |
| 433 |
| 330 // Server API for Monorail service | 434 // Server API for Monorail service |
| 331 | 435 |
| 332 type MonorailServer interface { | 436 type MonorailServer interface { |
| 333 // Creates an issue. | 437 // Creates an issue. |
| 334 InsertIssue(context.Context, *InsertIssueRequest) (*InsertIssueResponse,
error) | 438 InsertIssue(context.Context, *InsertIssueRequest) (*InsertIssueResponse,
error) |
| 335 // Posts a comment to an issue. Can update issue attributes, such as sta
tus. | 439 // Posts a comment to an issue. Can update issue attributes, such as sta
tus. |
| 336 InsertComment(context.Context, *InsertCommentRequest) (*InsertCommentRes
ponse, error) | 440 InsertComment(context.Context, *InsertCommentRequest) (*InsertCommentRes
ponse, error) |
| 441 // Lists issues from a project. |
| 442 IssuesList(context.Context, *IssuesListRequest) (*IssuesListResponse, er
ror) |
| 337 } | 443 } |
| 338 | 444 |
| 339 func RegisterMonorailServer(s prpc.Registrar, srv MonorailServer) { | 445 func RegisterMonorailServer(s prpc.Registrar, srv MonorailServer) { |
| 340 s.RegisterService(&_Monorail_serviceDesc, srv) | 446 s.RegisterService(&_Monorail_serviceDesc, srv) |
| 341 } | 447 } |
| 342 | 448 |
| 343 func _Monorail_InsertIssue_Handler(srv interface{}, ctx context.Context, dec fun
c(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, err
or) { | 449 func _Monorail_InsertIssue_Handler(srv interface{}, ctx context.Context, dec fun
c(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, err
or) { |
| 344 in := new(InsertIssueRequest) | 450 in := new(InsertIssueRequest) |
| 345 if err := dec(in); err != nil { | 451 if err := dec(in); err != nil { |
| 346 return nil, err | 452 return nil, err |
| (...skipping 22 matching lines...) Expand all Loading... |
| 369 info := &grpc.UnaryServerInfo{ | 475 info := &grpc.UnaryServerInfo{ |
| 370 Server: srv, | 476 Server: srv, |
| 371 FullMethod: "/monorail.Monorail/InsertComment", | 477 FullMethod: "/monorail.Monorail/InsertComment", |
| 372 } | 478 } |
| 373 handler := func(ctx context.Context, req interface{}) (interface{}, erro
r) { | 479 handler := func(ctx context.Context, req interface{}) (interface{}, erro
r) { |
| 374 return srv.(MonorailServer).InsertComment(ctx, req.(*InsertComme
ntRequest)) | 480 return srv.(MonorailServer).InsertComment(ctx, req.(*InsertComme
ntRequest)) |
| 375 } | 481 } |
| 376 return interceptor(ctx, in, info, handler) | 482 return interceptor(ctx, in, info, handler) |
| 377 } | 483 } |
| 378 | 484 |
| 485 func _Monorail_IssuesList_Handler(srv interface{}, ctx context.Context, dec func
(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, erro
r) { |
| 486 in := new(IssuesListRequest) |
| 487 if err := dec(in); err != nil { |
| 488 return nil, err |
| 489 } |
| 490 if interceptor == nil { |
| 491 return srv.(MonorailServer).IssuesList(ctx, in) |
| 492 } |
| 493 info := &grpc.UnaryServerInfo{ |
| 494 Server: srv, |
| 495 FullMethod: "/monorail.Monorail/IssuesList", |
| 496 } |
| 497 handler := func(ctx context.Context, req interface{}) (interface{}, erro
r) { |
| 498 return srv.(MonorailServer).IssuesList(ctx, req.(*IssuesListRequ
est)) |
| 499 } |
| 500 return interceptor(ctx, in, info, handler) |
| 501 } |
| 502 |
| 379 var _Monorail_serviceDesc = grpc.ServiceDesc{ | 503 var _Monorail_serviceDesc = grpc.ServiceDesc{ |
| 380 ServiceName: "monorail.Monorail", | 504 ServiceName: "monorail.Monorail", |
| 381 HandlerType: (*MonorailServer)(nil), | 505 HandlerType: (*MonorailServer)(nil), |
| 382 Methods: []grpc.MethodDesc{ | 506 Methods: []grpc.MethodDesc{ |
| 383 { | 507 { |
| 384 MethodName: "InsertIssue", | 508 MethodName: "InsertIssue", |
| 385 Handler: _Monorail_InsertIssue_Handler, | 509 Handler: _Monorail_InsertIssue_Handler, |
| 386 }, | 510 }, |
| 387 { | 511 { |
| 388 MethodName: "InsertComment", | 512 MethodName: "InsertComment", |
| 389 Handler: _Monorail_InsertComment_Handler, | 513 Handler: _Monorail_InsertComment_Handler, |
| 390 }, | 514 }, |
| 515 { |
| 516 MethodName: "IssuesList", |
| 517 Handler: _Monorail_IssuesList_Handler, |
| 518 }, |
| 391 }, | 519 }, |
| 392 Streams: []grpc.StreamDesc{}, | 520 Streams: []grpc.StreamDesc{}, |
| 393 } | 521 } |
| 394 | 522 |
| 395 var fileDescriptor0 = []byte{ | 523 var fileDescriptor0 = []byte{ |
| 396 » // 491 bytes of a gzipped FileDescriptorProto | 524 » // 805 bytes of a gzipped FileDescriptorProto |
| 397 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x54,
0xdd, 0x8a, 0xd4, 0x30, | 525 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x55,
0xcd, 0x6e, 0xe3, 0x36, |
| 398 » 0x14, 0xb6, 0xdd, 0x6d, 0xa7, 0x3d, 0xd5, 0x55, 0x8f, 0xab, 0x86, 0x61,
0x5d, 0x87, 0xa2, 0xb2, | 526 » 0x10, 0x8e, 0x6c, 0xcb, 0xb6, 0x46, 0x8e, 0xeb, 0xb0, 0x69, 0x2b, 0xb8,
0x69, 0x6a, 0x08, 0xfd, |
| 399 » 0x88, 0x0c, 0x32, 0xde, 0x7a, 0xe1, 0x0f, 0x5e, 0x0c, 0x28, 0x2b, 0x01,
0x1f, 0xa0, 0xd3, 0x46, | 527 » 0x09, 0x8a, 0xc0, 0x28, 0xdc, 0x53, 0x81, 0x1e, 0x9a, 0xa6, 0x2e, 0x60,
0xc0, 0x89, 0x5d, 0x36, |
| 400 » 0xac, 0x4e, 0x92, 0xb1, 0x49, 0x59, 0x7c, 0x27, 0xdf, 0x46, 0x7c, 0x1f,
0xd3, 0x34, 0xb1, 0x9d, | 528 » 0x6d, 0xd0, 0xcb, 0x2e, 0x64, 0x89, 0x8b, 0x68, 0x23, 0x91, 0x8e, 0x48,
0x21, 0xc9, 0x1b, 0xed, |
| 401 » 0x61, 0x76, 0xee, 0x72, 0xf2, 0xfd, 0xe4, 0xf4, 0x3b, 0x87, 0xc2, 0x09,
0x97, 0x42, 0x36, 0x45, | 529 » 0xfb, 0x2c, 0xf6, 0x59, 0xf6, 0xba, 0x24, 0x25, 0x45, 0x92, 0xd7, 0x31,
0xf6, 0xc6, 0x99, 0x6f, |
| 402 » 0xbd, 0x9e, 0x6f, 0x1a, 0xa9, 0x25, 0x26, 0xbe, 0xce, 0xff, 0x86, 0x10,
0x2d, 0x95, 0x6a, 0x19, | 530 » 0xe6, 0xd3, 0x70, 0x66, 0x3e, 0x0a, 0xfa, 0x31, 0xa3, 0x2c, 0xf1, 0xc2,
0x68, 0xbc, 0x4e, 0x98, |
| 403 » 0xbe, 0x80, 0xb8, 0x68, 0xf5, 0x37, 0xd9, 0x90, 0x60, 0x16, 0x5c, 0x64,
0x8b, 0xd3, 0xf9, 0x7f, | 531 » 0x60, 0xa8, 0x5b, 0xd8, 0xee, 0xbb, 0x06, 0x98, 0x33, 0xce, 0x53, 0x82,
0x4e, 0xa1, 0xed, 0xa5, |
| 404 » 0xd1, 0x5b, 0x2d, 0xf9, 0x67, 0xd6, 0x28, 0x29, 0xa8, 0xe3, 0xe0, 0x4b,
0x48, 0x57, 0x6b, 0x59, | 532 » 0xe2, 0x86, 0x25, 0x8e, 0x31, 0x32, 0x4e, 0xec, 0xc9, 0xe1, 0xf8, 0x29,
0xe9, 0x4c, 0xb0, 0x78, |
| 405 » 0xfe, 0x60, 0xd5, 0xa5, 0x20, 0xe1, 0xec, 0xc8, 0x08, 0x70, 0x10, 0x58,
0x47, 0xca, 0xbe, 0xd2, | 533 » 0x49, 0x12, 0xce, 0x28, 0xce, 0x63, 0xd0, 0xcf, 0x60, 0xad, 0x22, 0xe6,
0xdf, 0x92, 0x60, 0x41, |
| 406 » 0x81, 0x84, 0x4f, 0x20, 0x2c, 0x4b, 0x12, 0x5b, 0xea, 0x7e, 0x6f, 0x83,
0xe3, 0x0c, 0xb2, 0x8a, | 534 » 0x9d, 0xc6, 0xa8, 0x29, 0x13, 0x50, 0x99, 0xa0, 0x19, 0x31, 0x79, 0x85,
0xcb, 0x20, 0xf4, 0x1d, |
| 407 » 0xa9, 0xb2, 0xa9, 0x37, 0xba, 0x96, 0x82, 0x24, 0xa6, 0x95, 0x94, 0x8e,
0xaf, 0xf0, 0x04, 0xc2, | 535 » 0x34, 0x7c, 0xdf, 0x69, 0xeb, 0xd0, 0xed, 0xdc, 0x12, 0x47, 0x23, 0xb0,
0x03, 0xc2, 0xfd, 0x24, |
| 408 » 0xba, 0x22, 0xa9, 0x01, 0x22, 0x6a, 0x4e, 0x78, 0x0e, 0x50, 0x4a, 0xbe,
0x91, 0x82, 0x09, 0xad, | 536 » 0x5c, 0x8b, 0x90, 0x51, 0xa7, 0x2b, 0x4b, 0xb1, 0x70, 0xd5, 0x85, 0xfa,
0xd0, 0x08, 0x03, 0xc7, |
| 409 » 0x08, 0x18, 0xff, 0x94, 0x8e, 0x6e, 0xf0, 0x01, 0xc4, 0xeb, 0x62, 0xc5,
0xd6, 0x8a, 0x64, 0x16, | 537 » 0x92, 0x80, 0x89, 0xe5, 0x09, 0x1d, 0x03, 0xf8, 0x2c, 0x5e, 0x33, 0x4a,
0xa8, 0xe0, 0x0e, 0x48, |
| 410 » 0x73, 0x15, 0x3e, 0x87, 0x48, 0x5e, 0x09, 0xd6, 0x90, 0x9b, 0x07, 0x3e,
0xb7, 0xa7, 0x74, 0x1e, | 538 » 0x7e, 0x0b, 0x57, 0x3c, 0xe8, 0x4b, 0x68, 0x47, 0xde, 0x8a, 0x44, 0xdc,
0xb1, 0x35, 0x96, 0x5b, |
| 411 » 0x4a, 0x17, 0xba, 0x55, 0xe4, 0xae, 0x6d, 0xc8, 0x55, 0x48, 0x60, 0xa2,
0x5a, 0xce, 0x8b, 0xe6, | 539 » 0xe8, 0x27, 0x30, 0xd9, 0x3d, 0x25, 0x89, 0xd3, 0xdb, 0x71, 0xdd, 0x2c,
0x44, 0x71, 0x70, 0xe1, |
| 412 » 0x17, 0x41, 0x0b, 0xf8, 0x32, 0x7f, 0x07, 0x89, 0x0f, 0xa1, 0x63, 0xd5,
0xdd, 0x79, 0x59, 0xd9, | 540 » 0x89, 0x94, 0x3b, 0x07, 0xba, 0xa0, 0xdc, 0x42, 0x0e, 0x74, 0x78, 0x1a,
0xc7, 0x5e, 0xf2, 0xe8, |
| 413 » 0x68, 0x23, 0xea, 0x4b, 0x3c, 0x83, 0xd4, 0x0c, 0xe4, 0x3b, 0x2b, 0xb5,
0xc1, 0x42, 0xeb, 0x30, | 541 » 0x20, 0x0d, 0x14, 0xa6, 0xfb, 0x07, 0x74, 0x8b, 0x26, 0xa8, 0xa8, 0x50,
0x9d, 0x67, 0x81, 0x6e, |
| 414 » 0x5c, 0xe4, 0x57, 0x80, 0x4b, 0xa1, 0x58, 0xa3, 0x9d, 0xd3, 0xcf, 0x96,
0x29, 0xbd, 0xad, 0x09, | 542 » 0xad, 0x89, 0x0b, 0x13, 0x1d, 0x81, 0x25, 0x07, 0xf2, 0x9a, 0xf8, 0x42,
0x62, 0x0d, 0xcd, 0x50, |
| 415 » 0x76, 0x34, 0xf8, 0x14, 0x22, 0x6b, 0x6e, 0xdd, 0xb2, 0xc5, 0xed, 0xdd,
0x99, 0xf4, 0x68, 0x67, | 543 » 0x3a, 0xdc, 0x7b, 0x40, 0x33, 0xca, 0x49, 0x22, 0x72, 0xa6, 0xbb, 0x94,
0x70, 0x51, 0xcf, 0x31, |
| 416 » 0xa2, 0x98, 0xa8, 0x3e, 0x70, 0x83, 0x90, 0x23, 0x43, 0x4d, 0xe8, 0x70,
0x91, 0xbf, 0x86, 0x7b, | 544 » 0x36, 0x72, 0xd0, 0xf7, 0x60, 0x6a, 0x72, 0xcd, 0x66, 0x4f, 0x3e, 0xdb,
0x9c, 0x49, 0x86, 0x2a, |
| 417 » 0x5b, 0x0f, 0x2b, 0x93, 0xa5, 0x62, 0x83, 0x77, 0x70, 0xc8, 0x3b, 0xff,
0x13, 0xc0, 0x69, 0x2f, | 545 » 0x12, 0x4e, 0x68, 0x30, 0x8d, 0x25, 0xe2, 0x34, 0x65, 0x68, 0x17, 0x97,
0x0e, 0xf7, 0x37, 0xf8, |
| 418 » 0x7f, 0x2f, 0x39, 0x37, 0x33, 0xf0, 0x9d, 0xbf, 0x81, 0x49, 0xd9, 0xdf,
0x38, 0x87, 0x67, 0x23, | 546 » 0xbc, 0xf6, 0x61, 0x2e, 0x7b, 0xc9, 0x49, 0xc9, 0x6d, 0xec, 0xe2, 0x76,
0xdf, 0x1a, 0x70, 0x98, |
| 419 » 0x87, 0x3d, 0x82, 0xb9, 0x2f, 0xbd, 0x0c, 0x2f, 0xb6, 0xbf, 0x6e, 0xdf,
0xc6, 0xf5, 0x84, 0xe9, | 547 » 0xa5, 0x9f, 0xb3, 0x38, 0x96, 0x33, 0x28, 0x2a, 0xff, 0x1d, 0x3a, 0x7e,
0xe6, 0xc9, 0x19, 0x7e, |
| 420 » 0x25, 0x4c, 0x9c, 0xba, 0x8b, 0xbf, 0x94, 0x42, 0x77, 0xcf, 0x1e, 0xf7,
0x43, 0x72, 0xa5, 0x59, | 548 » 0xa8, 0x30, 0x6c, 0x49, 0x18, 0x17, 0x66, 0x91, 0x86, 0x4e, 0xea, 0xb7,
0xdb, 0xb6, 0x71, 0x59, |
| 421 » 0x81, 0x49, 0xbb, 0xa9, 0x0a, 0xcd, 0x94, 0x5d, 0xb4, 0x6c, 0x71, 0x67,
0x30, 0xfc, 0x62, 0x01, | 549 » 0xc0, 0x70, 0x01, 0x9d, 0x3c, 0x5b, 0xb5, 0xdf, 0x67, 0x54, 0xa8, 0xcf,
0xb6, 0xb2, 0x21, 0xe5, |
| 422 » 0xea, 0x09, 0xf9, 0x43, 0xb8, 0xbf, 0xd3, 0x63, 0x9f, 0x4a, 0x3e, 0x83,
0xb8, 0xe7, 0x8e, 0xb6, | 550 » 0xa6, 0x5c, 0x81, 0x4e, 0xba, 0x0e, 0x3c, 0x41, 0xb8, 0x5e, 0x34, 0x7b,
0x32, 0x28, 0x09, 0xff, |
| 423 » 0x24, 0x1c, 0x6f, 0x89, 0x61, 0xc0, 0xb0, 0x52, 0x88, 0x70, 0x2c, 0x0a,
0xce, 0xdc, 0xe8, 0xec, | 551 » 0xd5, 0x00, 0x2e, 0x02, 0xdc, 0xaf, 0xe0, 0x8b, 0x8d, 0x1a, 0xb3, 0xae,
0xb8, 0x6f, 0x5a, 0x70, |
| 424 » 0x79, 0xf1, 0x3b, 0x80, 0xe4, 0x93, 0x7b, 0x19, 0x3f, 0x42, 0x36, 0x4a,
0x1f, 0xcf, 0x76, 0x43, | 552 » 0xa0, 0xbf, 0xce, 0xe7, 0x21, 0x17, 0x9f, 0x36, 0xa5, 0x53, 0x38, 0xf0,
0x82, 0x20, 0x54, 0xfb, |
| 425 » 0x1a, 0x6f, 0xc3, 0xf4, 0xd1, 0x35, 0xa8, 0x6b, 0xee, 0x06, 0x52, 0xb8,
0xb5, 0xd5, 0x37, 0x9e, | 553 » 0xec, 0x45, 0xcb, 0xcc, 0xad, 0x55, 0x64, 0xe1, 0x8f, 0x01, 0xf4, 0x2b,
0x34, 0x7d, 0x8f, 0xea, |
| 426 » 0x1f, 0x0e, 0x7d, 0xfa, 0xf8, 0x5a, 0xdc, 0x7b, 0xae, 0x62, 0xfb, 0x17,
0x79, 0xf5, 0x2f, 0x00, | 554 » 0x31, 0xf5, 0x27, 0x3f, 0x6e, 0xdc, 0xb9, 0xfa, 0xd5, 0xf1, 0xb9, 0x47,
0x29, 0x09, 0xfe, 0x4e, |
| 427 » 0x00, 0xff, 0xff, 0x94, 0xbb, 0xd9, 0x6f, 0x57, 0x04, 0x00, 0x00, | 555 » 0x49, 0xf2, 0x88, 0x55, 0x0e, 0x3a, 0x04, 0x53, 0xaf, 0x7b, 0x7e, 0xf3,
0xcc, 0x50, 0x92, 0x89, |
| 556 » 0xbd, 0x07, 0x79, 0x83, 0x34, 0x92, 0x92, 0x31, 0xf5, 0x4e, 0x56, 0x3c,
0x2a, 0x2b, 0x93, 0x46, |
| 557 » 0x3b, 0xcb, 0xca, 0x44, 0xe0, 0x42, 0x6f, 0x9d, 0xae, 0xa2, 0x90, 0xdf,
0x90, 0xe0, 0xc2, 0x7b, |
| 558 » 0x70, 0x3a, 0x12, 0x6c, 0xe2, 0x9a, 0xaf, 0x1e, 0x13, 0x66, 0xfa, 0xad,
0xc5, 0x84, 0x14, 0xf5, |
| 559 » 0xc0, 0xb8, 0xd3, 0xfa, 0xb5, 0xb0, 0x71, 0x87, 0x10, 0xb4, 0x38, 0x4b,
0x84, 0x14, 0xae, 0x72, |
| 560 » 0xe8, 0xb3, 0xaa, 0x4f, 0x0a, 0x4c, 0xae, 0x1f, 0x0d, 0xc8, 0x83, 0x94,
0xad, 0xae, 0xaf, 0xf4, |
| 561 » 0x54, 0xe4, 0xd8, 0xab, 0xc9, 0x51, 0xe6, 0x65, 0xe3, 0xd2, 0xf5, 0xed,
0xeb, 0x6f, 0x57, 0x3c, |
| 562 » 0x55, 0x5c, 0xd6, 0xd6, 0xaf, 0xe3, 0x21, 0x75, 0x5f, 0x80, 0x5d, 0xe9,
0x20, 0xea, 0x40, 0xf3, |
| 563 » 0x6c, 0x3e, 0x1f, 0xec, 0xa9, 0xc3, 0xe5, 0xf4, 0x7a, 0x60, 0xa0, 0x2e,
0xb4, 0x16, 0xcb, 0xe9, |
| 564 » 0xe5, 0xa0, 0x81, 0x2c, 0x30, 0x17, 0xd7, 0x97, 0xd3, 0x3f, 0x07, 0x4d,
0x79, 0x9f, 0x2e, 0x9e, |
| 565 » 0x2e, 0x17, 0xf8, 0x4a, 0x5a, 0x2d, 0x64, 0x43, 0xe7, 0x9f, 0xab, 0x33,
0x8c, 0xa5, 0x61, 0xa2, |
| 566 » 0x7d, 0xb0, 0xae, 0x16, 0x2f, 0xff, 0x9b, 0xe2, 0xd9, 0x5f, 0xff, 0x0f,
0xda, 0x2e, 0x97, 0x82, |
| 567 » 0xae, 0xcc, 0xac, 0x22, 0x2b, 0x41, 0x62, 0x9e, 0x3f, 0xa3, 0x5b, 0x64,
0xa5, 0x50, 0xd5, 0x5a, |
| 568 » 0xc1, 0x84, 0x17, 0x15, 0x63, 0x6b, 0xea, 0xb6, 0xd4, 0x7c, 0xaa, 0x99,
0xb7, 0x21, 0x0d, 0xf2, |
| 569 » 0x69, 0xeb, 0xb3, 0x3b, 0x82, 0x76, 0xb6, 0xcb, 0x95, 0xb6, 0x35, 0xaa,
0x6d, 0x93, 0x11, 0x50, |
| 570 » 0x3e, 0x79, 0x8a, 0x83, 0x7a, 0x31, 0xc9, 0x97, 0x56, 0x9f, 0x27, 0xef,
0x0d, 0xe8, 0x5e, 0xe4, |
| 571 » 0x55, 0xa1, 0x39, 0xd8, 0x95, 0xd7, 0x01, 0x1d, 0x6d, 0x8a, 0xb8, 0xfa,
0x5a, 0x0d, 0xbf, 0x79, |
| 572 » 0x06, 0xcd, 0xc5, 0xb3, 0x87, 0x30, 0xec, 0xd7, 0x74, 0x85, 0x8e, 0x77,
0x3f, 0x0a, 0xc3, 0x6f, |
| 573 » 0x9f, 0xc5, 0x9f, 0x38, 0x67, 0x00, 0x65, 0x9f, 0xd1, 0xd7, 0x3b, 0x14,
0x33, 0x3c, 0xda, 0x0e, |
| 574 » 0x16, 0x54, 0xab, 0xb6, 0xfe, 0x61, 0xfe, 0xf2, 0x21, 0x00, 0x00, 0xff,
0xff, 0x7d, 0xdd, 0x47, |
| 575 » 0xda, 0x42, 0x07, 0x00, 0x00, |
| 428 } | 576 } |
| OLD | NEW |