| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: infra/monorail/monorail.proto |
| |
| package monorail |
| |
| import prpc "go.chromium.org/luci/grpc/prpc" |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| type IssuesListRequest_CannedQuery int32 |
| |
| const ( |
| IssuesListRequest_ALL IssuesListRequest_CannedQuery = 0 |
| IssuesListRequest_NEW IssuesListRequest_CannedQuery = 1 |
| IssuesListRequest_OPEN IssuesListRequest_CannedQuery = 2 |
| IssuesListRequest_OWNED IssuesListRequest_CannedQuery = 3 |
| IssuesListRequest_REPORTED IssuesListRequest_CannedQuery = 4 |
| IssuesListRequest_STARRED IssuesListRequest_CannedQuery = 5 |
| IssuesListRequest_TO_VERIFY IssuesListRequest_CannedQuery = 6 |
| ) |
| |
| var IssuesListRequest_CannedQuery_name = map[int32]string{ |
| 0: "ALL", |
| 1: "NEW", |
| 2: "OPEN", |
| 3: "OWNED", |
| 4: "REPORTED", |
| 5: "STARRED", |
| 6: "TO_VERIFY", |
| } |
| |
| var IssuesListRequest_CannedQuery_value = map[string]int32{ |
| "ALL": 0, |
| "NEW": 1, |
| "OPEN": 2, |
| "OWNED": 3, |
| "REPORTED": 4, |
| "STARRED": 5, |
| "TO_VERIFY": 6, |
| } |
| |
| func (x IssuesListRequest_CannedQuery) String() string { |
| return proto.EnumName(IssuesListRequest_CannedQuery_name, int32(x)) |
| } |
| |
| func (IssuesListRequest_CannedQuery) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{6, 0} |
| } |
| |
| // A monorail issue. |
| type Issue struct { |
| // Reporter of the issue. |
| Author *AtomPerson `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` |
| // Issues that must be fixed before this one can be fixed. |
| BlockedOn []*IssueRef `protobuf:"bytes,2,rep,name=blockedOn,proto3" json:"blockedOn,omitempty"` |
| // People participating in the issue discussion. |
| Cc []*AtomPerson `protobuf:"bytes,6,rep,name=cc,proto3" json:"cc,omitempty"` |
| // The text body of the issue. |
| Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` |
| // Identifier of the issue, unique within the appengine app. |
| Id int32 `protobuf:"varint,9,opt,name=id,proto3" json:"id,omitempty"` |
| // Monorail components for this issue. |
| Components []string `protobuf:"bytes,10,rep,name=components,proto3" json:"components,omitempty"` |
| // Arbitrary indexed strings visible to users, |
| // usually of form "Key-Value" or "Key-Value-SubValue", |
| Labels []string `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty"` |
| // Who is currently responsible for closing the issue. |
| Owner *AtomPerson `protobuf:"bytes,12,opt,name=owner,proto3" json:"owner,omitempty"` |
| // Current status of issue. Standard values: |
| // |
| // Open statuses: |
| // "Unconrimed" - New, has been not verified or reproduced. |
| // "Untriaged" - Confirmed, not reviews for priority of assignment |
| // "Available" - Triaged, but no owner assigned |
| // "Started" - Work in progress. |
| // "ExternalDependency" - Requires action from a third party |
| // Closed statuses: |
| // "Fixed" - Work completed, needs verification |
| // "Verified" - Test or reporter verified that the fix works |
| // "Duplicate" - Same root cause as another issue |
| // "WontFix" - Cannot reproduce, works as intended, invalid or absolete. |
| // "Archived" - Old issue with no activity. |
| Status string `protobuf:"bytes,17,opt,name=status,proto3" json:"status,omitempty"` |
| // A one line description of the issue. |
| Summary string `protobuf:"bytes,18,opt,name=summary,proto3" json:"summary,omitempty"` |
| // Last updated datetime of this issue. |
| Updated string `protobuf:"bytes,19,opt,name=updated,proto3" json:"updated,omitempty"` |
| // ID of the project containing the issue. |
| ProjectId string `protobuf:"bytes,20,opt,name=projectId,proto3" json:"projectId,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Issue) Reset() { *m = Issue{} } |
| func (m *Issue) String() string { return proto.CompactTextString(m) } |
| func (*Issue) ProtoMessage() {} |
| func (*Issue) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{0} |
| } |
| |
| func (m *Issue) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Issue.Unmarshal(m, b) |
| } |
| func (m *Issue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Issue.Marshal(b, m, deterministic) |
| } |
| func (m *Issue) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Issue.Merge(m, src) |
| } |
| func (m *Issue) XXX_Size() int { |
| return xxx_messageInfo_Issue.Size(m) |
| } |
| func (m *Issue) XXX_DiscardUnknown() { |
| xxx_messageInfo_Issue.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Issue proto.InternalMessageInfo |
| |
| func (m *Issue) GetAuthor() *AtomPerson { |
| if m != nil { |
| return m.Author |
| } |
| return nil |
| } |
| |
| func (m *Issue) GetBlockedOn() []*IssueRef { |
| if m != nil { |
| return m.BlockedOn |
| } |
| return nil |
| } |
| |
| func (m *Issue) GetCc() []*AtomPerson { |
| if m != nil { |
| return m.Cc |
| } |
| return nil |
| } |
| |
| func (m *Issue) GetDescription() string { |
| if m != nil { |
| return m.Description |
| } |
| return "" |
| } |
| |
| func (m *Issue) GetId() int32 { |
| if m != nil { |
| return m.Id |
| } |
| return 0 |
| } |
| |
| func (m *Issue) GetComponents() []string { |
| if m != nil { |
| return m.Components |
| } |
| return nil |
| } |
| |
| func (m *Issue) GetLabels() []string { |
| if m != nil { |
| return m.Labels |
| } |
| return nil |
| } |
| |
| func (m *Issue) GetOwner() *AtomPerson { |
| if m != nil { |
| return m.Owner |
| } |
| return nil |
| } |
| |
| func (m *Issue) GetStatus() string { |
| if m != nil { |
| return m.Status |
| } |
| return "" |
| } |
| |
| func (m *Issue) GetSummary() string { |
| if m != nil { |
| return m.Summary |
| } |
| return "" |
| } |
| |
| func (m *Issue) GetUpdated() string { |
| if m != nil { |
| return m.Updated |
| } |
| return "" |
| } |
| |
| func (m *Issue) GetProjectId() string { |
| if m != nil { |
| return m.ProjectId |
| } |
| return "" |
| } |
| |
| // IssueRef references another issue in the same Monorail instance. |
| type IssueRef struct { |
| // ID of the issue. |
| IssueId int32 `protobuf:"varint,1,opt,name=issueId,proto3" json:"issueId,omitempty"` |
| // ID of the project containing the issue. |
| ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *IssueRef) Reset() { *m = IssueRef{} } |
| func (m *IssueRef) String() string { return proto.CompactTextString(m) } |
| func (*IssueRef) ProtoMessage() {} |
| func (*IssueRef) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{1} |
| } |
| |
| func (m *IssueRef) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_IssueRef.Unmarshal(m, b) |
| } |
| func (m *IssueRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_IssueRef.Marshal(b, m, deterministic) |
| } |
| func (m *IssueRef) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_IssueRef.Merge(m, src) |
| } |
| func (m *IssueRef) XXX_Size() int { |
| return xxx_messageInfo_IssueRef.Size(m) |
| } |
| func (m *IssueRef) XXX_DiscardUnknown() { |
| xxx_messageInfo_IssueRef.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_IssueRef proto.InternalMessageInfo |
| |
| func (m *IssueRef) GetIssueId() int32 { |
| if m != nil { |
| return m.IssueId |
| } |
| return 0 |
| } |
| |
| func (m *IssueRef) GetProjectId() string { |
| if m != nil { |
| return m.ProjectId |
| } |
| return "" |
| } |
| |
| // Request for Monorail.InsertIssue(). |
| type InsertIssueRequest struct { |
| // Definition of the issue. |
| // issue.id must be empty. |
| Issue *Issue `protobuf:"bytes,2,opt,name=issue,proto3" json:"issue,omitempty"` |
| // Whether to send email to participants. |
| SendEmail bool `protobuf:"varint,3,opt,name=sendEmail,proto3" json:"sendEmail,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *InsertIssueRequest) Reset() { *m = InsertIssueRequest{} } |
| func (m *InsertIssueRequest) String() string { return proto.CompactTextString(m) } |
| func (*InsertIssueRequest) ProtoMessage() {} |
| func (*InsertIssueRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{2} |
| } |
| |
| func (m *InsertIssueRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_InsertIssueRequest.Unmarshal(m, b) |
| } |
| func (m *InsertIssueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_InsertIssueRequest.Marshal(b, m, deterministic) |
| } |
| func (m *InsertIssueRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_InsertIssueRequest.Merge(m, src) |
| } |
| func (m *InsertIssueRequest) XXX_Size() int { |
| return xxx_messageInfo_InsertIssueRequest.Size(m) |
| } |
| func (m *InsertIssueRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_InsertIssueRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_InsertIssueRequest proto.InternalMessageInfo |
| |
| func (m *InsertIssueRequest) GetIssue() *Issue { |
| if m != nil { |
| return m.Issue |
| } |
| return nil |
| } |
| |
| func (m *InsertIssueRequest) GetSendEmail() bool { |
| if m != nil { |
| return m.SendEmail |
| } |
| return false |
| } |
| |
| // Response for Monorail.InsertIssue() |
| type InsertIssueResponse struct { |
| // Created issue. |
| Issue *Issue `protobuf:"bytes,1,opt,name=issue,proto3" json:"issue,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *InsertIssueResponse) Reset() { *m = InsertIssueResponse{} } |
| func (m *InsertIssueResponse) String() string { return proto.CompactTextString(m) } |
| func (*InsertIssueResponse) ProtoMessage() {} |
| func (*InsertIssueResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{3} |
| } |
| |
| func (m *InsertIssueResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_InsertIssueResponse.Unmarshal(m, b) |
| } |
| func (m *InsertIssueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_InsertIssueResponse.Marshal(b, m, deterministic) |
| } |
| func (m *InsertIssueResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_InsertIssueResponse.Merge(m, src) |
| } |
| func (m *InsertIssueResponse) XXX_Size() int { |
| return xxx_messageInfo_InsertIssueResponse.Size(m) |
| } |
| func (m *InsertIssueResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_InsertIssueResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_InsertIssueResponse proto.InternalMessageInfo |
| |
| func (m *InsertIssueResponse) GetIssue() *Issue { |
| if m != nil { |
| return m.Issue |
| } |
| return nil |
| } |
| |
| // Request for Monorail.InsertComment() |
| type InsertCommentRequest struct { |
| // Definition of the comment. |
| Comment *InsertCommentRequest_Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` |
| // The reference to post the comment to. |
| Issue *IssueRef `protobuf:"bytes,2,opt,name=issue,proto3" json:"issue,omitempty"` |
| // SendEmail specifies whether an email must be sent. |
| SendEmail bool `protobuf:"varint,3,opt,name=sendEmail,proto3" json:"sendEmail,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *InsertCommentRequest) Reset() { *m = InsertCommentRequest{} } |
| func (m *InsertCommentRequest) String() string { return proto.CompactTextString(m) } |
| func (*InsertCommentRequest) ProtoMessage() {} |
| func (*InsertCommentRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{4} |
| } |
| |
| func (m *InsertCommentRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_InsertCommentRequest.Unmarshal(m, b) |
| } |
| func (m *InsertCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_InsertCommentRequest.Marshal(b, m, deterministic) |
| } |
| func (m *InsertCommentRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_InsertCommentRequest.Merge(m, src) |
| } |
| func (m *InsertCommentRequest) XXX_Size() int { |
| return xxx_messageInfo_InsertCommentRequest.Size(m) |
| } |
| func (m *InsertCommentRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_InsertCommentRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_InsertCommentRequest proto.InternalMessageInfo |
| |
| func (m *InsertCommentRequest) GetComment() *InsertCommentRequest_Comment { |
| if m != nil { |
| return m.Comment |
| } |
| return nil |
| } |
| |
| func (m *InsertCommentRequest) GetIssue() *IssueRef { |
| if m != nil { |
| return m.Issue |
| } |
| return nil |
| } |
| |
| func (m *InsertCommentRequest) GetSendEmail() bool { |
| if m != nil { |
| return m.SendEmail |
| } |
| return false |
| } |
| |
| // Defines the comment. |
| // This message is partial. |
| // Derived from IssueCommentWrapper type in api_pb2_v1.py. |
| type InsertCommentRequest_Comment struct { |
| Author *AtomPerson `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` |
| Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` |
| Updates *Update `protobuf:"bytes,8,opt,name=updates,proto3" json:"updates,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *InsertCommentRequest_Comment) Reset() { *m = InsertCommentRequest_Comment{} } |
| func (m *InsertCommentRequest_Comment) String() string { return proto.CompactTextString(m) } |
| func (*InsertCommentRequest_Comment) ProtoMessage() {} |
| func (*InsertCommentRequest_Comment) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{4, 0} |
| } |
| |
| func (m *InsertCommentRequest_Comment) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_InsertCommentRequest_Comment.Unmarshal(m, b) |
| } |
| func (m *InsertCommentRequest_Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_InsertCommentRequest_Comment.Marshal(b, m, deterministic) |
| } |
| func (m *InsertCommentRequest_Comment) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_InsertCommentRequest_Comment.Merge(m, src) |
| } |
| func (m *InsertCommentRequest_Comment) XXX_Size() int { |
| return xxx_messageInfo_InsertCommentRequest_Comment.Size(m) |
| } |
| func (m *InsertCommentRequest_Comment) XXX_DiscardUnknown() { |
| xxx_messageInfo_InsertCommentRequest_Comment.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_InsertCommentRequest_Comment proto.InternalMessageInfo |
| |
| func (m *InsertCommentRequest_Comment) GetAuthor() *AtomPerson { |
| if m != nil { |
| return m.Author |
| } |
| return nil |
| } |
| |
| func (m *InsertCommentRequest_Comment) GetContent() string { |
| if m != nil { |
| return m.Content |
| } |
| return "" |
| } |
| |
| func (m *InsertCommentRequest_Comment) GetUpdates() *Update { |
| if m != nil { |
| return m.Updates |
| } |
| return nil |
| } |
| |
| type InsertCommentResponse struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *InsertCommentResponse) Reset() { *m = InsertCommentResponse{} } |
| func (m *InsertCommentResponse) String() string { return proto.CompactTextString(m) } |
| func (*InsertCommentResponse) ProtoMessage() {} |
| func (*InsertCommentResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{5} |
| } |
| |
| func (m *InsertCommentResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_InsertCommentResponse.Unmarshal(m, b) |
| } |
| func (m *InsertCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_InsertCommentResponse.Marshal(b, m, deterministic) |
| } |
| func (m *InsertCommentResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_InsertCommentResponse.Merge(m, src) |
| } |
| func (m *InsertCommentResponse) XXX_Size() int { |
| return xxx_messageInfo_InsertCommentResponse.Size(m) |
| } |
| func (m *InsertCommentResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_InsertCommentResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_InsertCommentResponse proto.InternalMessageInfo |
| |
| // Request for a list of Issues. |
| type IssuesListRequest struct { |
| // String name of the project, e.g. "chromium". |
| ProjectId string `protobuf:"bytes,1,opt,name=projectId,proto3" json:"projectId,omitempty"` |
| // Additional projects to search. |
| AdditionalProject []string `protobuf:"bytes,2,rep,name=additionalProject,proto3" json:"additionalProject,omitempty"` |
| // Use a canned query. |
| Can IssuesListRequest_CannedQuery `protobuf:"varint,3,opt,name=can,proto3,enum=monorail.IssuesListRequest_CannedQuery" json:"can,omitempty"` |
| // Issue label or space separated list of labels. |
| Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` |
| // Maximum results to retrieve. |
| MaxResults int32 `protobuf:"varint,5,opt,name=maxResults,proto3" json:"maxResults,omitempty"` |
| // Issue owner. |
| Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` |
| // Search for Issues published before this timestamp. |
| PublishedMax int64 `protobuf:"varint,7,opt,name=publishedMax,proto3" json:"publishedMax,omitempty"` |
| // Search for Issues published after this timestamp. |
| PublishedMin int64 `protobuf:"varint,8,opt,name=publishedMin,proto3" json:"publishedMin,omitempty"` |
| // Free-form text query. |
| Q string `protobuf:"bytes,9,opt,name=q,proto3" json:"q,omitempty"` |
| // Sort-by field or fields, space separated terms with leading - to |
| // indicate decreasing direction. e.g. "estdays -milestone" to sort by |
| // estdays increasing, then milestone decreasing. |
| Sort string `protobuf:"bytes,10,opt,name=sort,proto3" json:"sort,omitempty"` |
| // Starting index for pagination. |
| StartIndex int32 `protobuf:"varint,11,opt,name=startIndex,proto3" json:"startIndex,omitempty"` |
| // Issue status. |
| Status string `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"` |
| // Search for Issues most recently updated before this timestamp. |
| UpdatedMax int64 `protobuf:"varint,13,opt,name=updatedMax,proto3" json:"updatedMax,omitempty"` |
| // Search for Issues most recently updated after this timestamp. |
| UpdatedMin int64 `protobuf:"varint,14,opt,name=updatedMin,proto3" json:"updatedMin,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *IssuesListRequest) Reset() { *m = IssuesListRequest{} } |
| func (m *IssuesListRequest) String() string { return proto.CompactTextString(m) } |
| func (*IssuesListRequest) ProtoMessage() {} |
| func (*IssuesListRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{6} |
| } |
| |
| func (m *IssuesListRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_IssuesListRequest.Unmarshal(m, b) |
| } |
| func (m *IssuesListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_IssuesListRequest.Marshal(b, m, deterministic) |
| } |
| func (m *IssuesListRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_IssuesListRequest.Merge(m, src) |
| } |
| func (m *IssuesListRequest) XXX_Size() int { |
| return xxx_messageInfo_IssuesListRequest.Size(m) |
| } |
| func (m *IssuesListRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_IssuesListRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_IssuesListRequest proto.InternalMessageInfo |
| |
| func (m *IssuesListRequest) GetProjectId() string { |
| if m != nil { |
| return m.ProjectId |
| } |
| return "" |
| } |
| |
| func (m *IssuesListRequest) GetAdditionalProject() []string { |
| if m != nil { |
| return m.AdditionalProject |
| } |
| return nil |
| } |
| |
| func (m *IssuesListRequest) GetCan() IssuesListRequest_CannedQuery { |
| if m != nil { |
| return m.Can |
| } |
| return IssuesListRequest_ALL |
| } |
| |
| func (m *IssuesListRequest) GetLabel() string { |
| if m != nil { |
| return m.Label |
| } |
| return "" |
| } |
| |
| func (m *IssuesListRequest) GetMaxResults() int32 { |
| if m != nil { |
| return m.MaxResults |
| } |
| return 0 |
| } |
| |
| func (m *IssuesListRequest) GetOwner() string { |
| if m != nil { |
| return m.Owner |
| } |
| return "" |
| } |
| |
| func (m *IssuesListRequest) GetPublishedMax() int64 { |
| if m != nil { |
| return m.PublishedMax |
| } |
| return 0 |
| } |
| |
| func (m *IssuesListRequest) GetPublishedMin() int64 { |
| if m != nil { |
| return m.PublishedMin |
| } |
| return 0 |
| } |
| |
| func (m *IssuesListRequest) GetQ() string { |
| if m != nil { |
| return m.Q |
| } |
| return "" |
| } |
| |
| func (m *IssuesListRequest) GetSort() string { |
| if m != nil { |
| return m.Sort |
| } |
| return "" |
| } |
| |
| func (m *IssuesListRequest) GetStartIndex() int32 { |
| if m != nil { |
| return m.StartIndex |
| } |
| return 0 |
| } |
| |
| func (m *IssuesListRequest) GetStatus() string { |
| if m != nil { |
| return m.Status |
| } |
| return "" |
| } |
| |
| func (m *IssuesListRequest) GetUpdatedMax() int64 { |
| if m != nil { |
| return m.UpdatedMax |
| } |
| return 0 |
| } |
| |
| func (m *IssuesListRequest) GetUpdatedMin() int64 { |
| if m != nil { |
| return m.UpdatedMin |
| } |
| return 0 |
| } |
| |
| type ErrorMessage struct { |
| Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` |
| Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` |
| Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ErrorMessage) Reset() { *m = ErrorMessage{} } |
| func (m *ErrorMessage) String() string { return proto.CompactTextString(m) } |
| func (*ErrorMessage) ProtoMessage() {} |
| func (*ErrorMessage) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{7} |
| } |
| |
| func (m *ErrorMessage) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ErrorMessage.Unmarshal(m, b) |
| } |
| func (m *ErrorMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ErrorMessage.Marshal(b, m, deterministic) |
| } |
| func (m *ErrorMessage) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ErrorMessage.Merge(m, src) |
| } |
| func (m *ErrorMessage) XXX_Size() int { |
| return xxx_messageInfo_ErrorMessage.Size(m) |
| } |
| func (m *ErrorMessage) XXX_DiscardUnknown() { |
| xxx_messageInfo_ErrorMessage.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ErrorMessage proto.InternalMessageInfo |
| |
| func (m *ErrorMessage) GetCode() int32 { |
| if m != nil { |
| return m.Code |
| } |
| return 0 |
| } |
| |
| func (m *ErrorMessage) GetReason() string { |
| if m != nil { |
| return m.Reason |
| } |
| return "" |
| } |
| |
| func (m *ErrorMessage) GetMessage() string { |
| if m != nil { |
| return m.Message |
| } |
| return "" |
| } |
| |
| type IssuesListResponse struct { |
| Error *ErrorMessage `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` |
| // Search results. |
| Items []*Issue `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` |
| // Total size of matching result set, regardless of how many are included |
| // in this response. |
| TotalResults int32 `protobuf:"varint,3,opt,name=totalResults,proto3" json:"totalResults,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *IssuesListResponse) Reset() { *m = IssuesListResponse{} } |
| func (m *IssuesListResponse) String() string { return proto.CompactTextString(m) } |
| func (*IssuesListResponse) ProtoMessage() {} |
| func (*IssuesListResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{8} |
| } |
| |
| func (m *IssuesListResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_IssuesListResponse.Unmarshal(m, b) |
| } |
| func (m *IssuesListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_IssuesListResponse.Marshal(b, m, deterministic) |
| } |
| func (m *IssuesListResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_IssuesListResponse.Merge(m, src) |
| } |
| func (m *IssuesListResponse) XXX_Size() int { |
| return xxx_messageInfo_IssuesListResponse.Size(m) |
| } |
| func (m *IssuesListResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_IssuesListResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_IssuesListResponse proto.InternalMessageInfo |
| |
| func (m *IssuesListResponse) GetError() *ErrorMessage { |
| if m != nil { |
| return m.Error |
| } |
| return nil |
| } |
| |
| func (m *IssuesListResponse) GetItems() []*Issue { |
| if m != nil { |
| return m.Items |
| } |
| return nil |
| } |
| |
| func (m *IssuesListResponse) GetTotalResults() int32 { |
| if m != nil { |
| return m.TotalResults |
| } |
| return 0 |
| } |
| |
| // Defines a mutation to an issue. |
| // This message is partial. |
| // Derived from Update type in api_pb2_v1.py. |
| type Update struct { |
| // If set, the new status of the issue. |
| Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` |
| // Adds or removes labels. |
| Labels []string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"` |
| // IsDescription makes the request content the new bug description |
| // instead of a new comment. |
| IsDescription bool `protobuf:"varint,13,opt,name=is_description,json=isDescription,proto3" json:"is_description,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Update) Reset() { *m = Update{} } |
| func (m *Update) String() string { return proto.CompactTextString(m) } |
| func (*Update) ProtoMessage() {} |
| func (*Update) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{9} |
| } |
| |
| func (m *Update) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Update.Unmarshal(m, b) |
| } |
| func (m *Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Update.Marshal(b, m, deterministic) |
| } |
| func (m *Update) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Update.Merge(m, src) |
| } |
| func (m *Update) XXX_Size() int { |
| return xxx_messageInfo_Update.Size(m) |
| } |
| func (m *Update) XXX_DiscardUnknown() { |
| xxx_messageInfo_Update.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Update proto.InternalMessageInfo |
| |
| func (m *Update) GetStatus() string { |
| if m != nil { |
| return m.Status |
| } |
| return "" |
| } |
| |
| func (m *Update) GetLabels() []string { |
| if m != nil { |
| return m.Labels |
| } |
| return nil |
| } |
| |
| func (m *Update) GetIsDescription() bool { |
| if m != nil { |
| return m.IsDescription |
| } |
| return false |
| } |
| |
| // Identifies a Monorail user. |
| type AtomPerson struct { |
| // User email. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *AtomPerson) Reset() { *m = AtomPerson{} } |
| func (m *AtomPerson) String() string { return proto.CompactTextString(m) } |
| func (*AtomPerson) ProtoMessage() {} |
| func (*AtomPerson) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{10} |
| } |
| |
| func (m *AtomPerson) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_AtomPerson.Unmarshal(m, b) |
| } |
| func (m *AtomPerson) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_AtomPerson.Marshal(b, m, deterministic) |
| } |
| func (m *AtomPerson) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_AtomPerson.Merge(m, src) |
| } |
| func (m *AtomPerson) XXX_Size() int { |
| return xxx_messageInfo_AtomPerson.Size(m) |
| } |
| func (m *AtomPerson) XXX_DiscardUnknown() { |
| xxx_messageInfo_AtomPerson.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_AtomPerson proto.InternalMessageInfo |
| |
| func (m *AtomPerson) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| type GetIssueRequest struct { |
| Issue *IssueRef `protobuf:"bytes,1,opt,name=issue,proto3" json:"issue,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetIssueRequest) Reset() { *m = GetIssueRequest{} } |
| func (m *GetIssueRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetIssueRequest) ProtoMessage() {} |
| func (*GetIssueRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{11} |
| } |
| |
| func (m *GetIssueRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetIssueRequest.Unmarshal(m, b) |
| } |
| func (m *GetIssueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetIssueRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetIssueRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetIssueRequest.Merge(m, src) |
| } |
| func (m *GetIssueRequest) XXX_Size() int { |
| return xxx_messageInfo_GetIssueRequest.Size(m) |
| } |
| func (m *GetIssueRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetIssueRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetIssueRequest proto.InternalMessageInfo |
| |
| func (m *GetIssueRequest) GetIssue() *IssueRef { |
| if m != nil { |
| return m.Issue |
| } |
| return nil |
| } |
| |
| type ListCommentsRequest struct { |
| Issue *IssueRef `protobuf:"bytes,1,opt,name=issue,proto3" json:"issue,omitempty"` |
| MaxResults int32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` |
| StartIndex int32 `protobuf:"varint,3,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListCommentsRequest) Reset() { *m = ListCommentsRequest{} } |
| func (m *ListCommentsRequest) String() string { return proto.CompactTextString(m) } |
| func (*ListCommentsRequest) ProtoMessage() {} |
| func (*ListCommentsRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{12} |
| } |
| |
| func (m *ListCommentsRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListCommentsRequest.Unmarshal(m, b) |
| } |
| func (m *ListCommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListCommentsRequest.Marshal(b, m, deterministic) |
| } |
| func (m *ListCommentsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListCommentsRequest.Merge(m, src) |
| } |
| func (m *ListCommentsRequest) XXX_Size() int { |
| return xxx_messageInfo_ListCommentsRequest.Size(m) |
| } |
| func (m *ListCommentsRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListCommentsRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListCommentsRequest proto.InternalMessageInfo |
| |
| func (m *ListCommentsRequest) GetIssue() *IssueRef { |
| if m != nil { |
| return m.Issue |
| } |
| return nil |
| } |
| |
| func (m *ListCommentsRequest) GetMaxResults() int32 { |
| if m != nil { |
| return m.MaxResults |
| } |
| return 0 |
| } |
| |
| func (m *ListCommentsRequest) GetStartIndex() int32 { |
| if m != nil { |
| return m.StartIndex |
| } |
| return 0 |
| } |
| |
| type ListCommentsResponse struct { |
| Error *ErrorMessage `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` |
| // Actual comments. |
| Items []*Comment `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` |
| // Total size of matching result set, regardless of how many are included |
| // in this response. Includes deleted comments. |
| TotalResults int32 `protobuf:"varint,3,opt,name=totalResults,proto3" json:"totalResults,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListCommentsResponse) Reset() { *m = ListCommentsResponse{} } |
| func (m *ListCommentsResponse) String() string { return proto.CompactTextString(m) } |
| func (*ListCommentsResponse) ProtoMessage() {} |
| func (*ListCommentsResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{13} |
| } |
| |
| func (m *ListCommentsResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListCommentsResponse.Unmarshal(m, b) |
| } |
| func (m *ListCommentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListCommentsResponse.Marshal(b, m, deterministic) |
| } |
| func (m *ListCommentsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListCommentsResponse.Merge(m, src) |
| } |
| func (m *ListCommentsResponse) XXX_Size() int { |
| return xxx_messageInfo_ListCommentsResponse.Size(m) |
| } |
| func (m *ListCommentsResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListCommentsResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListCommentsResponse proto.InternalMessageInfo |
| |
| func (m *ListCommentsResponse) GetError() *ErrorMessage { |
| if m != nil { |
| return m.Error |
| } |
| return nil |
| } |
| |
| func (m *ListCommentsResponse) GetItems() []*Comment { |
| if m != nil { |
| return m.Items |
| } |
| return nil |
| } |
| |
| func (m *ListCommentsResponse) GetTotalResults() int32 { |
| if m != nil { |
| return m.TotalResults |
| } |
| return 0 |
| } |
| |
| // Comment represents monorail comment. |
| // This field is partial. |
| // Derived from `IssueCommentWrapper` type in api_pb2_v1.py. |
| type Comment struct { |
| // Who authored the comment. |
| Author *AtomPerson `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` |
| // Content of the comment. |
| Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` |
| // If the comment has been deleted, who deleted it. |
| DeletedBy *AtomPerson `protobuf:"bytes,5,opt,name=deletedBy,proto3" json:"deletedBy,omitempty"` |
| // Comment ID, scoped to its parent issue. |
| Id int32 `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"` |
| // Datetime of when this comment was published. |
| Published string `protobuf:"bytes,7,opt,name=published,proto3" json:"published,omitempty"` |
| // Updates made to the issue in this comment. |
| Updates *Update `protobuf:"bytes,8,opt,name=updates,proto3" json:"updates,omitempty"` |
| // If true, this comment is actually an issue description. |
| IsDescription bool `protobuf:"varint,10,opt,name=is_description,json=isDescription,proto3" json:"is_description,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Comment) Reset() { *m = Comment{} } |
| func (m *Comment) String() string { return proto.CompactTextString(m) } |
| func (*Comment) ProtoMessage() {} |
| func (*Comment) Descriptor() ([]byte, []int) { |
| return fileDescriptor_36fb0058a4106743, []int{14} |
| } |
| |
| func (m *Comment) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Comment.Unmarshal(m, b) |
| } |
| func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Comment.Marshal(b, m, deterministic) |
| } |
| func (m *Comment) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Comment.Merge(m, src) |
| } |
| func (m *Comment) XXX_Size() int { |
| return xxx_messageInfo_Comment.Size(m) |
| } |
| func (m *Comment) XXX_DiscardUnknown() { |
| xxx_messageInfo_Comment.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Comment proto.InternalMessageInfo |
| |
| func (m *Comment) GetAuthor() *AtomPerson { |
| if m != nil { |
| return m.Author |
| } |
| return nil |
| } |
| |
| func (m *Comment) GetContent() string { |
| if m != nil { |
| return m.Content |
| } |
| return "" |
| } |
| |
| func (m *Comment) GetDeletedBy() *AtomPerson { |
| if m != nil { |
| return m.DeletedBy |
| } |
| return nil |
| } |
| |
| func (m *Comment) GetId() int32 { |
| if m != nil { |
| return m.Id |
| } |
| return 0 |
| } |
| |
| func (m *Comment) GetPublished() string { |
| if m != nil { |
| return m.Published |
| } |
| return "" |
| } |
| |
| func (m *Comment) GetUpdates() *Update { |
| if m != nil { |
| return m.Updates |
| } |
| return nil |
| } |
| |
| func (m *Comment) GetIsDescription() bool { |
| if m != nil { |
| return m.IsDescription |
| } |
| return false |
| } |
| |
| func init() { |
| proto.RegisterEnum("monorail.IssuesListRequest_CannedQuery", IssuesListRequest_CannedQuery_name, IssuesListRequest_CannedQuery_value) |
| proto.RegisterType((*Issue)(nil), "monorail.Issue") |
| proto.RegisterType((*IssueRef)(nil), "monorail.IssueRef") |
| proto.RegisterType((*InsertIssueRequest)(nil), "monorail.InsertIssueRequest") |
| proto.RegisterType((*InsertIssueResponse)(nil), "monorail.InsertIssueResponse") |
| proto.RegisterType((*InsertCommentRequest)(nil), "monorail.InsertCommentRequest") |
| proto.RegisterType((*InsertCommentRequest_Comment)(nil), "monorail.InsertCommentRequest.Comment") |
| proto.RegisterType((*InsertCommentResponse)(nil), "monorail.InsertCommentResponse") |
| proto.RegisterType((*IssuesListRequest)(nil), "monorail.IssuesListRequest") |
| proto.RegisterType((*ErrorMessage)(nil), "monorail.ErrorMessage") |
| proto.RegisterType((*IssuesListResponse)(nil), "monorail.IssuesListResponse") |
| proto.RegisterType((*Update)(nil), "monorail.Update") |
| proto.RegisterType((*AtomPerson)(nil), "monorail.AtomPerson") |
| proto.RegisterType((*GetIssueRequest)(nil), "monorail.GetIssueRequest") |
| proto.RegisterType((*ListCommentsRequest)(nil), "monorail.ListCommentsRequest") |
| proto.RegisterType((*ListCommentsResponse)(nil), "monorail.ListCommentsResponse") |
| proto.RegisterType((*Comment)(nil), "monorail.Comment") |
| } |
| |
| func init() { |
| proto.RegisterFile("infra/monorail/monorail.proto", fileDescriptor_36fb0058a4106743) |
| } |
| |
| var fileDescriptor_36fb0058a4106743 = []byte{ |
| // 1072 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6f, 0xe4, 0xb4, |
| 0x17, 0x6f, 0x92, 0xf9, 0x95, 0x97, 0x69, 0x77, 0xea, 0xf6, 0xbb, 0xdf, 0x30, 0x74, 0xdb, 0x51, |
| 0xc4, 0xb2, 0xa3, 0x55, 0x55, 0xd0, 0x70, 0x01, 0xc1, 0x81, 0xee, 0x76, 0x40, 0x23, 0xb5, 0x9d, |
| 0x62, 0x0a, 0xab, 0xbd, 0x50, 0xb9, 0x89, 0x97, 0x0d, 0x24, 0xf6, 0x34, 0xf6, 0x88, 0xf6, 0xc0, |
| 0x01, 0x0e, 0xdc, 0xf6, 0xc0, 0x5f, 0xc0,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xfc, 0x8d, 0x7e, 0x77, 0xa0, 0x73, 0x62, 0x30, 0xd0, 0x31, 0x78, 0x95, 0x77, 0x17, 0xed, |
| 0x2c, 0x3f, 0x8f, 0xd5, 0x21, 0xec, 0x3f, 0xba, 0x25, 0x6a, 0x9e, 0x92, 0x35, 0x84, 0x61, 0xbd, |
| 0xf6, 0xca, 0xa0, 0xdd, 0xbb, 0x9f, 0xdb, 0xfe, 0xde, 0xad, 0xf1, 0x05, 0xe6, 0x04, 0xa0, 0x94, |
| 0x07, 0xf4, 0xfe, 0x1d, 0xef, 0x47, 0x7f, 0x67, 0x75, 0x70, 0x01, 0xf5, 0x29, 0x74, 0x0a, 0x5e, |
| 0xa1, 0xf7, 0xca, 0xdc, 0x25, 0xae, 0xf5, 0x97, 0xd5, 0x23, 0x58, 0x43, 0x53, 0xe8, 0x56, 0xe7, |
| 0x19, 0x55, 0x3a, 0xb1, 0x82, 0x6b, 0xfd, 0xdd, 0xdb, 0xc2, 0xc5, 0x51, 0x2e, 0x5b, 0xfa, 0x7f, |
| 0xf9, 0x93, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x00, 0x9f, 0x1b, 0x50, 0x0b, 0x00, 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConnInterface |
| |
| // 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.SupportPackageIsVersion6 |
| |
| // MonorailClient is the client API for Monorail service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type MonorailClient interface { |
| // Creates an issue. |
| InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.CallOption) (*InsertIssueResponse, error) |
| // Posts a comment to an issue. Can update issue attributes, such as status. |
| InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error) |
| // Lists issues from a project. |
| IssuesList(ctx context.Context, in *IssuesListRequest, opts ...grpc.CallOption) (*IssuesListResponse, error) |
| // GetIssue gets an issue by id. |
| GetIssue(ctx context.Context, in *GetIssueRequest, opts ...grpc.CallOption) (*Issue, error) |
| // ListComments returns comments of an issue. |
| ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) |
| } |
| type monorailPRPCClient struct { |
| client *prpc.Client |
| } |
| |
| func NewMonorailPRPCClient(client *prpc.Client) MonorailClient { |
| return &monorailPRPCClient{client} |
| } |
| |
| func (c *monorailPRPCClient) InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.CallOption) (*InsertIssueResponse, error) { |
| out := new(InsertIssueResponse) |
| err := c.client.Call(ctx, "monorail.Monorail", "InsertIssue", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *monorailPRPCClient) InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error) { |
| out := new(InsertCommentResponse) |
| err := c.client.Call(ctx, "monorail.Monorail", "InsertComment", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *monorailPRPCClient) IssuesList(ctx context.Context, in *IssuesListRequest, opts ...grpc.CallOption) (*IssuesListResponse, error) { |
| out := new(IssuesListResponse) |
| err := c.client.Call(ctx, "monorail.Monorail", "IssuesList", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *monorailPRPCClient) GetIssue(ctx context.Context, in *GetIssueRequest, opts ...grpc.CallOption) (*Issue, error) { |
| out := new(Issue) |
| err := c.client.Call(ctx, "monorail.Monorail", "GetIssue", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *monorailPRPCClient) ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) { |
| out := new(ListCommentsResponse) |
| err := c.client.Call(ctx, "monorail.Monorail", "ListComments", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| type monorailClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewMonorailClient(cc grpc.ClientConnInterface) MonorailClient { |
| return &monorailClient{cc} |
| } |
| |
| func (c *monorailClient) InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.CallOption) (*InsertIssueResponse, error) { |
| out := new(InsertIssueResponse) |
| err := c.cc.Invoke(ctx, "/monorail.Monorail/InsertIssue", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *monorailClient) InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error) { |
| out := new(InsertCommentResponse) |
| err := c.cc.Invoke(ctx, "/monorail.Monorail/InsertComment", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *monorailClient) IssuesList(ctx context.Context, in *IssuesListRequest, opts ...grpc.CallOption) (*IssuesListResponse, error) { |
| out := new(IssuesListResponse) |
| err := c.cc.Invoke(ctx, "/monorail.Monorail/IssuesList", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *monorailClient) GetIssue(ctx context.Context, in *GetIssueRequest, opts ...grpc.CallOption) (*Issue, error) { |
| out := new(Issue) |
| err := c.cc.Invoke(ctx, "/monorail.Monorail/GetIssue", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *monorailClient) ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) { |
| out := new(ListCommentsResponse) |
| err := c.cc.Invoke(ctx, "/monorail.Monorail/ListComments", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // MonorailServer is the server API for Monorail service. |
| type MonorailServer interface { |
| // Creates an issue. |
| InsertIssue(context.Context, *InsertIssueRequest) (*InsertIssueResponse, error) |
| // Posts a comment to an issue. Can update issue attributes, such as status. |
| InsertComment(context.Context, *InsertCommentRequest) (*InsertCommentResponse, error) |
| // Lists issues from a project. |
| IssuesList(context.Context, *IssuesListRequest) (*IssuesListResponse, error) |
| // GetIssue gets an issue by id. |
| GetIssue(context.Context, *GetIssueRequest) (*Issue, error) |
| // ListComments returns comments of an issue. |
| ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error) |
| } |
| |
| // UnimplementedMonorailServer can be embedded to have forward compatible implementations. |
| type UnimplementedMonorailServer struct { |
| } |
| |
| func (*UnimplementedMonorailServer) InsertIssue(ctx context.Context, req *InsertIssueRequest) (*InsertIssueResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method InsertIssue not implemented") |
| } |
| func (*UnimplementedMonorailServer) InsertComment(ctx context.Context, req *InsertCommentRequest) (*InsertCommentResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method InsertComment not implemented") |
| } |
| func (*UnimplementedMonorailServer) IssuesList(ctx context.Context, req *IssuesListRequest) (*IssuesListResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method IssuesList not implemented") |
| } |
| func (*UnimplementedMonorailServer) GetIssue(ctx context.Context, req *GetIssueRequest) (*Issue, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetIssue not implemented") |
| } |
| func (*UnimplementedMonorailServer) ListComments(ctx context.Context, req *ListCommentsRequest) (*ListCommentsResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ListComments not implemented") |
| } |
| |
| func RegisterMonorailServer(s prpc.Registrar, srv MonorailServer) { |
| s.RegisterService(&_Monorail_serviceDesc, srv) |
| } |
| |
| func _Monorail_InsertIssue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(InsertIssueRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(MonorailServer).InsertIssue(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/monorail.Monorail/InsertIssue", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(MonorailServer).InsertIssue(ctx, req.(*InsertIssueRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Monorail_InsertComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(InsertCommentRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(MonorailServer).InsertComment(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/monorail.Monorail/InsertComment", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(MonorailServer).InsertComment(ctx, req.(*InsertCommentRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Monorail_IssuesList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(IssuesListRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(MonorailServer).IssuesList(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/monorail.Monorail/IssuesList", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(MonorailServer).IssuesList(ctx, req.(*IssuesListRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Monorail_GetIssue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetIssueRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(MonorailServer).GetIssue(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/monorail.Monorail/GetIssue", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(MonorailServer).GetIssue(ctx, req.(*GetIssueRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Monorail_ListComments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListCommentsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(MonorailServer).ListComments(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/monorail.Monorail/ListComments", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(MonorailServer).ListComments(ctx, req.(*ListCommentsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _Monorail_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "monorail.Monorail", |
| HandlerType: (*MonorailServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "InsertIssue", |
| Handler: _Monorail_InsertIssue_Handler, |
| }, |
| { |
| MethodName: "InsertComment", |
| Handler: _Monorail_InsertComment_Handler, |
| }, |
| { |
| MethodName: "IssuesList", |
| Handler: _Monorail_IssuesList_Handler, |
| }, |
| { |
| MethodName: "GetIssue", |
| Handler: _Monorail_GetIssue_Handler, |
| }, |
| { |
| MethodName: "ListComments", |
| Handler: _Monorail_ListComments_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "infra/monorail/monorail.proto", |
| } |