Documentation
¶
Overview ¶
Package monorail implements Monorail client.
Package monorail is a generated GoMock package.
Index ¶
- Constants
- Variables
- func FileDescriptorSet() *descriptor.FileDescriptorSet
- func IssueURL(host, project string, id int32) string
- func RegisterMonorailServer(s prpc.Registrar, srv MonorailServer)
- type AtomPerson
- func (*AtomPerson) Descriptor() ([]byte, []int)
- func (m *AtomPerson) GetName() string
- func (*AtomPerson) ProtoMessage()
- func (m *AtomPerson) Reset()
- func (m *AtomPerson) String() string
- func (a *AtomPerson) Validate() error
- func (m *AtomPerson) XXX_DiscardUnknown()
- func (m *AtomPerson) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AtomPerson) XXX_Merge(src proto.Message)
- func (m *AtomPerson) XXX_Size() int
- func (m *AtomPerson) XXX_Unmarshal(b []byte) error
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)
- func (m *Comment) GetAuthor() *AtomPerson
- func (m *Comment) GetContent() string
- func (m *Comment) GetDeletedBy() *AtomPerson
- func (m *Comment) GetId() int32
- func (m *Comment) GetIsDescription() bool
- func (m *Comment) GetPublished() string
- func (m *Comment) GetUpdates() *Update
- func (*Comment) ProtoMessage()
- func (m *Comment) Reset()
- func (m *Comment) String() string
- func (m *Comment) XXX_DiscardUnknown()
- func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Comment) XXX_Merge(src proto.Message)
- func (m *Comment) XXX_Size() int
- func (m *Comment) XXX_Unmarshal(b []byte) error
- type ErrorMessage
- func (*ErrorMessage) Descriptor() ([]byte, []int)
- func (m *ErrorMessage) GetCode() int32
- func (m *ErrorMessage) GetMessage() string
- func (m *ErrorMessage) GetReason() string
- func (*ErrorMessage) ProtoMessage()
- func (m *ErrorMessage) Reset()
- func (m *ErrorMessage) String() string
- func (m *ErrorMessage) XXX_DiscardUnknown()
- func (m *ErrorMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ErrorMessage) XXX_Merge(src proto.Message)
- func (m *ErrorMessage) XXX_Size() int
- func (m *ErrorMessage) XXX_Unmarshal(b []byte) error
- type GetIssueRequest
- func (*GetIssueRequest) Descriptor() ([]byte, []int)
- func (m *GetIssueRequest) GetIssue() *IssueRef
- func (*GetIssueRequest) ProtoMessage()
- func (m *GetIssueRequest) Reset()
- func (m *GetIssueRequest) String() string
- func (m *GetIssueRequest) XXX_DiscardUnknown()
- func (m *GetIssueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetIssueRequest) XXX_Merge(src proto.Message)
- func (m *GetIssueRequest) XXX_Size() int
- func (m *GetIssueRequest) XXX_Unmarshal(b []byte) error
- type InsertCommentRequest
- func (*InsertCommentRequest) Descriptor() ([]byte, []int)
- func (m *InsertCommentRequest) GetComment() *InsertCommentRequest_Comment
- func (m *InsertCommentRequest) GetIssue() *IssueRef
- func (m *InsertCommentRequest) GetSendEmail() bool
- func (*InsertCommentRequest) ProtoMessage()
- func (m *InsertCommentRequest) Reset()
- func (m *InsertCommentRequest) String() string
- func (m *InsertCommentRequest) XXX_DiscardUnknown()
- func (m *InsertCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InsertCommentRequest) XXX_Merge(src proto.Message)
- func (m *InsertCommentRequest) XXX_Size() int
- func (m *InsertCommentRequest) XXX_Unmarshal(b []byte) error
- type InsertCommentRequest_Comment
- func (*InsertCommentRequest_Comment) Descriptor() ([]byte, []int)
- func (m *InsertCommentRequest_Comment) GetAuthor() *AtomPerson
- func (m *InsertCommentRequest_Comment) GetContent() string
- func (m *InsertCommentRequest_Comment) GetUpdates() *Update
- func (*InsertCommentRequest_Comment) ProtoMessage()
- func (m *InsertCommentRequest_Comment) Reset()
- func (m *InsertCommentRequest_Comment) String() string
- func (m *InsertCommentRequest_Comment) XXX_DiscardUnknown()
- func (m *InsertCommentRequest_Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InsertCommentRequest_Comment) XXX_Merge(src proto.Message)
- func (m *InsertCommentRequest_Comment) XXX_Size() int
- func (m *InsertCommentRequest_Comment) XXX_Unmarshal(b []byte) error
- type InsertCommentResponse
- func (*InsertCommentResponse) Descriptor() ([]byte, []int)
- func (*InsertCommentResponse) ProtoMessage()
- func (m *InsertCommentResponse) Reset()
- func (m *InsertCommentResponse) String() string
- func (m *InsertCommentResponse) XXX_DiscardUnknown()
- func (m *InsertCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InsertCommentResponse) XXX_Merge(src proto.Message)
- func (m *InsertCommentResponse) XXX_Size() int
- func (m *InsertCommentResponse) XXX_Unmarshal(b []byte) error
- type InsertIssueRequest
- func (*InsertIssueRequest) Descriptor() ([]byte, []int)
- func (m *InsertIssueRequest) GetIssue() *Issue
- func (m *InsertIssueRequest) GetSendEmail() bool
- func (*InsertIssueRequest) ProtoMessage()
- func (m *InsertIssueRequest) Reset()
- func (m *InsertIssueRequest) String() string
- func (i *InsertIssueRequest) Validate() error
- func (m *InsertIssueRequest) XXX_DiscardUnknown()
- func (m *InsertIssueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InsertIssueRequest) XXX_Merge(src proto.Message)
- func (m *InsertIssueRequest) XXX_Size() int
- func (m *InsertIssueRequest) XXX_Unmarshal(b []byte) error
- type InsertIssueResponse
- func (*InsertIssueResponse) Descriptor() ([]byte, []int)
- func (m *InsertIssueResponse) GetIssue() *Issue
- func (*InsertIssueResponse) ProtoMessage()
- func (m *InsertIssueResponse) Reset()
- func (m *InsertIssueResponse) String() string
- func (m *InsertIssueResponse) XXX_DiscardUnknown()
- func (m *InsertIssueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InsertIssueResponse) XXX_Merge(src proto.Message)
- func (m *InsertIssueResponse) XXX_Size() int
- func (m *InsertIssueResponse) XXX_Unmarshal(b []byte) error
- type Issue
- func (*Issue) Descriptor() ([]byte, []int)
- func (i *Issue) FindCC(name string) *AtomPerson
- func (m *Issue) GetAuthor() *AtomPerson
- func (m *Issue) GetBlockedOn() []*IssueRef
- func (m *Issue) GetCc() []*AtomPerson
- func (m *Issue) GetComponents() []string
- func (m *Issue) GetDescription() string
- func (m *Issue) GetId() int32
- func (m *Issue) GetLabels() []string
- func (m *Issue) GetOwner() *AtomPerson
- func (m *Issue) GetProjectId() string
- func (m *Issue) GetStatus() string
- func (m *Issue) GetSummary() string
- func (m *Issue) GetUpdated() string
- func (*Issue) ProtoMessage()
- func (m *Issue) Reset()
- func (m *Issue) String() string
- func (i *Issue) Validate() error
- func (m *Issue) XXX_DiscardUnknown()
- func (m *Issue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Issue) XXX_Merge(src proto.Message)
- func (m *Issue) XXX_Size() int
- func (m *Issue) XXX_Unmarshal(b []byte) error
- type IssueRef
- func (*IssueRef) Descriptor() ([]byte, []int)
- func (m *IssueRef) GetIssueId() int32
- func (m *IssueRef) GetProjectId() string
- func (*IssueRef) ProtoMessage()
- func (m *IssueRef) Reset()
- func (m *IssueRef) String() string
- func (i *IssueRef) Validate() error
- func (m *IssueRef) XXX_DiscardUnknown()
- func (m *IssueRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IssueRef) XXX_Merge(src proto.Message)
- func (m *IssueRef) XXX_Size() int
- func (m *IssueRef) XXX_Unmarshal(b []byte) error
- type IssuesListRequest
- func (*IssuesListRequest) Descriptor() ([]byte, []int)
- func (m *IssuesListRequest) GetAdditionalProject() []string
- func (m *IssuesListRequest) GetCan() IssuesListRequest_CannedQuery
- func (m *IssuesListRequest) GetLabel() string
- func (m *IssuesListRequest) GetMaxResults() int32
- func (m *IssuesListRequest) GetOwner() string
- func (m *IssuesListRequest) GetProjectId() string
- func (m *IssuesListRequest) GetPublishedMax() int64
- func (m *IssuesListRequest) GetPublishedMin() int64
- func (m *IssuesListRequest) GetQ() string
- func (m *IssuesListRequest) GetSort() string
- func (m *IssuesListRequest) GetStartIndex() int32
- func (m *IssuesListRequest) GetStatus() string
- func (m *IssuesListRequest) GetUpdatedMax() int64
- func (m *IssuesListRequest) GetUpdatedMin() int64
- func (*IssuesListRequest) ProtoMessage()
- func (m *IssuesListRequest) Reset()
- func (m *IssuesListRequest) String() string
- func (m *IssuesListRequest) XXX_DiscardUnknown()
- func (m *IssuesListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IssuesListRequest) XXX_Merge(src proto.Message)
- func (m *IssuesListRequest) XXX_Size() int
- func (m *IssuesListRequest) XXX_Unmarshal(b []byte) error
- type IssuesListRequest_CannedQuery
- type IssuesListResponse
- func (*IssuesListResponse) Descriptor() ([]byte, []int)
- func (m *IssuesListResponse) GetError() *ErrorMessage
- func (m *IssuesListResponse) GetItems() []*Issue
- func (m *IssuesListResponse) GetTotalResults() int32
- func (*IssuesListResponse) ProtoMessage()
- func (m *IssuesListResponse) Reset()
- func (m *IssuesListResponse) String() string
- func (m *IssuesListResponse) XXX_DiscardUnknown()
- func (m *IssuesListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IssuesListResponse) XXX_Merge(src proto.Message)
- func (m *IssuesListResponse) XXX_Size() int
- func (m *IssuesListResponse) XXX_Unmarshal(b []byte) error
- type ListCommentsRequest
- func (*ListCommentsRequest) Descriptor() ([]byte, []int)
- func (m *ListCommentsRequest) GetIssue() *IssueRef
- func (m *ListCommentsRequest) GetMaxResults() int32
- func (m *ListCommentsRequest) GetStartIndex() int32
- func (*ListCommentsRequest) ProtoMessage()
- func (m *ListCommentsRequest) Reset()
- func (m *ListCommentsRequest) String() string
- func (l *ListCommentsRequest) Validate() error
- func (m *ListCommentsRequest) XXX_DiscardUnknown()
- func (m *ListCommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCommentsRequest) XXX_Merge(src proto.Message)
- func (m *ListCommentsRequest) XXX_Size() int
- func (m *ListCommentsRequest) XXX_Unmarshal(b []byte) error
- type ListCommentsResponse
- func (*ListCommentsResponse) Descriptor() ([]byte, []int)
- func (m *ListCommentsResponse) GetError() *ErrorMessage
- func (m *ListCommentsResponse) GetItems() []*Comment
- func (m *ListCommentsResponse) GetTotalResults() int32
- func (*ListCommentsResponse) ProtoMessage()
- func (m *ListCommentsResponse) Reset()
- func (m *ListCommentsResponse) String() string
- func (m *ListCommentsResponse) XXX_DiscardUnknown()
- func (m *ListCommentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCommentsResponse) XXX_Merge(src proto.Message)
- func (m *ListCommentsResponse) XXX_Size() int
- func (m *ListCommentsResponse) XXX_Unmarshal(b []byte) error
- type MockMonorailClient
- func (m *MockMonorailClient) EXPECT() *MockMonorailClientMockRecorder
- func (m *MockMonorailClient) InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error)
- func (m *MockMonorailClient) InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.CallOption) (*InsertIssueResponse, error)
- func (m *MockMonorailClient) IssuesList(ctx context.Context, in *IssuesListRequest, opts ...grpc.CallOption) (*IssuesListResponse, error)
- type MockMonorailClientMockRecorder
- func (mr *MockMonorailClientMockRecorder) InsertComment(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockMonorailClientMockRecorder) InsertIssue(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockMonorailClientMockRecorder) IssuesList(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockMonorailServer
- func (m *MockMonorailServer) EXPECT() *MockMonorailServerMockRecorder
- func (m *MockMonorailServer) InsertComment(arg0 context.Context, arg1 *InsertCommentRequest) (*InsertCommentResponse, error)
- func (m *MockMonorailServer) InsertIssue(arg0 context.Context, arg1 *InsertIssueRequest) (*InsertIssueResponse, error)
- func (m *MockMonorailServer) IssuesList(arg0 context.Context, arg1 *IssuesListRequest) (*IssuesListResponse, error)
- type MockMonorailServerMockRecorder
- type MonorailClient
- type MonorailServer
- type UnimplementedMonorailServer
- func (*UnimplementedMonorailServer) GetIssue(ctx context.Context, req *GetIssueRequest) (*Issue, error)
- func (*UnimplementedMonorailServer) InsertComment(ctx context.Context, req *InsertCommentRequest) (*InsertCommentResponse, error)
- func (*UnimplementedMonorailServer) InsertIssue(ctx context.Context, req *InsertIssueRequest) (*InsertIssueResponse, error)
- func (*UnimplementedMonorailServer) IssuesList(ctx context.Context, req *IssuesListRequest) (*IssuesListResponse, error)
- func (*UnimplementedMonorailServer) ListComments(ctx context.Context, req *ListCommentsRequest) (*ListCommentsResponse, error)
- type Update
- func (*Update) Descriptor() ([]byte, []int)
- func (m *Update) GetIsDescription() bool
- func (m *Update) GetLabels() []string
- func (m *Update) GetStatus() string
- func (*Update) ProtoMessage()
- func (m *Update) Reset()
- func (m *Update) String() string
- func (m *Update) XXX_DiscardUnknown()
- func (m *Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Update) XXX_Merge(src proto.Message)
- func (m *Update) XXX_Size() int
- func (m *Update) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // Unconrimed means the issue is new, has been not verified or reproduced.. StatusUnconfirmed = "Unconfirmed" // Untriaged means the issue is confirmed, not reviews for priority of assignment. StatusUntriaged = "Untriaged" // Available means the issue is triaged, but no owner assigned. StatusAvailable = "Available" // Assigned means the issue is assigned. StatusAssigned = "Assigned" // Started means the work in progress.. StatusStarted = "Started" // ExternalDependency means the issue requires action from a third party. StatusExternalDependency = "ExternalDependency" // Fixed means work completed, needs verification StatusFixed = "Fixed" // Verified means test or reporter verified that the fix works StatusVerified = "Verified" // Duplicate means same root cause as another issue StatusDuplicate = "Duplicate" // WontFix means cannot reproduce, works as intended, invalid or absolete. StatusWontFix = "WontFix" // Archived means old issue with no activity. StatusArchived = "Archived" )
Standard issue statuses.
const AuthScope = "https://www.googleapis.com/auth/userinfo.email"
AuthScope is OAuth 2.0 auth scope used by Monorail.
const LabelRestrictViewGoogle = "Restrict-View-Google"
LabelRestrictViewGoogle specifies that an issue must be visible to googlers only.
Variables ¶
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,
}
Functions ¶
func FileDescriptorSet ¶
func FileDescriptorSet() *descriptor.FileDescriptorSet
FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.
Will not return nil.
Do NOT modify the returned descriptor.
func RegisterMonorailServer ¶
func RegisterMonorailServer(s prpc.Registrar, srv MonorailServer)
Types ¶
type AtomPerson ¶
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:"-"`
}
Identifies a Monorail user.
func (*AtomPerson) Descriptor ¶
func (*AtomPerson) Descriptor() ([]byte, []int)
func (*AtomPerson) GetName ¶
func (m *AtomPerson) GetName() string
func (*AtomPerson) ProtoMessage ¶
func (*AtomPerson) ProtoMessage()
func (*AtomPerson) Reset ¶
func (m *AtomPerson) Reset()
func (*AtomPerson) String ¶
func (m *AtomPerson) String() string
func (*AtomPerson) Validate ¶
func (a *AtomPerson) Validate() error
Validate checks the message for errors.
func (*AtomPerson) XXX_DiscardUnknown ¶
func (m *AtomPerson) XXX_DiscardUnknown()
func (*AtomPerson) XXX_Marshal ¶
func (m *AtomPerson) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AtomPerson) XXX_Merge ¶
func (m *AtomPerson) XXX_Merge(src proto.Message)
func (*AtomPerson) XXX_Size ¶
func (m *AtomPerson) XXX_Size() int
func (*AtomPerson) XXX_Unmarshal ¶
func (m *AtomPerson) XXX_Unmarshal(b []byte) error
type Comment ¶
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:"-"`
}
Comment represents monorail comment. This field is partial. Derived from `IssueCommentWrapper` type in api_pb2_v1.py.
func (*Comment) Descriptor ¶
func (*Comment) GetAuthor ¶
func (m *Comment) GetAuthor() *AtomPerson
func (*Comment) GetContent ¶
func (*Comment) GetDeletedBy ¶
func (m *Comment) GetDeletedBy() *AtomPerson
func (*Comment) GetIsDescription ¶
func (*Comment) GetPublished ¶
func (*Comment) GetUpdates ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) XXX_DiscardUnknown ¶
func (m *Comment) XXX_DiscardUnknown()
func (*Comment) XXX_Marshal ¶
func (*Comment) XXX_Unmarshal ¶
type ErrorMessage ¶
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 (*ErrorMessage) Descriptor ¶
func (*ErrorMessage) Descriptor() ([]byte, []int)
func (*ErrorMessage) GetCode ¶
func (m *ErrorMessage) GetCode() int32
func (*ErrorMessage) GetMessage ¶
func (m *ErrorMessage) GetMessage() string
func (*ErrorMessage) GetReason ¶
func (m *ErrorMessage) GetReason() string
func (*ErrorMessage) ProtoMessage ¶
func (*ErrorMessage) ProtoMessage()
func (*ErrorMessage) Reset ¶
func (m *ErrorMessage) Reset()
func (*ErrorMessage) String ¶
func (m *ErrorMessage) String() string
func (*ErrorMessage) XXX_DiscardUnknown ¶
func (m *ErrorMessage) XXX_DiscardUnknown()
func (*ErrorMessage) XXX_Marshal ¶
func (m *ErrorMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ErrorMessage) XXX_Merge ¶
func (m *ErrorMessage) XXX_Merge(src proto.Message)
func (*ErrorMessage) XXX_Size ¶
func (m *ErrorMessage) XXX_Size() int
func (*ErrorMessage) XXX_Unmarshal ¶
func (m *ErrorMessage) XXX_Unmarshal(b []byte) error
type GetIssueRequest ¶
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 (*GetIssueRequest) Descriptor ¶
func (*GetIssueRequest) Descriptor() ([]byte, []int)
func (*GetIssueRequest) GetIssue ¶
func (m *GetIssueRequest) GetIssue() *IssueRef
func (*GetIssueRequest) ProtoMessage ¶
func (*GetIssueRequest) ProtoMessage()
func (*GetIssueRequest) Reset ¶
func (m *GetIssueRequest) Reset()
func (*GetIssueRequest) String ¶
func (m *GetIssueRequest) String() string
func (*GetIssueRequest) XXX_DiscardUnknown ¶
func (m *GetIssueRequest) XXX_DiscardUnknown()
func (*GetIssueRequest) XXX_Marshal ¶
func (m *GetIssueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetIssueRequest) XXX_Merge ¶
func (m *GetIssueRequest) XXX_Merge(src proto.Message)
func (*GetIssueRequest) XXX_Size ¶
func (m *GetIssueRequest) XXX_Size() int
func (*GetIssueRequest) XXX_Unmarshal ¶
func (m *GetIssueRequest) XXX_Unmarshal(b []byte) error
type InsertCommentRequest ¶
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:"-"`
}
Request for Monorail.InsertComment()
func (*InsertCommentRequest) Descriptor ¶
func (*InsertCommentRequest) Descriptor() ([]byte, []int)
func (*InsertCommentRequest) GetComment ¶
func (m *InsertCommentRequest) GetComment() *InsertCommentRequest_Comment
func (*InsertCommentRequest) GetIssue ¶
func (m *InsertCommentRequest) GetIssue() *IssueRef
func (*InsertCommentRequest) GetSendEmail ¶
func (m *InsertCommentRequest) GetSendEmail() bool
func (*InsertCommentRequest) ProtoMessage ¶
func (*InsertCommentRequest) ProtoMessage()
func (*InsertCommentRequest) Reset ¶
func (m *InsertCommentRequest) Reset()
func (*InsertCommentRequest) String ¶
func (m *InsertCommentRequest) String() string
func (*InsertCommentRequest) XXX_DiscardUnknown ¶
func (m *InsertCommentRequest) XXX_DiscardUnknown()
func (*InsertCommentRequest) XXX_Marshal ¶
func (m *InsertCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InsertCommentRequest) XXX_Merge ¶
func (m *InsertCommentRequest) XXX_Merge(src proto.Message)
func (*InsertCommentRequest) XXX_Size ¶
func (m *InsertCommentRequest) XXX_Size() int
func (*InsertCommentRequest) XXX_Unmarshal ¶
func (m *InsertCommentRequest) XXX_Unmarshal(b []byte) error
type InsertCommentRequest_Comment ¶
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:"-"`
}
Defines the comment. This message is partial. Derived from IssueCommentWrapper type in api_pb2_v1.py.
func (*InsertCommentRequest_Comment) Descriptor ¶
func (*InsertCommentRequest_Comment) Descriptor() ([]byte, []int)
func (*InsertCommentRequest_Comment) GetAuthor ¶
func (m *InsertCommentRequest_Comment) GetAuthor() *AtomPerson
func (*InsertCommentRequest_Comment) GetContent ¶
func (m *InsertCommentRequest_Comment) GetContent() string
func (*InsertCommentRequest_Comment) GetUpdates ¶
func (m *InsertCommentRequest_Comment) GetUpdates() *Update
func (*InsertCommentRequest_Comment) ProtoMessage ¶
func (*InsertCommentRequest_Comment) ProtoMessage()
func (*InsertCommentRequest_Comment) Reset ¶
func (m *InsertCommentRequest_Comment) Reset()
func (*InsertCommentRequest_Comment) String ¶
func (m *InsertCommentRequest_Comment) String() string
func (*InsertCommentRequest_Comment) XXX_DiscardUnknown ¶
func (m *InsertCommentRequest_Comment) XXX_DiscardUnknown()
func (*InsertCommentRequest_Comment) XXX_Marshal ¶
func (m *InsertCommentRequest_Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InsertCommentRequest_Comment) XXX_Merge ¶
func (m *InsertCommentRequest_Comment) XXX_Merge(src proto.Message)
func (*InsertCommentRequest_Comment) XXX_Size ¶
func (m *InsertCommentRequest_Comment) XXX_Size() int
func (*InsertCommentRequest_Comment) XXX_Unmarshal ¶
func (m *InsertCommentRequest_Comment) XXX_Unmarshal(b []byte) error
type InsertCommentResponse ¶
type InsertCommentResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*InsertCommentResponse) Descriptor ¶
func (*InsertCommentResponse) Descriptor() ([]byte, []int)
func (*InsertCommentResponse) ProtoMessage ¶
func (*InsertCommentResponse) ProtoMessage()
func (*InsertCommentResponse) Reset ¶
func (m *InsertCommentResponse) Reset()
func (*InsertCommentResponse) String ¶
func (m *InsertCommentResponse) String() string
func (*InsertCommentResponse) XXX_DiscardUnknown ¶
func (m *InsertCommentResponse) XXX_DiscardUnknown()
func (*InsertCommentResponse) XXX_Marshal ¶
func (m *InsertCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InsertCommentResponse) XXX_Merge ¶
func (m *InsertCommentResponse) XXX_Merge(src proto.Message)
func (*InsertCommentResponse) XXX_Size ¶
func (m *InsertCommentResponse) XXX_Size() int
func (*InsertCommentResponse) XXX_Unmarshal ¶
func (m *InsertCommentResponse) XXX_Unmarshal(b []byte) error
type InsertIssueRequest ¶
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:"-"`
}
Request for Monorail.InsertIssue().
func (*InsertIssueRequest) Descriptor ¶
func (*InsertIssueRequest) Descriptor() ([]byte, []int)
func (*InsertIssueRequest) GetIssue ¶
func (m *InsertIssueRequest) GetIssue() *Issue
func (*InsertIssueRequest) GetSendEmail ¶
func (m *InsertIssueRequest) GetSendEmail() bool
func (*InsertIssueRequest) ProtoMessage ¶
func (*InsertIssueRequest) ProtoMessage()
func (*InsertIssueRequest) Reset ¶
func (m *InsertIssueRequest) Reset()
func (*InsertIssueRequest) String ¶
func (m *InsertIssueRequest) String() string
func (*InsertIssueRequest) Validate ¶
func (i *InsertIssueRequest) Validate() error
Validate checks the message for errors.
func (*InsertIssueRequest) XXX_DiscardUnknown ¶
func (m *InsertIssueRequest) XXX_DiscardUnknown()
func (*InsertIssueRequest) XXX_Marshal ¶
func (m *InsertIssueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InsertIssueRequest) XXX_Merge ¶
func (m *InsertIssueRequest) XXX_Merge(src proto.Message)
func (*InsertIssueRequest) XXX_Size ¶
func (m *InsertIssueRequest) XXX_Size() int
func (*InsertIssueRequest) XXX_Unmarshal ¶
func (m *InsertIssueRequest) XXX_Unmarshal(b []byte) error
type InsertIssueResponse ¶
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:"-"`
}
Response for Monorail.InsertIssue()
func (*InsertIssueResponse) Descriptor ¶
func (*InsertIssueResponse) Descriptor() ([]byte, []int)
func (*InsertIssueResponse) GetIssue ¶
func (m *InsertIssueResponse) GetIssue() *Issue
func (*InsertIssueResponse) ProtoMessage ¶
func (*InsertIssueResponse) ProtoMessage()
func (*InsertIssueResponse) Reset ¶
func (m *InsertIssueResponse) Reset()
func (*InsertIssueResponse) String ¶
func (m *InsertIssueResponse) String() string
func (*InsertIssueResponse) XXX_DiscardUnknown ¶
func (m *InsertIssueResponse) XXX_DiscardUnknown()
func (*InsertIssueResponse) XXX_Marshal ¶
func (m *InsertIssueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InsertIssueResponse) XXX_Merge ¶
func (m *InsertIssueResponse) XXX_Merge(src proto.Message)
func (*InsertIssueResponse) XXX_Size ¶
func (m *InsertIssueResponse) XXX_Size() int
func (*InsertIssueResponse) XXX_Unmarshal ¶
func (m *InsertIssueResponse) XXX_Unmarshal(b []byte) error
type 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:"-"`
}
A monorail issue.
func (*Issue) Descriptor ¶
func (*Issue) FindCC ¶
func (i *Issue) FindCC(name string) *AtomPerson
FindCC finds a CC'ed person by name.
func (*Issue) GetAuthor ¶
func (m *Issue) GetAuthor() *AtomPerson
func (*Issue) GetBlockedOn ¶
func (*Issue) GetCc ¶
func (m *Issue) GetCc() []*AtomPerson
func (*Issue) GetComponents ¶
func (*Issue) GetDescription ¶
func (*Issue) GetOwner ¶
func (m *Issue) GetOwner() *AtomPerson
func (*Issue) GetProjectId ¶
func (*Issue) GetSummary ¶
func (*Issue) GetUpdated ¶
func (*Issue) ProtoMessage ¶
func (*Issue) ProtoMessage()
func (*Issue) XXX_DiscardUnknown ¶
func (m *Issue) XXX_DiscardUnknown()
func (*Issue) XXX_Marshal ¶
func (*Issue) XXX_Unmarshal ¶
type IssueRef ¶
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:"-"`
}
IssueRef references another issue in the same Monorail instance.
func (*IssueRef) Descriptor ¶
func (*IssueRef) GetIssueId ¶
func (*IssueRef) GetProjectId ¶
func (*IssueRef) ProtoMessage ¶
func (*IssueRef) ProtoMessage()
func (*IssueRef) XXX_DiscardUnknown ¶
func (m *IssueRef) XXX_DiscardUnknown()
func (*IssueRef) XXX_Marshal ¶
func (*IssueRef) XXX_Unmarshal ¶
type IssuesListRequest ¶
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:"-"`
}
Request for a list of Issues.
func (*IssuesListRequest) Descriptor ¶
func (*IssuesListRequest) Descriptor() ([]byte, []int)
func (*IssuesListRequest) GetAdditionalProject ¶
func (m *IssuesListRequest) GetAdditionalProject() []string
func (*IssuesListRequest) GetCan ¶
func (m *IssuesListRequest) GetCan() IssuesListRequest_CannedQuery
func (*IssuesListRequest) GetLabel ¶
func (m *IssuesListRequest) GetLabel() string
func (*IssuesListRequest) GetMaxResults ¶
func (m *IssuesListRequest) GetMaxResults() int32
func (*IssuesListRequest) GetOwner ¶
func (m *IssuesListRequest) GetOwner() string
func (*IssuesListRequest) GetProjectId ¶
func (m *IssuesListRequest) GetProjectId() string
func (*IssuesListRequest) GetPublishedMax ¶
func (m *IssuesListRequest) GetPublishedMax() int64
func (*IssuesListRequest) GetPublishedMin ¶
func (m *IssuesListRequest) GetPublishedMin() int64
func (*IssuesListRequest) GetQ ¶
func (m *IssuesListRequest) GetQ() string
func (*IssuesListRequest) GetSort ¶
func (m *IssuesListRequest) GetSort() string
func (*IssuesListRequest) GetStartIndex ¶
func (m *IssuesListRequest) GetStartIndex() int32
func (*IssuesListRequest) GetStatus ¶
func (m *IssuesListRequest) GetStatus() string
func (*IssuesListRequest) GetUpdatedMax ¶
func (m *IssuesListRequest) GetUpdatedMax() int64
func (*IssuesListRequest) GetUpdatedMin ¶
func (m *IssuesListRequest) GetUpdatedMin() int64
func (*IssuesListRequest) ProtoMessage ¶
func (*IssuesListRequest) ProtoMessage()
func (*IssuesListRequest) Reset ¶
func (m *IssuesListRequest) Reset()
func (*IssuesListRequest) String ¶
func (m *IssuesListRequest) String() string
func (*IssuesListRequest) XXX_DiscardUnknown ¶
func (m *IssuesListRequest) XXX_DiscardUnknown()
func (*IssuesListRequest) XXX_Marshal ¶
func (m *IssuesListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IssuesListRequest) XXX_Merge ¶
func (m *IssuesListRequest) XXX_Merge(src proto.Message)
func (*IssuesListRequest) XXX_Size ¶
func (m *IssuesListRequest) XXX_Size() int
func (*IssuesListRequest) XXX_Unmarshal ¶
func (m *IssuesListRequest) XXX_Unmarshal(b []byte) error
type IssuesListRequest_CannedQuery ¶
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 )
func (IssuesListRequest_CannedQuery) EnumDescriptor ¶
func (IssuesListRequest_CannedQuery) EnumDescriptor() ([]byte, []int)
func (IssuesListRequest_CannedQuery) String ¶
func (x IssuesListRequest_CannedQuery) String() string
type IssuesListResponse ¶
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 (*IssuesListResponse) Descriptor ¶
func (*IssuesListResponse) Descriptor() ([]byte, []int)
func (*IssuesListResponse) GetError ¶
func (m *IssuesListResponse) GetError() *ErrorMessage
func (*IssuesListResponse) GetItems ¶
func (m *IssuesListResponse) GetItems() []*Issue
func (*IssuesListResponse) GetTotalResults ¶
func (m *IssuesListResponse) GetTotalResults() int32
func (*IssuesListResponse) ProtoMessage ¶
func (*IssuesListResponse) ProtoMessage()
func (*IssuesListResponse) Reset ¶
func (m *IssuesListResponse) Reset()
func (*IssuesListResponse) String ¶
func (m *IssuesListResponse) String() string
func (*IssuesListResponse) XXX_DiscardUnknown ¶
func (m *IssuesListResponse) XXX_DiscardUnknown()
func (*IssuesListResponse) XXX_Marshal ¶
func (m *IssuesListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IssuesListResponse) XXX_Merge ¶
func (m *IssuesListResponse) XXX_Merge(src proto.Message)
func (*IssuesListResponse) XXX_Size ¶
func (m *IssuesListResponse) XXX_Size() int
func (*IssuesListResponse) XXX_Unmarshal ¶
func (m *IssuesListResponse) XXX_Unmarshal(b []byte) error
type ListCommentsRequest ¶
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 (*ListCommentsRequest) Descriptor ¶
func (*ListCommentsRequest) Descriptor() ([]byte, []int)
func (*ListCommentsRequest) GetIssue ¶
func (m *ListCommentsRequest) GetIssue() *IssueRef
func (*ListCommentsRequest) GetMaxResults ¶
func (m *ListCommentsRequest) GetMaxResults() int32
func (*ListCommentsRequest) GetStartIndex ¶
func (m *ListCommentsRequest) GetStartIndex() int32
func (*ListCommentsRequest) ProtoMessage ¶
func (*ListCommentsRequest) ProtoMessage()
func (*ListCommentsRequest) Reset ¶
func (m *ListCommentsRequest) Reset()
func (*ListCommentsRequest) String ¶
func (m *ListCommentsRequest) String() string
func (*ListCommentsRequest) Validate ¶
func (l *ListCommentsRequest) Validate() error
Validate checks the message for errors.
func (*ListCommentsRequest) XXX_DiscardUnknown ¶
func (m *ListCommentsRequest) XXX_DiscardUnknown()
func (*ListCommentsRequest) XXX_Marshal ¶
func (m *ListCommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCommentsRequest) XXX_Merge ¶
func (m *ListCommentsRequest) XXX_Merge(src proto.Message)
func (*ListCommentsRequest) XXX_Size ¶
func (m *ListCommentsRequest) XXX_Size() int
func (*ListCommentsRequest) XXX_Unmarshal ¶
func (m *ListCommentsRequest) XXX_Unmarshal(b []byte) error
type ListCommentsResponse ¶
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 (*ListCommentsResponse) Descriptor ¶
func (*ListCommentsResponse) Descriptor() ([]byte, []int)
func (*ListCommentsResponse) GetError ¶
func (m *ListCommentsResponse) GetError() *ErrorMessage
func (*ListCommentsResponse) GetItems ¶
func (m *ListCommentsResponse) GetItems() []*Comment
func (*ListCommentsResponse) GetTotalResults ¶
func (m *ListCommentsResponse) GetTotalResults() int32
func (*ListCommentsResponse) ProtoMessage ¶
func (*ListCommentsResponse) ProtoMessage()
func (*ListCommentsResponse) Reset ¶
func (m *ListCommentsResponse) Reset()
func (*ListCommentsResponse) String ¶
func (m *ListCommentsResponse) String() string
func (*ListCommentsResponse) XXX_DiscardUnknown ¶
func (m *ListCommentsResponse) XXX_DiscardUnknown()
func (*ListCommentsResponse) XXX_Marshal ¶
func (m *ListCommentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCommentsResponse) XXX_Merge ¶
func (m *ListCommentsResponse) XXX_Merge(src proto.Message)
func (*ListCommentsResponse) XXX_Size ¶
func (m *ListCommentsResponse) XXX_Size() int
func (*ListCommentsResponse) XXX_Unmarshal ¶
func (m *ListCommentsResponse) XXX_Unmarshal(b []byte) error
type MockMonorailClient ¶
type MockMonorailClient struct {
// contains filtered or unexported fields
}
MockMonorailClient is a mock of MonorailClient interface
func NewMockMonorailClient ¶
func NewMockMonorailClient(ctrl *gomock.Controller) *MockMonorailClient
NewMockMonorailClient creates a new mock instance
func (*MockMonorailClient) EXPECT ¶
func (m *MockMonorailClient) EXPECT() *MockMonorailClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMonorailClient) InsertComment ¶
func (m *MockMonorailClient) InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error)
InsertComment mocks base method
func (*MockMonorailClient) InsertIssue ¶
func (m *MockMonorailClient) InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.CallOption) (*InsertIssueResponse, error)
InsertIssue mocks base method
func (*MockMonorailClient) IssuesList ¶
func (m *MockMonorailClient) IssuesList(ctx context.Context, in *IssuesListRequest, opts ...grpc.CallOption) (*IssuesListResponse, error)
IssuesList mocks base method
type MockMonorailClientMockRecorder ¶
type MockMonorailClientMockRecorder struct {
// contains filtered or unexported fields
}
MockMonorailClientMockRecorder is the mock recorder for MockMonorailClient
func (*MockMonorailClientMockRecorder) InsertComment ¶
func (mr *MockMonorailClientMockRecorder) InsertComment(ctx, in interface{}, opts ...interface{}) *gomock.Call
InsertComment indicates an expected call of InsertComment
func (*MockMonorailClientMockRecorder) InsertIssue ¶
func (mr *MockMonorailClientMockRecorder) InsertIssue(ctx, in interface{}, opts ...interface{}) *gomock.Call
InsertIssue indicates an expected call of InsertIssue
func (*MockMonorailClientMockRecorder) IssuesList ¶
func (mr *MockMonorailClientMockRecorder) IssuesList(ctx, in interface{}, opts ...interface{}) *gomock.Call
IssuesList indicates an expected call of IssuesList
type MockMonorailServer ¶
type MockMonorailServer struct {
// contains filtered or unexported fields
}
MockMonorailServer is a mock of MonorailServer interface
func NewMockMonorailServer ¶
func NewMockMonorailServer(ctrl *gomock.Controller) *MockMonorailServer
NewMockMonorailServer creates a new mock instance
func (*MockMonorailServer) EXPECT ¶
func (m *MockMonorailServer) EXPECT() *MockMonorailServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMonorailServer) InsertComment ¶
func (m *MockMonorailServer) InsertComment(arg0 context.Context, arg1 *InsertCommentRequest) (*InsertCommentResponse, error)
InsertComment mocks base method
func (*MockMonorailServer) InsertIssue ¶
func (m *MockMonorailServer) InsertIssue(arg0 context.Context, arg1 *InsertIssueRequest) (*InsertIssueResponse, error)
InsertIssue mocks base method
func (*MockMonorailServer) IssuesList ¶
func (m *MockMonorailServer) IssuesList(arg0 context.Context, arg1 *IssuesListRequest) (*IssuesListResponse, error)
IssuesList mocks base method
type MockMonorailServerMockRecorder ¶
type MockMonorailServerMockRecorder struct {
// contains filtered or unexported fields
}
MockMonorailServerMockRecorder is the mock recorder for MockMonorailServer
func (*MockMonorailServerMockRecorder) InsertComment ¶
func (mr *MockMonorailServerMockRecorder) InsertComment(arg0, arg1 interface{}) *gomock.Call
InsertComment indicates an expected call of InsertComment
func (*MockMonorailServerMockRecorder) InsertIssue ¶
func (mr *MockMonorailServerMockRecorder) InsertIssue(arg0, arg1 interface{}) *gomock.Call
InsertIssue indicates an expected call of InsertIssue
func (*MockMonorailServerMockRecorder) IssuesList ¶
func (mr *MockMonorailServerMockRecorder) IssuesList(arg0, arg1 interface{}) *gomock.Call
IssuesList indicates an expected call of IssuesList
type MonorailClient ¶
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)
}
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.
func NewEndpointsClient ¶
func NewEndpointsClient(client *http.Client, url string) MonorailClient
NewEndpointsClient creates a MonorailClient that send requests to Monorail Cloud Endpoints API at url.
Example of url: "https://monorail-staging.appspot.com/_ah/api/monorail/v1"
Methods do not implement retries. Use "go.chromium.org/luci/common/errors".IsTransient to check if an error is transient.
Client methods return an error on any grpc.CallOption.
func NewMonorailClient ¶
func NewMonorailClient(cc grpc.ClientConnInterface) MonorailClient
func NewMonorailPRPCClient ¶
func NewMonorailPRPCClient(client *prpc.Client) MonorailClient
type MonorailServer ¶
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)
}
MonorailServer is the server API for Monorail service.
type UnimplementedMonorailServer ¶
type UnimplementedMonorailServer struct {
}
UnimplementedMonorailServer can be embedded to have forward compatible implementations.
func (*UnimplementedMonorailServer) GetIssue ¶
func (*UnimplementedMonorailServer) GetIssue(ctx context.Context, req *GetIssueRequest) (*Issue, error)
func (*UnimplementedMonorailServer) InsertComment ¶
func (*UnimplementedMonorailServer) InsertComment(ctx context.Context, req *InsertCommentRequest) (*InsertCommentResponse, error)
func (*UnimplementedMonorailServer) InsertIssue ¶
func (*UnimplementedMonorailServer) InsertIssue(ctx context.Context, req *InsertIssueRequest) (*InsertIssueResponse, error)
func (*UnimplementedMonorailServer) IssuesList ¶
func (*UnimplementedMonorailServer) IssuesList(ctx context.Context, req *IssuesListRequest) (*IssuesListResponse, error)
func (*UnimplementedMonorailServer) ListComments ¶
func (*UnimplementedMonorailServer) ListComments(ctx context.Context, req *ListCommentsRequest) (*ListCommentsResponse, error)
type Update ¶
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:"-"`
}
Defines a mutation to an issue. This message is partial. Derived from Update type in api_pb2_v1.py.
func (*Update) Descriptor ¶
func (*Update) GetIsDescription ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) XXX_DiscardUnknown ¶
func (m *Update) XXX_DiscardUnknown()