Documentation ¶
Overview ¶
Package gerritpb contains Gerrit service definition.
Package gerritpb is a generated GoMock package.
Index ¶
- Constants
- Variables
- func FileDescriptorSet() *descriptorpb.FileDescriptorSet
- func RegisterGerritServer(s grpc.ServiceRegistrar, srv GerritServer)
- type AbandonChangeRequest
- func (*AbandonChangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AbandonChangeRequest) GetMessage() string
- func (x *AbandonChangeRequest) GetNumber() int64
- func (x *AbandonChangeRequest) GetProject() string
- func (*AbandonChangeRequest) ProtoMessage()
- func (x *AbandonChangeRequest) ProtoReflect() protoreflect.Message
- func (x *AbandonChangeRequest) Reset()
- func (x *AbandonChangeRequest) String() string
- type AccountInfo
- func (*AccountInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AccountInfo) GetAccountId() int64
- func (x *AccountInfo) GetEmail() string
- func (x *AccountInfo) GetName() string
- func (x *AccountInfo) GetSecondaryEmails() []string
- func (x *AccountInfo) GetTags() []string
- func (x *AccountInfo) GetUsername() string
- func (*AccountInfo) ProtoMessage()
- func (x *AccountInfo) ProtoReflect() protoreflect.Message
- func (x *AccountInfo) Reset()
- func (x *AccountInfo) String() string
- type AccountOptions
- func (*AccountOptions) Descriptor() ([]byte, []int)deprecated
- func (x *AccountOptions) GetAllEmails() bool
- func (x *AccountOptions) GetDetails() bool
- func (*AccountOptions) ProtoMessage()
- func (x *AccountOptions) ProtoReflect() protoreflect.Message
- func (x *AccountOptions) Reset()
- func (x *AccountOptions) String() string
- type AddReviewerRequest
- func (*AddReviewerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddReviewerRequest) GetConfirmed() bool
- func (x *AddReviewerRequest) GetNotify() Notify
- func (x *AddReviewerRequest) GetNumber() int64
- func (x *AddReviewerRequest) GetProject() string
- func (x *AddReviewerRequest) GetReviewer() string
- func (x *AddReviewerRequest) GetState() AddReviewerRequest_State
- func (*AddReviewerRequest) ProtoMessage()
- func (x *AddReviewerRequest) ProtoReflect() protoreflect.Message
- func (x *AddReviewerRequest) Reset()
- func (x *AddReviewerRequest) String() string
- type AddReviewerRequest_State
- func (AddReviewerRequest_State) Descriptor() protoreflect.EnumDescriptor
- func (x AddReviewerRequest_State) Enum() *AddReviewerRequest_State
- func (AddReviewerRequest_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x AddReviewerRequest_State) Number() protoreflect.EnumNumber
- func (x AddReviewerRequest_State) String() string
- func (AddReviewerRequest_State) Type() protoreflect.EnumType
- type AddReviewerResult
- func (*AddReviewerResult) Descriptor() ([]byte, []int)deprecated
- func (x *AddReviewerResult) GetCcs() []*ReviewerInfo
- func (x *AddReviewerResult) GetConfirm() bool
- func (x *AddReviewerResult) GetError() string
- func (x *AddReviewerResult) GetInput() string
- func (x *AddReviewerResult) GetReviewers() []*ReviewerInfo
- func (*AddReviewerResult) ProtoMessage()
- func (x *AddReviewerResult) ProtoReflect() protoreflect.Message
- func (x *AddReviewerResult) Reset()
- func (x *AddReviewerResult) String() string
- type ApprovalInfo
- func (*ApprovalInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ApprovalInfo) GetDate() *timestamppb.Timestamp
- func (x *ApprovalInfo) GetPermittedVotingRange() *VotingRangeInfo
- func (x *ApprovalInfo) GetPostSubmit() bool
- func (x *ApprovalInfo) GetTag() string
- func (x *ApprovalInfo) GetUser() *AccountInfo
- func (x *ApprovalInfo) GetValue() int32
- func (*ApprovalInfo) ProtoMessage()
- func (x *ApprovalInfo) ProtoReflect() protoreflect.Message
- func (x *ApprovalInfo) Reset()
- func (x *ApprovalInfo) String() string
- type AttentionSetInput
- func (*AttentionSetInput) Descriptor() ([]byte, []int)deprecated
- func (x *AttentionSetInput) GetNotify() Notify
- func (x *AttentionSetInput) GetNotifyDetails() *NotifyDetails
- func (x *AttentionSetInput) GetReason() string
- func (x *AttentionSetInput) GetUser() string
- func (*AttentionSetInput) ProtoMessage()
- func (x *AttentionSetInput) ProtoReflect() protoreflect.Message
- func (x *AttentionSetInput) Reset()
- func (x *AttentionSetInput) String() string
- func (i *AttentionSetInput) Validate() error
- type AttentionSetRequest
- func (*AttentionSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AttentionSetRequest) GetInput() *AttentionSetInput
- func (x *AttentionSetRequest) GetNumber() int64
- func (x *AttentionSetRequest) GetProject() string
- func (*AttentionSetRequest) ProtoMessage()
- func (x *AttentionSetRequest) ProtoReflect() protoreflect.Message
- func (x *AttentionSetRequest) Reset()
- func (x *AttentionSetRequest) String() string
- func (r *AttentionSetRequest) Validate() error
- type ChangeEditFileContentRequest
- func (*ChangeEditFileContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeEditFileContentRequest) GetContent() []byte
- func (x *ChangeEditFileContentRequest) GetFilePath() string
- func (x *ChangeEditFileContentRequest) GetNumber() int64
- func (x *ChangeEditFileContentRequest) GetProject() string
- func (*ChangeEditFileContentRequest) ProtoMessage()
- func (x *ChangeEditFileContentRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeEditFileContentRequest) Reset()
- func (x *ChangeEditFileContentRequest) String() string
- type ChangeEditPublishRequest
- func (*ChangeEditPublishRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeEditPublishRequest) GetNumber() int64
- func (x *ChangeEditPublishRequest) GetProject() string
- func (*ChangeEditPublishRequest) ProtoMessage()
- func (x *ChangeEditPublishRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeEditPublishRequest) Reset()
- func (x *ChangeEditPublishRequest) String() string
- type ChangeInfo
- func (*ChangeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeInfo) GetBranch() string
- func (x *ChangeInfo) GetCherryPickOfChange() int64
- func (x *ChangeInfo) GetCreated() *timestamppb.Timestamp
- func (x *ChangeInfo) GetCurrentRevision() string
- func (x *ChangeInfo) GetHashtags() []string
- func (x *ChangeInfo) GetIsPrivate() bool
- func (x *ChangeInfo) GetLabels() map[string]*LabelInfo
- func (x *ChangeInfo) GetMessages() []*ChangeMessageInfo
- func (x *ChangeInfo) GetMetaRevId() string
- func (x *ChangeInfo) GetNumber() int64
- func (x *ChangeInfo) GetOwner() *AccountInfo
- func (x *ChangeInfo) GetProject() string
- func (x *ChangeInfo) GetRef() string
- func (x *ChangeInfo) GetRequirements() []*Requirementdeprecated
- func (x *ChangeInfo) GetRevertOf() int64
- func (x *ChangeInfo) GetReviewers() *ReviewerStatusMap
- func (x *ChangeInfo) GetRevisions() map[string]*RevisionInfo
- func (x *ChangeInfo) GetStatus() ChangeStatus
- func (x *ChangeInfo) GetSubject() string
- func (x *ChangeInfo) GetSubmitRequirements() []*SubmitRequirementResultInfo
- func (x *ChangeInfo) GetSubmittable() bool
- func (x *ChangeInfo) GetSubmitted() *timestamppb.Timestamp
- func (x *ChangeInfo) GetUpdated() *timestamppb.Timestamp
- func (*ChangeInfo) ProtoMessage()
- func (x *ChangeInfo) ProtoReflect() protoreflect.Message
- func (x *ChangeInfo) Reset()
- func (x *ChangeInfo) String() string
- type ChangeMessageInfo
- func (*ChangeMessageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeMessageInfo) GetAuthor() *AccountInfo
- func (x *ChangeMessageInfo) GetDate() *timestamppb.Timestamp
- func (x *ChangeMessageInfo) GetId() string
- func (x *ChangeMessageInfo) GetMessage() string
- func (x *ChangeMessageInfo) GetRealAuthor() *AccountInfo
- func (x *ChangeMessageInfo) GetTag() string
- func (*ChangeMessageInfo) ProtoMessage()
- func (x *ChangeMessageInfo) ProtoReflect() protoreflect.Message
- func (x *ChangeMessageInfo) Reset()
- func (x *ChangeMessageInfo) String() string
- type ChangeStatus
- func (ChangeStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ChangeStatus) Enum() *ChangeStatus
- func (ChangeStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChangeStatus) Number() protoreflect.EnumNumber
- func (x ChangeStatus) String() string
- func (ChangeStatus) Type() protoreflect.EnumType
- type CommitInfo
- func (*CommitInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CommitInfo) GetAuthor() *GitPersonInfo
- func (x *CommitInfo) GetId() string
- func (x *CommitInfo) GetMessage() string
- func (x *CommitInfo) GetParents() []*CommitInfo_Parent
- func (*CommitInfo) ProtoMessage()
- func (x *CommitInfo) ProtoReflect() protoreflect.Message
- func (x *CommitInfo) Reset()
- func (x *CommitInfo) String() string
- type CommitInfo_Parent
- type CreateChangeRequest
- func (*CreateChangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateChangeRequest) GetBaseCommit() string
- func (x *CreateChangeRequest) GetNotify() Notify
- func (x *CreateChangeRequest) GetProject() string
- func (x *CreateChangeRequest) GetRef() string
- func (x *CreateChangeRequest) GetSubject() string
- func (*CreateChangeRequest) ProtoMessage()
- func (x *CreateChangeRequest) ProtoReflect() protoreflect.Message
- func (x *CreateChangeRequest) Reset()
- func (x *CreateChangeRequest) String() string
- type DeleteEditFileContentRequest
- func (*DeleteEditFileContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteEditFileContentRequest) GetFilePath() string
- func (x *DeleteEditFileContentRequest) GetNumber() int64
- func (x *DeleteEditFileContentRequest) GetProject() string
- func (*DeleteEditFileContentRequest) ProtoMessage()
- func (x *DeleteEditFileContentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteEditFileContentRequest) Reset()
- func (x *DeleteEditFileContentRequest) String() string
- type DeleteReviewerRequest
- func (*DeleteReviewerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteReviewerRequest) GetAccountId() string
- func (x *DeleteReviewerRequest) GetNumber() int64
- func (x *DeleteReviewerRequest) GetProject() string
- func (*DeleteReviewerRequest) ProtoMessage()
- func (x *DeleteReviewerRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteReviewerRequest) Reset()
- func (x *DeleteReviewerRequest) String() string
- type EmailInfo
- func (*EmailInfo) Descriptor() ([]byte, []int)deprecated
- func (x *EmailInfo) GetEmail() string
- func (x *EmailInfo) GetPendingConfirmation() bool
- func (x *EmailInfo) GetPreferred() bool
- func (*EmailInfo) ProtoMessage()
- func (x *EmailInfo) ProtoReflect() protoreflect.Message
- func (x *EmailInfo) Reset()
- func (x *EmailInfo) String() string
- type FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FileInfo) GetBinary() bool
- func (x *FileInfo) GetLinesDeleted() int32
- func (x *FileInfo) GetLinesInserted() int32
- func (x *FileInfo) GetOldPath() string
- func (x *FileInfo) GetSize() int64
- func (x *FileInfo) GetSizeDelta() int64
- func (x *FileInfo) GetStatus() FileInfo_Status
- func (*FileInfo) ProtoMessage()
- func (x *FileInfo) ProtoReflect() protoreflect.Message
- func (x *FileInfo) Reset()
- func (x *FileInfo) String() string
- type FileInfo_Status
- func (FileInfo_Status) Descriptor() protoreflect.EnumDescriptor
- func (x FileInfo_Status) Enum() *FileInfo_Status
- func (FileInfo_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x FileInfo_Status) Number() protoreflect.EnumNumber
- func (x FileInfo_Status) String() string
- func (FileInfo_Status) Type() protoreflect.EnumType
- type GerritClient
- type GerritServer
- type GetChangeRequest
- func (*GetChangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetChangeRequest) GetMeta() string
- func (x *GetChangeRequest) GetNumber() int64
- func (x *GetChangeRequest) GetOptions() []QueryOption
- func (x *GetChangeRequest) GetProject() string
- func (*GetChangeRequest) ProtoMessage()
- func (x *GetChangeRequest) ProtoReflect() protoreflect.Message
- func (x *GetChangeRequest) Reset()
- func (x *GetChangeRequest) String() string
- func (r *GetChangeRequest) Validate() error
- type GetMergeableRequest
- func (*GetMergeableRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMergeableRequest) GetNumber() int64
- func (x *GetMergeableRequest) GetProject() string
- func (x *GetMergeableRequest) GetRevisionId() string
- func (x *GetMergeableRequest) GetSource() string
- func (x *GetMergeableRequest) GetStrategy() MergeableStrategy
- func (*GetMergeableRequest) ProtoMessage()
- func (x *GetMergeableRequest) ProtoReflect() protoreflect.Message
- func (x *GetMergeableRequest) Reset()
- func (x *GetMergeableRequest) String() string
- type GetMetaDiffRequest
- func (*GetMetaDiffRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetaDiffRequest) GetMeta() string
- func (x *GetMetaDiffRequest) GetNumber() int64
- func (x *GetMetaDiffRequest) GetOld() string
- func (x *GetMetaDiffRequest) GetOptions() []QueryOption
- func (x *GetMetaDiffRequest) GetProject() string
- func (*GetMetaDiffRequest) ProtoMessage()
- func (x *GetMetaDiffRequest) ProtoReflect() protoreflect.Message
- func (x *GetMetaDiffRequest) Reset()
- func (x *GetMetaDiffRequest) String() string
- func (r *GetMetaDiffRequest) Validate() error
- type GetPureRevertRequest
- func (*GetPureRevertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPureRevertRequest) GetNumber() int64
- func (x *GetPureRevertRequest) GetProject() string
- func (*GetPureRevertRequest) ProtoMessage()
- func (x *GetPureRevertRequest) ProtoReflect() protoreflect.Message
- func (x *GetPureRevertRequest) Reset()
- func (x *GetPureRevertRequest) String() string
- type GetRelatedChangesRequest
- func (*GetRelatedChangesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelatedChangesRequest) GetNumber() int64
- func (x *GetRelatedChangesRequest) GetProject() string
- func (x *GetRelatedChangesRequest) GetRevisionId() string
- func (*GetRelatedChangesRequest) ProtoMessage()
- func (x *GetRelatedChangesRequest) ProtoReflect() protoreflect.Message
- func (x *GetRelatedChangesRequest) Reset()
- func (x *GetRelatedChangesRequest) String() string
- type GetRelatedChangesResponse
- func (*GetRelatedChangesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelatedChangesResponse) GetChanges() []*GetRelatedChangesResponse_ChangeAndCommit
- func (*GetRelatedChangesResponse) ProtoMessage()
- func (x *GetRelatedChangesResponse) ProtoReflect() protoreflect.Message
- func (x *GetRelatedChangesResponse) Reset()
- func (x *GetRelatedChangesResponse) String() string
- type GetRelatedChangesResponse_ChangeAndCommit
- func (*GetRelatedChangesResponse_ChangeAndCommit) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelatedChangesResponse_ChangeAndCommit) GetCommit() *CommitInfo
- func (x *GetRelatedChangesResponse_ChangeAndCommit) GetCurrentPatchset() int64
- func (x *GetRelatedChangesResponse_ChangeAndCommit) GetNumber() int64
- func (x *GetRelatedChangesResponse_ChangeAndCommit) GetPatchset() int64
- func (x *GetRelatedChangesResponse_ChangeAndCommit) GetProject() string
- func (x *GetRelatedChangesResponse_ChangeAndCommit) GetStatus() ChangeStatus
- func (*GetRelatedChangesResponse_ChangeAndCommit) ProtoMessage()
- func (x *GetRelatedChangesResponse_ChangeAndCommit) ProtoReflect() protoreflect.Message
- func (x *GetRelatedChangesResponse_ChangeAndCommit) Reset()
- func (x *GetRelatedChangesResponse_ChangeAndCommit) String() string
- type GitPersonInfo
- func (*GitPersonInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GitPersonInfo) GetEmail() string
- func (x *GitPersonInfo) GetName() string
- func (*GitPersonInfo) ProtoMessage()
- func (x *GitPersonInfo) ProtoReflect() protoreflect.Message
- func (x *GitPersonInfo) Reset()
- func (x *GitPersonInfo) String() string
- type LabelInfo
- func (*LabelInfo) Descriptor() ([]byte, []int)deprecated
- func (x *LabelInfo) GetAll() []*ApprovalInfo
- func (x *LabelInfo) GetApproved() *AccountInfo
- func (x *LabelInfo) GetBlocking() bool
- func (x *LabelInfo) GetDefaultValue() int32
- func (x *LabelInfo) GetDisliked() *AccountInfo
- func (x *LabelInfo) GetOptional() bool
- func (x *LabelInfo) GetRecommended() *AccountInfo
- func (x *LabelInfo) GetRejected() *AccountInfo
- func (x *LabelInfo) GetValue() int32
- func (x *LabelInfo) GetValues() map[int32]string
- func (*LabelInfo) ProtoMessage()
- func (x *LabelInfo) ProtoReflect() protoreflect.Message
- func (x *LabelInfo) Reset()
- func (x *LabelInfo) String() string
- type ListAccountEmailsRequest
- func (*ListAccountEmailsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountEmailsRequest) GetEmail() string
- func (*ListAccountEmailsRequest) ProtoMessage()
- func (x *ListAccountEmailsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAccountEmailsRequest) Reset()
- func (x *ListAccountEmailsRequest) String() string
- type ListAccountEmailsResponse
- func (*ListAccountEmailsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountEmailsResponse) GetEmails() []*EmailInfo
- func (*ListAccountEmailsResponse) ProtoMessage()
- func (x *ListAccountEmailsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAccountEmailsResponse) Reset()
- func (x *ListAccountEmailsResponse) String() string
- type ListChangesRequest
- func (*ListChangesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListChangesRequest) GetLimit() int64
- func (x *ListChangesRequest) GetOffset() int64
- func (x *ListChangesRequest) GetOptions() []QueryOption
- func (x *ListChangesRequest) GetQuery() string
- func (*ListChangesRequest) ProtoMessage()
- func (x *ListChangesRequest) ProtoReflect() protoreflect.Message
- func (x *ListChangesRequest) Reset()
- func (x *ListChangesRequest) String() string
- type ListChangesResponse
- func (*ListChangesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListChangesResponse) GetChanges() []*ChangeInfo
- func (x *ListChangesResponse) GetMoreChanges() bool
- func (*ListChangesResponse) ProtoMessage()
- func (x *ListChangesResponse) ProtoReflect() protoreflect.Message
- func (x *ListChangesResponse) Reset()
- func (x *ListChangesResponse) String() string
- type ListFileOwnersRequest
- func (*ListFileOwnersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileOwnersRequest) GetOptions() *AccountOptions
- func (x *ListFileOwnersRequest) GetPath() string
- func (x *ListFileOwnersRequest) GetProject() string
- func (x *ListFileOwnersRequest) GetRef() string
- func (*ListFileOwnersRequest) ProtoMessage()
- func (x *ListFileOwnersRequest) ProtoReflect() protoreflect.Message
- func (x *ListFileOwnersRequest) Reset()
- func (x *ListFileOwnersRequest) String() string
- type ListFilesRequest
- func (*ListFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFilesRequest) GetBase() string
- func (x *ListFilesRequest) GetNumber() int64
- func (x *ListFilesRequest) GetParent() int64
- func (x *ListFilesRequest) GetProject() string
- func (x *ListFilesRequest) GetRevisionId() string
- func (x *ListFilesRequest) GetSubstringQuery() string
- func (*ListFilesRequest) ProtoMessage()
- func (x *ListFilesRequest) ProtoReflect() protoreflect.Message
- func (x *ListFilesRequest) Reset()
- func (x *ListFilesRequest) String() string
- type ListFilesResponse
- func (*ListFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListFilesResponse) GetFiles() map[string]*FileInfo
- func (*ListFilesResponse) ProtoMessage()
- func (x *ListFilesResponse) ProtoReflect() protoreflect.Message
- func (x *ListFilesResponse) Reset()
- func (x *ListFilesResponse) String() string
- type ListOwnersResponse
- func (*ListOwnersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOwnersResponse) GetOwners() []*OwnerInfo
- func (*ListOwnersResponse) ProtoMessage()
- func (x *ListOwnersResponse) ProtoReflect() protoreflect.Message
- func (x *ListOwnersResponse) Reset()
- func (x *ListOwnersResponse) String() string
- type ListProjectsRequest
- func (*ListProjectsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListProjectsRequest) GetRefs() []string
- func (*ListProjectsRequest) ProtoMessage()
- func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message
- func (x *ListProjectsRequest) Reset()
- func (x *ListProjectsRequest) String() string
- type ListProjectsResponse
- func (*ListProjectsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProjectsResponse) GetProjects() map[string]*ProjectInfo
- func (*ListProjectsResponse) ProtoMessage()
- func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message
- func (x *ListProjectsResponse) Reset()
- func (x *ListProjectsResponse) String() string
- type MergeableInfo
- func (*MergeableInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MergeableInfo) GetCommitMerged() bool
- func (x *MergeableInfo) GetConflicts() []string
- func (x *MergeableInfo) GetContentMerged() bool
- func (x *MergeableInfo) GetMergeable() bool
- func (x *MergeableInfo) GetMergeableInto() []string
- func (x *MergeableInfo) GetStrategy() MergeableStrategy
- func (x *MergeableInfo) GetSubmitType() MergeableInfo_SubmitType
- func (*MergeableInfo) ProtoMessage()
- func (x *MergeableInfo) ProtoReflect() protoreflect.Message
- func (x *MergeableInfo) Reset()
- func (x *MergeableInfo) String() string
- type MergeableInfo_SubmitType
- func (MergeableInfo_SubmitType) Descriptor() protoreflect.EnumDescriptor
- func (x MergeableInfo_SubmitType) Enum() *MergeableInfo_SubmitType
- func (MergeableInfo_SubmitType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MergeableInfo_SubmitType) Number() protoreflect.EnumNumber
- func (x MergeableInfo_SubmitType) String() string
- func (MergeableInfo_SubmitType) Type() protoreflect.EnumType
- type MergeableStrategy
- func (MergeableStrategy) Descriptor() protoreflect.EnumDescriptor
- func (x MergeableStrategy) Enum() *MergeableStrategy
- func (MergeableStrategy) EnumDescriptor() ([]byte, []int)deprecated
- func (x MergeableStrategy) Number() protoreflect.EnumNumber
- func (x MergeableStrategy) String() string
- func (MergeableStrategy) Type() protoreflect.EnumType
- type MetaDiff
- func (*MetaDiff) Descriptor() ([]byte, []int)deprecated
- func (x *MetaDiff) GetAdded() *ChangeInfo
- func (x *MetaDiff) GetNewChangeInfo() *ChangeInfo
- func (x *MetaDiff) GetOldChangeInfo() *ChangeInfo
- func (x *MetaDiff) GetRemoved() *ChangeInfo
- func (*MetaDiff) ProtoMessage()
- func (x *MetaDiff) ProtoReflect() protoreflect.Message
- func (x *MetaDiff) Reset()
- func (x *MetaDiff) String() string
- type MockGerritClient
- func (m *MockGerritClient) AbandonChange(ctx context.Context, in *AbandonChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
- func (m *MockGerritClient) AddReviewer(ctx context.Context, in *AddReviewerRequest, opts ...grpc.CallOption) (*AddReviewerResult, error)
- func (m *MockGerritClient) AddToAttentionSet(ctx context.Context, in *AttentionSetRequest, opts ...grpc.CallOption) (*AccountInfo, error)
- func (m *MockGerritClient) ChangeEditFileContent(ctx context.Context, in *ChangeEditFileContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockGerritClient) ChangeEditPublish(ctx context.Context, in *ChangeEditPublishRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockGerritClient) CreateChange(ctx context.Context, in *CreateChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
- func (m *MockGerritClient) DeleteEditFileContent(ctx context.Context, in *DeleteEditFileContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockGerritClient) DeleteReviewer(ctx context.Context, in *DeleteReviewerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockGerritClient) EXPECT() *MockGerritClientMockRecorder
- func (m *MockGerritClient) GetChange(ctx context.Context, in *GetChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
- func (m *MockGerritClient) GetMergeable(ctx context.Context, in *GetMergeableRequest, opts ...grpc.CallOption) (*MergeableInfo, error)
- func (m *MockGerritClient) GetMetaDiff(ctx context.Context, in *GetMetaDiffRequest, opts ...grpc.CallOption) (*MetaDiff, error)
- func (m *MockGerritClient) GetPureRevert(ctx context.Context, in *GetPureRevertRequest, opts ...grpc.CallOption) (*PureRevertInfo, error)
- func (m *MockGerritClient) GetRefInfo(ctx context.Context, in *RefInfoRequest, opts ...grpc.CallOption) (*RefInfo, error)
- func (m *MockGerritClient) GetRelatedChanges(ctx context.Context, in *GetRelatedChangesRequest, opts ...grpc.CallOption) (*GetRelatedChangesResponse, error)
- func (m *MockGerritClient) ListAccountEmails(ctx context.Context, in *ListAccountEmailsRequest, opts ...grpc.CallOption) (*ListAccountEmailsResponse, error)
- func (m *MockGerritClient) ListChanges(ctx context.Context, in *ListChangesRequest, opts ...grpc.CallOption) (*ListChangesResponse, error)
- func (m *MockGerritClient) ListFileOwners(ctx context.Context, in *ListFileOwnersRequest, opts ...grpc.CallOption) (*ListOwnersResponse, error)
- func (m *MockGerritClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
- func (m *MockGerritClient) ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error)
- func (m *MockGerritClient) RevertChange(ctx context.Context, in *RevertChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
- func (m *MockGerritClient) SetReview(ctx context.Context, in *SetReviewRequest, opts ...grpc.CallOption) (*ReviewResult, error)
- func (m *MockGerritClient) SubmitChange(ctx context.Context, in *SubmitChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
- func (m *MockGerritClient) SubmitRevision(ctx context.Context, in *SubmitRevisionRequest, opts ...grpc.CallOption) (*SubmitInfo, error)
- type MockGerritClientMockRecorder
- func (mr *MockGerritClientMockRecorder) AbandonChange(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) AddReviewer(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) AddToAttentionSet(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) ChangeEditFileContent(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) ChangeEditPublish(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) CreateChange(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) DeleteEditFileContent(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) DeleteReviewer(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) GetChange(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) GetMergeable(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) GetMetaDiff(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) GetPureRevert(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) GetRefInfo(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) GetRelatedChanges(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) ListAccountEmails(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) ListChanges(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) ListFileOwners(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) ListFiles(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) ListProjects(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) RevertChange(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) SetReview(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) SubmitChange(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGerritClientMockRecorder) SubmitRevision(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockGerritServer
- func (m *MockGerritServer) AbandonChange(arg0 context.Context, arg1 *AbandonChangeRequest) (*ChangeInfo, error)
- func (m *MockGerritServer) AddReviewer(arg0 context.Context, arg1 *AddReviewerRequest) (*AddReviewerResult, error)
- func (m *MockGerritServer) AddToAttentionSet(arg0 context.Context, arg1 *AttentionSetRequest) (*AccountInfo, error)
- func (m *MockGerritServer) ChangeEditFileContent(arg0 context.Context, arg1 *ChangeEditFileContentRequest) (*emptypb.Empty, error)
- func (m *MockGerritServer) ChangeEditPublish(arg0 context.Context, arg1 *ChangeEditPublishRequest) (*emptypb.Empty, error)
- func (m *MockGerritServer) CreateChange(arg0 context.Context, arg1 *CreateChangeRequest) (*ChangeInfo, error)
- func (m *MockGerritServer) DeleteEditFileContent(arg0 context.Context, arg1 *DeleteEditFileContentRequest) (*emptypb.Empty, error)
- func (m *MockGerritServer) DeleteReviewer(arg0 context.Context, arg1 *DeleteReviewerRequest) (*emptypb.Empty, error)
- func (m *MockGerritServer) EXPECT() *MockGerritServerMockRecorder
- func (m *MockGerritServer) GetChange(arg0 context.Context, arg1 *GetChangeRequest) (*ChangeInfo, error)
- func (m *MockGerritServer) GetMergeable(arg0 context.Context, arg1 *GetMergeableRequest) (*MergeableInfo, error)
- func (m *MockGerritServer) GetMetaDiff(arg0 context.Context, arg1 *GetMetaDiffRequest) (*MetaDiff, error)
- func (m *MockGerritServer) GetPureRevert(arg0 context.Context, arg1 *GetPureRevertRequest) (*PureRevertInfo, error)
- func (m *MockGerritServer) GetRefInfo(arg0 context.Context, arg1 *RefInfoRequest) (*RefInfo, error)
- func (m *MockGerritServer) GetRelatedChanges(arg0 context.Context, arg1 *GetRelatedChangesRequest) (*GetRelatedChangesResponse, error)
- func (m *MockGerritServer) ListAccountEmails(arg0 context.Context, arg1 *ListAccountEmailsRequest) (*ListAccountEmailsResponse, error)
- func (m *MockGerritServer) ListChanges(arg0 context.Context, arg1 *ListChangesRequest) (*ListChangesResponse, error)
- func (m *MockGerritServer) ListFileOwners(arg0 context.Context, arg1 *ListFileOwnersRequest) (*ListOwnersResponse, error)
- func (m *MockGerritServer) ListFiles(arg0 context.Context, arg1 *ListFilesRequest) (*ListFilesResponse, error)
- func (m *MockGerritServer) ListProjects(arg0 context.Context, arg1 *ListProjectsRequest) (*ListProjectsResponse, error)
- func (m *MockGerritServer) RevertChange(arg0 context.Context, arg1 *RevertChangeRequest) (*ChangeInfo, error)
- func (m *MockGerritServer) SetReview(arg0 context.Context, arg1 *SetReviewRequest) (*ReviewResult, error)
- func (m *MockGerritServer) SubmitChange(arg0 context.Context, arg1 *SubmitChangeRequest) (*ChangeInfo, error)
- func (m *MockGerritServer) SubmitRevision(arg0 context.Context, arg1 *SubmitRevisionRequest) (*SubmitInfo, error)
- type MockGerritServerMockRecorder
- func (mr *MockGerritServerMockRecorder) AbandonChange(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) AddReviewer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) AddToAttentionSet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) ChangeEditFileContent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) ChangeEditPublish(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) CreateChange(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) DeleteEditFileContent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) DeleteReviewer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) GetChange(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) GetMergeable(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) GetMetaDiff(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) GetPureRevert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) GetRefInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) GetRelatedChanges(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) ListAccountEmails(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) ListChanges(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) ListFileOwners(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) ListFiles(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) ListProjects(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) RevertChange(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) SetReview(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) SubmitChange(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGerritServerMockRecorder) SubmitRevision(arg0, arg1 interface{}) *gomock.Call
- type MockUnsafeGerritServer
- type MockUnsafeGerritServerMockRecorder
- type Notify
- type NotifyDetails
- func (*NotifyDetails) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyDetails) GetRecipients() []*NotifyDetails_Recipient
- func (*NotifyDetails) ProtoMessage()
- func (x *NotifyDetails) ProtoReflect() protoreflect.Message
- func (x *NotifyDetails) Reset()
- func (x *NotifyDetails) String() string
- func (n *NotifyDetails) Validate() error
- type NotifyDetails_Info
- func (*NotifyDetails_Info) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyDetails_Info) GetAccounts() []int64
- func (*NotifyDetails_Info) ProtoMessage()
- func (x *NotifyDetails_Info) ProtoReflect() protoreflect.Message
- func (x *NotifyDetails_Info) Reset()
- func (x *NotifyDetails_Info) String() string
- type NotifyDetails_Recipient
- func (*NotifyDetails_Recipient) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyDetails_Recipient) GetInfo() *NotifyDetails_Info
- func (x *NotifyDetails_Recipient) GetRecipientType() NotifyDetails_RecipientType
- func (*NotifyDetails_Recipient) ProtoMessage()
- func (x *NotifyDetails_Recipient) ProtoReflect() protoreflect.Message
- func (x *NotifyDetails_Recipient) Reset()
- func (x *NotifyDetails_Recipient) String() string
- func (n *NotifyDetails_Recipient) Validate() error
- type NotifyDetails_RecipientType
- func (NotifyDetails_RecipientType) Descriptor() protoreflect.EnumDescriptor
- func (x NotifyDetails_RecipientType) Enum() *NotifyDetails_RecipientType
- func (NotifyDetails_RecipientType) EnumDescriptor() ([]byte, []int)deprecated
- func (x NotifyDetails_RecipientType) Number() protoreflect.EnumNumber
- func (x NotifyDetails_RecipientType) String() string
- func (NotifyDetails_RecipientType) Type() protoreflect.EnumType
- type OwnerInfo
- type ProjectInfo
- func (*ProjectInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectInfo) GetDescription() string
- func (x *ProjectInfo) GetName() string
- func (x *ProjectInfo) GetParent() string
- func (x *ProjectInfo) GetRefs() map[string]string
- func (x *ProjectInfo) GetState() ProjectInfo_State
- func (x *ProjectInfo) GetWebLinks() []*WebLinkInfo
- func (*ProjectInfo) ProtoMessage()
- func (x *ProjectInfo) ProtoReflect() protoreflect.Message
- func (x *ProjectInfo) Reset()
- func (x *ProjectInfo) String() string
- type ProjectInfo_State
- func (ProjectInfo_State) Descriptor() protoreflect.EnumDescriptor
- func (x ProjectInfo_State) Enum() *ProjectInfo_State
- func (ProjectInfo_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProjectInfo_State) Number() protoreflect.EnumNumber
- func (x ProjectInfo_State) String() string
- func (ProjectInfo_State) Type() protoreflect.EnumType
- type PureRevertInfo
- type QueryOption
- func (QueryOption) Descriptor() protoreflect.EnumDescriptor
- func (x QueryOption) Enum() *QueryOption
- func (QueryOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x QueryOption) Number() protoreflect.EnumNumber
- func (x QueryOption) String() string
- func (QueryOption) Type() protoreflect.EnumType
- type RefInfo
- type RefInfoRequest
- func (*RefInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefInfoRequest) GetProject() string
- func (x *RefInfoRequest) GetRef() string
- func (*RefInfoRequest) ProtoMessage()
- func (x *RefInfoRequest) ProtoReflect() protoreflect.Message
- func (x *RefInfoRequest) Reset()
- func (x *RefInfoRequest) String() string
- type Requirement
- func (*Requirement) Descriptor() ([]byte, []int)deprecated
- func (x *Requirement) GetFallbackText() string
- func (x *Requirement) GetStatus() Requirement_Status
- func (x *Requirement) GetType() string
- func (*Requirement) ProtoMessage()
- func (x *Requirement) ProtoReflect() protoreflect.Message
- func (x *Requirement) Reset()
- func (x *Requirement) String() string
- type Requirement_Status
- func (Requirement_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Requirement_Status) Enum() *Requirement_Status
- func (Requirement_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Requirement_Status) Number() protoreflect.EnumNumber
- func (x Requirement_Status) String() string
- func (Requirement_Status) Type() protoreflect.EnumType
- type RevertChangeRequest
- func (*RevertChangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevertChangeRequest) GetMessage() string
- func (x *RevertChangeRequest) GetNumber() int64
- func (x *RevertChangeRequest) GetProject() string
- func (*RevertChangeRequest) ProtoMessage()
- func (x *RevertChangeRequest) ProtoReflect() protoreflect.Message
- func (x *RevertChangeRequest) Reset()
- func (x *RevertChangeRequest) String() string
- func (r *RevertChangeRequest) Validate() error
- type ReviewResult
- func (*ReviewResult) Descriptor() ([]byte, []int)deprecated
- func (x *ReviewResult) GetLabels() map[string]int32
- func (x *ReviewResult) GetReviewers() map[string]*AddReviewerResult
- func (*ReviewResult) ProtoMessage()
- func (x *ReviewResult) ProtoReflect() protoreflect.Message
- func (x *ReviewResult) Reset()
- func (x *ReviewResult) String() string
- type ReviewerInfo
- func (*ReviewerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ReviewerInfo) GetAccount() *AccountInfo
- func (x *ReviewerInfo) GetApprovals() map[string]int32
- func (*ReviewerInfo) ProtoMessage()
- func (x *ReviewerInfo) ProtoReflect() protoreflect.Message
- func (x *ReviewerInfo) Reset()
- func (x *ReviewerInfo) String() string
- type ReviewerInput
- func (*ReviewerInput) Descriptor() ([]byte, []int)deprecated
- func (x *ReviewerInput) GetReviewer() string
- func (x *ReviewerInput) GetState() ReviewerInput_State
- func (*ReviewerInput) ProtoMessage()
- func (x *ReviewerInput) ProtoReflect() protoreflect.Message
- func (x *ReviewerInput) Reset()
- func (x *ReviewerInput) String() string
- type ReviewerInput_State
- func (ReviewerInput_State) Descriptor() protoreflect.EnumDescriptor
- func (x ReviewerInput_State) Enum() *ReviewerInput_State
- func (ReviewerInput_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReviewerInput_State) Number() protoreflect.EnumNumber
- func (x ReviewerInput_State) String() string
- func (ReviewerInput_State) Type() protoreflect.EnumType
- type ReviewerStatusMap
- func (*ReviewerStatusMap) Descriptor() ([]byte, []int)deprecated
- func (x *ReviewerStatusMap) GetCcs() []*AccountInfo
- func (x *ReviewerStatusMap) GetRemoved() []*AccountInfo
- func (x *ReviewerStatusMap) GetReviewers() []*AccountInfo
- func (*ReviewerStatusMap) ProtoMessage()
- func (x *ReviewerStatusMap) ProtoReflect() protoreflect.Message
- func (x *ReviewerStatusMap) Reset()
- func (x *ReviewerStatusMap) String() string
- type RevisionInfo
- func (*RevisionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RevisionInfo) GetCommit() *CommitInfo
- func (x *RevisionInfo) GetCreated() *timestamppb.Timestamp
- func (x *RevisionInfo) GetDescription() string
- func (x *RevisionInfo) GetFiles() map[string]*FileInfo
- func (x *RevisionInfo) GetKind() RevisionInfo_Kind
- func (x *RevisionInfo) GetNumber() int32
- func (x *RevisionInfo) GetRef() string
- func (x *RevisionInfo) GetUploader() *AccountInfo
- func (*RevisionInfo) ProtoMessage()
- func (x *RevisionInfo) ProtoReflect() protoreflect.Message
- func (x *RevisionInfo) Reset()
- func (x *RevisionInfo) String() string
- type RevisionInfo_Kind
- func (RevisionInfo_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x RevisionInfo_Kind) Enum() *RevisionInfo_Kind
- func (RevisionInfo_Kind) EnumDescriptor() ([]byte, []int)deprecated
- func (x RevisionInfo_Kind) Number() protoreflect.EnumNumber
- func (x RevisionInfo_Kind) String() string
- func (RevisionInfo_Kind) Type() protoreflect.EnumType
- type SetReviewRequest
- func (*SetReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetReviewRequest) GetAddToAttentionSet() []*AttentionSetInput
- func (x *SetReviewRequest) GetIgnoreAutomaticAttentionSetRules() bool
- func (x *SetReviewRequest) GetLabels() map[string]int32
- func (x *SetReviewRequest) GetMessage() string
- func (x *SetReviewRequest) GetNotify() Notify
- func (x *SetReviewRequest) GetNotifyDetails() *NotifyDetails
- func (x *SetReviewRequest) GetNumber() int64
- func (x *SetReviewRequest) GetOnBehalfOf() int64
- func (x *SetReviewRequest) GetProject() string
- func (x *SetReviewRequest) GetReady() bool
- func (x *SetReviewRequest) GetRemoveFromAttentionSet() []*AttentionSetInput
- func (x *SetReviewRequest) GetReviewers() []*ReviewerInput
- func (x *SetReviewRequest) GetRevisionId() string
- func (x *SetReviewRequest) GetTag() string
- func (x *SetReviewRequest) GetWorkInProgress() bool
- func (*SetReviewRequest) ProtoMessage()
- func (x *SetReviewRequest) ProtoReflect() protoreflect.Message
- func (x *SetReviewRequest) Reset()
- func (x *SetReviewRequest) String() string
- func (r *SetReviewRequest) Validate() error
- type SourceRepoEvent
- func (*SourceRepoEvent) Descriptor() ([]byte, []int)deprecated
- func (x *SourceRepoEvent) GetCreateRepoEvent() *SourceRepoEvent_CreateRepoEvent
- func (x *SourceRepoEvent) GetDeleteRepoEvent() *SourceRepoEvent_DeleteRepoEvent
- func (m *SourceRepoEvent) GetEvent() isSourceRepoEvent_Event
- func (x *SourceRepoEvent) GetEventTime() *timestamppb.Timestamp
- func (x *SourceRepoEvent) GetName() string
- func (x *SourceRepoEvent) GetRefUpdateEvent() *SourceRepoEvent_RefUpdateEvent
- func (x *SourceRepoEvent) GetUrl() string
- func (*SourceRepoEvent) ProtoMessage()
- func (x *SourceRepoEvent) ProtoReflect() protoreflect.Message
- func (x *SourceRepoEvent) Reset()
- func (x *SourceRepoEvent) String() string
- type SourceRepoEvent_CreateRepoEvent
- func (*SourceRepoEvent_CreateRepoEvent) Descriptor() ([]byte, []int)deprecated
- func (*SourceRepoEvent_CreateRepoEvent) ProtoMessage()
- func (x *SourceRepoEvent_CreateRepoEvent) ProtoReflect() protoreflect.Message
- func (x *SourceRepoEvent_CreateRepoEvent) Reset()
- func (x *SourceRepoEvent_CreateRepoEvent) String() string
- type SourceRepoEvent_CreateRepoEvent_
- type SourceRepoEvent_DeleteRepoEvent
- func (*SourceRepoEvent_DeleteRepoEvent) Descriptor() ([]byte, []int)deprecated
- func (*SourceRepoEvent_DeleteRepoEvent) ProtoMessage()
- func (x *SourceRepoEvent_DeleteRepoEvent) ProtoReflect() protoreflect.Message
- func (x *SourceRepoEvent_DeleteRepoEvent) Reset()
- func (x *SourceRepoEvent_DeleteRepoEvent) String() string
- type SourceRepoEvent_DeleteRepoEvent_
- type SourceRepoEvent_RefUpdateEvent
- func (*SourceRepoEvent_RefUpdateEvent) Descriptor() ([]byte, []int)deprecated
- func (x *SourceRepoEvent_RefUpdateEvent) GetEmail() string
- func (x *SourceRepoEvent_RefUpdateEvent) GetRefUpdates() map[string]*SourceRepoEvent_RefUpdateEvent_RefUpdate
- func (*SourceRepoEvent_RefUpdateEvent) ProtoMessage()
- func (x *SourceRepoEvent_RefUpdateEvent) ProtoReflect() protoreflect.Message
- func (x *SourceRepoEvent_RefUpdateEvent) Reset()
- func (x *SourceRepoEvent_RefUpdateEvent) String() string
- type SourceRepoEvent_RefUpdateEvent_
- type SourceRepoEvent_RefUpdateEvent_RefUpdate
- func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) GetNewId() string
- func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) GetOldId() string
- func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) GetRefName() string
- func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) GetUpdateType() SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType
- func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) ProtoMessage()
- func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) ProtoReflect() protoreflect.Message
- func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) Reset()
- func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) String() string
- type SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType
- func (SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) Descriptor() protoreflect.EnumDescriptor
- func (x SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) Enum() *SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType
- func (SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) Number() protoreflect.EnumNumber
- func (x SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) String() string
- func (SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) Type() protoreflect.EnumType
- type SubmitChangeRequest
- func (*SubmitChangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitChangeRequest) GetNumber() int64
- func (x *SubmitChangeRequest) GetProject() string
- func (*SubmitChangeRequest) ProtoMessage()
- func (x *SubmitChangeRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitChangeRequest) Reset()
- func (x *SubmitChangeRequest) String() string
- type SubmitInfo
- type SubmitRequirementExpressionInfo
- func (*SubmitRequirementExpressionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitRequirementExpressionInfo) GetErrorMessage() string
- func (x *SubmitRequirementExpressionInfo) GetExpression() string
- func (x *SubmitRequirementExpressionInfo) GetFailingAtoms() []string
- func (x *SubmitRequirementExpressionInfo) GetFulfilled() bool
- func (x *SubmitRequirementExpressionInfo) GetPassingAtoms() []string
- func (*SubmitRequirementExpressionInfo) ProtoMessage()
- func (x *SubmitRequirementExpressionInfo) ProtoReflect() protoreflect.Message
- func (x *SubmitRequirementExpressionInfo) Reset()
- func (x *SubmitRequirementExpressionInfo) String() string
- type SubmitRequirementResultInfo
- func (*SubmitRequirementResultInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitRequirementResultInfo) GetApplicabilityExpressionResult() *SubmitRequirementExpressionInfo
- func (x *SubmitRequirementResultInfo) GetDescription() string
- func (x *SubmitRequirementResultInfo) GetIsLegacy() bool
- func (x *SubmitRequirementResultInfo) GetName() string
- func (x *SubmitRequirementResultInfo) GetOverrideExpressionResult() *SubmitRequirementExpressionInfo
- func (x *SubmitRequirementResultInfo) GetStatus() SubmitRequirementResultInfo_Status
- func (x *SubmitRequirementResultInfo) GetSubmittabilityExpressionResult() *SubmitRequirementExpressionInfo
- func (*SubmitRequirementResultInfo) ProtoMessage()
- func (x *SubmitRequirementResultInfo) ProtoReflect() protoreflect.Message
- func (x *SubmitRequirementResultInfo) Reset()
- func (x *SubmitRequirementResultInfo) String() string
- type SubmitRequirementResultInfo_Status
- func (SubmitRequirementResultInfo_Status) Descriptor() protoreflect.EnumDescriptor
- func (x SubmitRequirementResultInfo_Status) Enum() *SubmitRequirementResultInfo_Status
- func (SubmitRequirementResultInfo_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubmitRequirementResultInfo_Status) Number() protoreflect.EnumNumber
- func (x SubmitRequirementResultInfo_Status) String() string
- func (SubmitRequirementResultInfo_Status) Type() protoreflect.EnumType
- type SubmitRevisionRequest
- func (*SubmitRevisionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitRevisionRequest) GetNumber() int64
- func (x *SubmitRevisionRequest) GetProject() string
- func (x *SubmitRevisionRequest) GetRevisionId() string
- func (*SubmitRevisionRequest) ProtoMessage()
- func (x *SubmitRevisionRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitRevisionRequest) Reset()
- func (x *SubmitRevisionRequest) String() string
- type UnimplementedGerritServer
- func (UnimplementedGerritServer) AbandonChange(context.Context, *AbandonChangeRequest) (*ChangeInfo, error)
- func (UnimplementedGerritServer) AddReviewer(context.Context, *AddReviewerRequest) (*AddReviewerResult, error)
- func (UnimplementedGerritServer) AddToAttentionSet(context.Context, *AttentionSetRequest) (*AccountInfo, error)
- func (UnimplementedGerritServer) ChangeEditFileContent(context.Context, *ChangeEditFileContentRequest) (*emptypb.Empty, error)
- func (UnimplementedGerritServer) ChangeEditPublish(context.Context, *ChangeEditPublishRequest) (*emptypb.Empty, error)
- func (UnimplementedGerritServer) CreateChange(context.Context, *CreateChangeRequest) (*ChangeInfo, error)
- func (UnimplementedGerritServer) DeleteEditFileContent(context.Context, *DeleteEditFileContentRequest) (*emptypb.Empty, error)
- func (UnimplementedGerritServer) DeleteReviewer(context.Context, *DeleteReviewerRequest) (*emptypb.Empty, error)
- func (UnimplementedGerritServer) GetChange(context.Context, *GetChangeRequest) (*ChangeInfo, error)
- func (UnimplementedGerritServer) GetMergeable(context.Context, *GetMergeableRequest) (*MergeableInfo, error)
- func (UnimplementedGerritServer) GetMetaDiff(context.Context, *GetMetaDiffRequest) (*MetaDiff, error)
- func (UnimplementedGerritServer) GetPureRevert(context.Context, *GetPureRevertRequest) (*PureRevertInfo, error)
- func (UnimplementedGerritServer) GetRefInfo(context.Context, *RefInfoRequest) (*RefInfo, error)
- func (UnimplementedGerritServer) GetRelatedChanges(context.Context, *GetRelatedChangesRequest) (*GetRelatedChangesResponse, error)
- func (UnimplementedGerritServer) ListAccountEmails(context.Context, *ListAccountEmailsRequest) (*ListAccountEmailsResponse, error)
- func (UnimplementedGerritServer) ListChanges(context.Context, *ListChangesRequest) (*ListChangesResponse, error)
- func (UnimplementedGerritServer) ListFileOwners(context.Context, *ListFileOwnersRequest) (*ListOwnersResponse, error)
- func (UnimplementedGerritServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
- func (UnimplementedGerritServer) ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
- func (UnimplementedGerritServer) RevertChange(context.Context, *RevertChangeRequest) (*ChangeInfo, error)
- func (UnimplementedGerritServer) SetReview(context.Context, *SetReviewRequest) (*ReviewResult, error)
- func (UnimplementedGerritServer) SubmitChange(context.Context, *SubmitChangeRequest) (*ChangeInfo, error)
- func (UnimplementedGerritServer) SubmitRevision(context.Context, *SubmitRevisionRequest) (*SubmitInfo, error)
- type UnsafeGerritServer
- type VotingRangeInfo
- func (*VotingRangeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VotingRangeInfo) GetMax() int32
- func (x *VotingRangeInfo) GetMin() int32
- func (*VotingRangeInfo) ProtoMessage()
- func (x *VotingRangeInfo) ProtoReflect() protoreflect.Message
- func (x *VotingRangeInfo) Reset()
- func (x *VotingRangeInfo) String() string
- type WebLinkInfo
- func (*WebLinkInfo) Descriptor() ([]byte, []int)deprecated
- func (x *WebLinkInfo) GetImageUrl() string
- func (x *WebLinkInfo) GetName() string
- func (x *WebLinkInfo) GetUrl() string
- func (*WebLinkInfo) ProtoMessage()
- func (x *WebLinkInfo) ProtoReflect() protoreflect.Message
- func (x *WebLinkInfo) Reset()
- func (x *WebLinkInfo) String() string
Constants ¶
const ( // AllRefs instructs the client to fetch all refs. AllRefs = "refs" // Branches instructs the client to fetch all branches. Branches = "refs/heads" // Tags instructs the client to fetch all tags. Tags = "refs/tags" )
These constants are possible values for RefsRequest.RefsPath field. Not an exhaustive list.
const ( Gerrit_ListProjects_FullMethodName = "/gerrit.Gerrit/ListProjects" Gerrit_GetRefInfo_FullMethodName = "/gerrit.Gerrit/GetRefInfo" Gerrit_ListFileOwners_FullMethodName = "/gerrit.Gerrit/ListFileOwners" Gerrit_ListAccountEmails_FullMethodName = "/gerrit.Gerrit/ListAccountEmails" Gerrit_ListChanges_FullMethodName = "/gerrit.Gerrit/ListChanges" Gerrit_GetChange_FullMethodName = "/gerrit.Gerrit/GetChange" Gerrit_GetMergeable_FullMethodName = "/gerrit.Gerrit/GetMergeable" Gerrit_ListFiles_FullMethodName = "/gerrit.Gerrit/ListFiles" Gerrit_GetRelatedChanges_FullMethodName = "/gerrit.Gerrit/GetRelatedChanges" Gerrit_GetPureRevert_FullMethodName = "/gerrit.Gerrit/GetPureRevert" Gerrit_GetMetaDiff_FullMethodName = "/gerrit.Gerrit/GetMetaDiff" Gerrit_CreateChange_FullMethodName = "/gerrit.Gerrit/CreateChange" Gerrit_ChangeEditFileContent_FullMethodName = "/gerrit.Gerrit/ChangeEditFileContent" Gerrit_DeleteEditFileContent_FullMethodName = "/gerrit.Gerrit/DeleteEditFileContent" Gerrit_ChangeEditPublish_FullMethodName = "/gerrit.Gerrit/ChangeEditPublish" Gerrit_AddReviewer_FullMethodName = "/gerrit.Gerrit/AddReviewer" Gerrit_DeleteReviewer_FullMethodName = "/gerrit.Gerrit/DeleteReviewer" Gerrit_SetReview_FullMethodName = "/gerrit.Gerrit/SetReview" Gerrit_AddToAttentionSet_FullMethodName = "/gerrit.Gerrit/AddToAttentionSet" Gerrit_SubmitChange_FullMethodName = "/gerrit.Gerrit/SubmitChange" Gerrit_RevertChange_FullMethodName = "/gerrit.Gerrit/RevertChange" Gerrit_AbandonChange_FullMethodName = "/gerrit.Gerrit/AbandonChange" Gerrit_SubmitRevision_FullMethodName = "/gerrit.Gerrit/SubmitRevision" )
Variables ¶
var ( QueryOption_name = map[int32]string{ 0: "OPTION_UNSPECIFIED", 1: "LABELS", 2: "DETAILED_LABELS", 4: "CURRENT_REVISION", 8: "ALL_REVISIONS", 16: "CURRENT_COMMIT", 32: "ALL_COMMITS", 64: "CURRENT_FILES", 128: "ALL_FILES", 256: "DETAILED_ACCOUNTS", 512: "REVIEWER_UPDATES", 1024: "MESSAGES", 2048: "CURRENT_ACTIONS", 4096: "CHANGE_ACTIONS", 8192: "REVIEWED", 16384: "SKIP_MERGEABLE", 32768: "SUBMITTABLE", 65536: "WEB_LINKS", 131072: "CHECK", 262144: "COMMIT_FOOTERS", 524288: "PUSH_CERTIFICATES", 1048576: "TRACKING_IDS", 2097152: "DOWNLOAD_COMMANDS", 4194304: "SUBMIT_REQUIREMENTS", 1073741824: "MAX_QUERY_OPTION", } QueryOption_value = map[string]int32{ "OPTION_UNSPECIFIED": 0, "LABELS": 1, "DETAILED_LABELS": 2, "CURRENT_REVISION": 4, "ALL_REVISIONS": 8, "CURRENT_COMMIT": 16, "ALL_COMMITS": 32, "CURRENT_FILES": 64, "ALL_FILES": 128, "DETAILED_ACCOUNTS": 256, "REVIEWER_UPDATES": 512, "MESSAGES": 1024, "CURRENT_ACTIONS": 2048, "CHANGE_ACTIONS": 4096, "REVIEWED": 8192, "SKIP_MERGEABLE": 16384, "SUBMITTABLE": 32768, "WEB_LINKS": 65536, "CHECK": 131072, "COMMIT_FOOTERS": 262144, "PUSH_CERTIFICATES": 524288, "TRACKING_IDS": 1048576, "DOWNLOAD_COMMANDS": 2097152, "SUBMIT_REQUIREMENTS": 4194304, "MAX_QUERY_OPTION": 1073741824, } )
Enum value maps for QueryOption.
var ( Notify_name = map[int32]string{ 0: "NOTIFY_UNSPECIFIED", 1: "NOTIFY_NONE", 2: "NOTIFY_OWNER", 3: "NOTIFY_OWNER_REVIEWERS", 4: "NOTIFY_ALL", } Notify_value = map[string]int32{ "NOTIFY_UNSPECIFIED": 0, "NOTIFY_NONE": 1, "NOTIFY_OWNER": 2, "NOTIFY_OWNER_REVIEWERS": 3, "NOTIFY_ALL": 4, } )
Enum value maps for Notify.
var ( ChangeStatus_name = map[int32]string{ 0: "CHANGE_STATUS_INVALID", 1: "NEW", 2: "MERGED", 3: "ABANDONED", } ChangeStatus_value = map[string]int32{ "CHANGE_STATUS_INVALID": 0, "NEW": 1, "MERGED": 2, "ABANDONED": 3, } )
Enum value maps for ChangeStatus.
var ( MergeableStrategy_name = map[int32]string{ 0: "MERGEABLE_STRATEGY_UNSPECIFIED", 1: "RECURSIVE", 2: "RESOLVE", 3: "SIMPLE_TWO_WAY_IN_CORE", 4: "OURS", 5: "THEIRS", } MergeableStrategy_value = map[string]int32{ "MERGEABLE_STRATEGY_UNSPECIFIED": 0, "RECURSIVE": 1, "RESOLVE": 2, "SIMPLE_TWO_WAY_IN_CORE": 3, "OURS": 4, "THEIRS": 5, } )
Enum value maps for MergeableStrategy.
var ( NotifyDetails_RecipientType_name = map[int32]string{ 0: "RECIPIENT_TYPE_UNSPECIFIED", 1: "RECIPIENT_TYPE_TO", 2: "RECIPIENT_TYPE_CC", 3: "RECIPIENT_TYPE_BCC", } NotifyDetails_RecipientType_value = map[string]int32{ "RECIPIENT_TYPE_UNSPECIFIED": 0, "RECIPIENT_TYPE_TO": 1, "RECIPIENT_TYPE_CC": 2, "RECIPIENT_TYPE_BCC": 3, } )
Enum value maps for NotifyDetails_RecipientType.
var ( RevisionInfo_Kind_name = map[int32]string{ 0: "KIND_INVALID", 1: "REWORK", 2: "TRIVIAL_REBASE", 3: "MERGE_FIRST_PARENT_UPDATE", 4: "NO_CODE_CHANGE", 5: "NO_CHANGE", 6: "TRIVIAL_REBASE_WITH_MESSAGE_UPDATE", } RevisionInfo_Kind_value = map[string]int32{ "KIND_INVALID": 0, "REWORK": 1, "TRIVIAL_REBASE": 2, "MERGE_FIRST_PARENT_UPDATE": 3, "NO_CODE_CHANGE": 4, "NO_CHANGE": 5, "TRIVIAL_REBASE_WITH_MESSAGE_UPDATE": 6, } )
Enum value maps for RevisionInfo_Kind.
var ( Requirement_Status_name = map[int32]string{ 0: "REQUIREMENT_STATUS_UNSPECIFIED", 1: "REQUIREMENT_STATUS_OK", 2: "REQUIREMENT_STATUS_NOT_READY", 3: "REQUIREMENT_STATUS_RULE_ERROR", } Requirement_Status_value = map[string]int32{ "REQUIREMENT_STATUS_UNSPECIFIED": 0, "REQUIREMENT_STATUS_OK": 1, "REQUIREMENT_STATUS_NOT_READY": 2, "REQUIREMENT_STATUS_RULE_ERROR": 3, } )
Enum value maps for Requirement_Status.
var ( FileInfo_Status_name = map[int32]string{ 0: "M", 1: "A", 2: "D", 3: "R", 4: "C", 5: "W", } FileInfo_Status_value = map[string]int32{ "M": 0, "A": 1, "D": 2, "R": 3, "C": 4, "W": 5, } )
Enum value maps for FileInfo_Status.
var ( AddReviewerRequest_State_name = map[int32]string{ 0: "ADD_REVIEWER_STATE_UNSPECIFIED", 1: "ADD_REVIEWER_STATE_REVIEWER", 2: "ADD_REVIEWER_STATE_CC", } AddReviewerRequest_State_value = map[string]int32{ "ADD_REVIEWER_STATE_UNSPECIFIED": 0, "ADD_REVIEWER_STATE_REVIEWER": 1, "ADD_REVIEWER_STATE_CC": 2, } )
Enum value maps for AddReviewerRequest_State.
var ( ReviewerInput_State_name = map[int32]string{ 0: "REVIEWER_INPUT_STATE_UNSPECIFIED", 1: "REVIEWER_INPUT_STATE_REVIEWER", 2: "REVIEWER_INPUT_STATE_CC", } ReviewerInput_State_value = map[string]int32{ "REVIEWER_INPUT_STATE_UNSPECIFIED": 0, "REVIEWER_INPUT_STATE_REVIEWER": 1, "REVIEWER_INPUT_STATE_CC": 2, } )
Enum value maps for ReviewerInput_State.
var ( MergeableInfo_SubmitType_name = map[int32]string{ 0: "SUBMIT_TYPE_UNSPECIFIED", 1: "MERGE_IF_NECESSARY", 2: "FAST_FORWARD_ONLY", 3: "REBASE_IF_NECESSARY", 4: "REBASE_ALWAYS", 5: "MERGE_ALWAYS", 6: "CHERRY_PICK", } MergeableInfo_SubmitType_value = map[string]int32{ "SUBMIT_TYPE_UNSPECIFIED": 0, "MERGE_IF_NECESSARY": 1, "FAST_FORWARD_ONLY": 2, "REBASE_IF_NECESSARY": 3, "REBASE_ALWAYS": 4, "MERGE_ALWAYS": 5, "CHERRY_PICK": 6, } )
Enum value maps for MergeableInfo_SubmitType.
var ( ProjectInfo_State_name = map[int32]string{ 0: "PROJECT_STATE_UNSPECIFIED", 1: "PROJECT_STATE_ACTIVE", 2: "PROJECT_STATE_READ_ONLY", 3: "PROJECT_STATE_HIDDEN", } ProjectInfo_State_value = map[string]int32{ "PROJECT_STATE_UNSPECIFIED": 0, "PROJECT_STATE_ACTIVE": 1, "PROJECT_STATE_READ_ONLY": 2, "PROJECT_STATE_HIDDEN": 3, } )
Enum value maps for ProjectInfo_State.
var ( SubmitRequirementResultInfo_Status_name = map[int32]string{ 0: "SUBMIT_REQUIREMENT_STATUS_UNSPECIFIED", 1: "SATISFIED", 2: "UNSATISFIED", 3: "OVERRIDDEN", 4: "NOT_APPLICABLE", 5: "ERROR", 6: "FORCED", } SubmitRequirementResultInfo_Status_value = map[string]int32{ "SUBMIT_REQUIREMENT_STATUS_UNSPECIFIED": 0, "SATISFIED": 1, "UNSATISFIED": 2, "OVERRIDDEN": 3, "NOT_APPLICABLE": 4, "ERROR": 5, "FORCED": 6, } )
Enum value maps for SubmitRequirementResultInfo_Status.
var ( SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType_name = map[int32]string{ 0: "UPDATE_TYPE_UNSPECIFIED", 1: "CREATE", 2: "UPDATE_FAST_FORWARD", 3: "UPDATE_NON_FAST_FORWARD", 4: "DELETE", } SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType_value = map[string]int32{ "UPDATE_TYPE_UNSPECIFIED": 0, "CREATE": 1, "UPDATE_FAST_FORWARD": 2, "UPDATE_NON_FAST_FORWARD": 3, "DELETE": 4, } )
Enum value maps for SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType.
var File_go_chromium_org_luci_common_proto_gerrit_gerrit_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_common_proto_gerrit_source_repo_event_proto protoreflect.FileDescriptor
var Gerrit_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gerrit.Gerrit", HandlerType: (*GerritServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListProjects", Handler: _Gerrit_ListProjects_Handler, }, { MethodName: "GetRefInfo", Handler: _Gerrit_GetRefInfo_Handler, }, { MethodName: "ListFileOwners", Handler: _Gerrit_ListFileOwners_Handler, }, { MethodName: "ListAccountEmails", Handler: _Gerrit_ListAccountEmails_Handler, }, { MethodName: "ListChanges", Handler: _Gerrit_ListChanges_Handler, }, { MethodName: "GetChange", Handler: _Gerrit_GetChange_Handler, }, { MethodName: "GetMergeable", Handler: _Gerrit_GetMergeable_Handler, }, { MethodName: "ListFiles", Handler: _Gerrit_ListFiles_Handler, }, { MethodName: "GetRelatedChanges", Handler: _Gerrit_GetRelatedChanges_Handler, }, { MethodName: "GetPureRevert", Handler: _Gerrit_GetPureRevert_Handler, }, { MethodName: "GetMetaDiff", Handler: _Gerrit_GetMetaDiff_Handler, }, { MethodName: "CreateChange", Handler: _Gerrit_CreateChange_Handler, }, { MethodName: "ChangeEditFileContent", Handler: _Gerrit_ChangeEditFileContent_Handler, }, { MethodName: "DeleteEditFileContent", Handler: _Gerrit_DeleteEditFileContent_Handler, }, { MethodName: "ChangeEditPublish", Handler: _Gerrit_ChangeEditPublish_Handler, }, { MethodName: "AddReviewer", Handler: _Gerrit_AddReviewer_Handler, }, { MethodName: "DeleteReviewer", Handler: _Gerrit_DeleteReviewer_Handler, }, { MethodName: "SetReview", Handler: _Gerrit_SetReview_Handler, }, { MethodName: "AddToAttentionSet", Handler: _Gerrit_AddToAttentionSet_Handler, }, { MethodName: "SubmitChange", Handler: _Gerrit_SubmitChange_Handler, }, { MethodName: "RevertChange", Handler: _Gerrit_RevertChange_Handler, }, { MethodName: "AbandonChange", Handler: _Gerrit_AbandonChange_Handler, }, { MethodName: "SubmitRevision", Handler: _Gerrit_SubmitRevision_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "go.chromium.org/luci/common/proto/gerrit/gerrit.proto", }
Gerrit_ServiceDesc is the grpc.ServiceDesc for Gerrit service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func FileDescriptorSet ¶
func FileDescriptorSet() *descriptorpb.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 RegisterGerritServer ¶
func RegisterGerritServer(s grpc.ServiceRegistrar, srv GerritServer)
Types ¶
type AbandonChangeRequest ¶
type AbandonChangeRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
Information for abandoning a change.
Fields are a subset of arguments from: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#abandon-change https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#abandon-input
func (*AbandonChangeRequest) Descriptor
deprecated
func (*AbandonChangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AbandonChangeRequest.ProtoReflect.Descriptor instead.
func (*AbandonChangeRequest) GetMessage ¶
func (x *AbandonChangeRequest) GetMessage() string
func (*AbandonChangeRequest) GetNumber ¶
func (x *AbandonChangeRequest) GetNumber() int64
func (*AbandonChangeRequest) GetProject ¶
func (x *AbandonChangeRequest) GetProject() string
func (*AbandonChangeRequest) ProtoMessage ¶
func (*AbandonChangeRequest) ProtoMessage()
func (*AbandonChangeRequest) ProtoReflect ¶
func (x *AbandonChangeRequest) ProtoReflect() protoreflect.Message
func (*AbandonChangeRequest) Reset ¶
func (x *AbandonChangeRequest) Reset()
func (*AbandonChangeRequest) String ¶
func (x *AbandonChangeRequest) String() string
type AccountInfo ¶
type AccountInfo struct { // The full name of the user. // Only set if detailed account information is requested. // See option DETAILED_ACCOUNTS for change queries // and option DETAILS for account queries. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The email address the user prefers to be contacted through. // Only set if detailed account information is requested. // See option DETAILED_ACCOUNTS for change queries // and options DETAILS and ALL_EMAILS for account queries. Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // A list of the secondary email addresses of the user. // Only set for account queries when the ALL_EMAILS option or the suggest // parameter is set. Secondary emails are only included if the calling user // has the Modify Account, and hence is allowed to see secondary emails of // other users. SecondaryEmails []string `protobuf:"bytes,3,rep,name=secondary_emails,json=secondaryEmails,proto3" json:"secondary_emails,omitempty"` // The username of the user. // Only set if detailed account information is requested. // See option DETAILED_ACCOUNTS for change queries // and option DETAILS for account queries. Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` // The numeric ID of the account AccountId int64 `protobuf:"varint,5,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // List of additional tags that this account has. // // The only current tag an account can have is SERVICE_USER. // Only set if detailed account information is requested. // See option DETAILED_ACCOUNTS Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
Information about an account.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-info
func (*AccountInfo) Descriptor
deprecated
func (*AccountInfo) Descriptor() ([]byte, []int)
Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.
func (*AccountInfo) GetAccountId ¶
func (x *AccountInfo) GetAccountId() int64
func (*AccountInfo) GetEmail ¶
func (x *AccountInfo) GetEmail() string
func (*AccountInfo) GetName ¶
func (x *AccountInfo) GetName() string
func (*AccountInfo) GetSecondaryEmails ¶
func (x *AccountInfo) GetSecondaryEmails() []string
func (*AccountInfo) GetTags ¶
func (x *AccountInfo) GetTags() []string
func (*AccountInfo) GetUsername ¶
func (x *AccountInfo) GetUsername() string
func (*AccountInfo) ProtoMessage ¶
func (*AccountInfo) ProtoMessage()
func (*AccountInfo) ProtoReflect ¶
func (x *AccountInfo) ProtoReflect() protoreflect.Message
func (*AccountInfo) Reset ¶
func (x *AccountInfo) Reset()
func (*AccountInfo) String ¶
func (x *AccountInfo) String() string
type AccountOptions ¶
type AccountOptions struct { // Include account details in the response Details bool `protobuf:"varint,1,opt,name=details,proto3" json:"details,omitempty"` // Include all registered emails // Requires the caller to have Modify Account global capability AllEmails bool `protobuf:"varint,2,opt,name=all_emails,json=allEmails,proto3" json:"all_emails,omitempty"` // contains filtered or unexported fields }
Options when requesting information about an account
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#details
func (*AccountOptions) Descriptor
deprecated
func (*AccountOptions) Descriptor() ([]byte, []int)
Deprecated: Use AccountOptions.ProtoReflect.Descriptor instead.
func (*AccountOptions) GetAllEmails ¶
func (x *AccountOptions) GetAllEmails() bool
func (*AccountOptions) GetDetails ¶
func (x *AccountOptions) GetDetails() bool
func (*AccountOptions) ProtoMessage ¶
func (*AccountOptions) ProtoMessage()
func (*AccountOptions) ProtoReflect ¶
func (x *AccountOptions) ProtoReflect() protoreflect.Message
func (*AccountOptions) Reset ¶
func (x *AccountOptions) Reset()
func (*AccountOptions) String ¶
func (x *AccountOptions) String() string
type AddReviewerRequest ¶
type AddReviewerRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // The ID of a single account or group to review the change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-id Reviewer string `protobuf:"bytes,3,opt,name=reviewer,proto3" json:"reviewer,omitempty"` // The state to add reviewer in, defaults to REVIEWER. State AddReviewerRequest_State `protobuf:"varint,4,opt,name=state,proto3,enum=gerrit.AddReviewerRequest_State" json:"state,omitempty"` // Whether adding the reviewer is confirmed. Confirmed bool `protobuf:"varint,5,opt,name=confirmed,proto3" json:"confirmed,omitempty"` // Defines who should be notified after reviewer is added, defaults to ALL. Notify Notify `protobuf:"varint,6,opt,name=notify,proto3,enum=gerrit.Notify" json:"notify,omitempty"` // contains filtered or unexported fields }
Information for adding a reviewer.
https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-reviewer https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#reviewer-input
func (*AddReviewerRequest) Descriptor
deprecated
func (*AddReviewerRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddReviewerRequest.ProtoReflect.Descriptor instead.
func (*AddReviewerRequest) GetConfirmed ¶
func (x *AddReviewerRequest) GetConfirmed() bool
func (*AddReviewerRequest) GetNotify ¶
func (x *AddReviewerRequest) GetNotify() Notify
func (*AddReviewerRequest) GetNumber ¶
func (x *AddReviewerRequest) GetNumber() int64
func (*AddReviewerRequest) GetProject ¶
func (x *AddReviewerRequest) GetProject() string
func (*AddReviewerRequest) GetReviewer ¶
func (x *AddReviewerRequest) GetReviewer() string
func (*AddReviewerRequest) GetState ¶
func (x *AddReviewerRequest) GetState() AddReviewerRequest_State
func (*AddReviewerRequest) ProtoMessage ¶
func (*AddReviewerRequest) ProtoMessage()
func (*AddReviewerRequest) ProtoReflect ¶
func (x *AddReviewerRequest) ProtoReflect() protoreflect.Message
func (*AddReviewerRequest) Reset ¶
func (x *AddReviewerRequest) Reset()
func (*AddReviewerRequest) String ¶
func (x *AddReviewerRequest) String() string
type AddReviewerRequest_State ¶
type AddReviewerRequest_State int32
const ( AddReviewerRequest_ADD_REVIEWER_STATE_UNSPECIFIED AddReviewerRequest_State = 0 AddReviewerRequest_ADD_REVIEWER_STATE_REVIEWER AddReviewerRequest_State = 1 AddReviewerRequest_ADD_REVIEWER_STATE_CC AddReviewerRequest_State = 2 )
func (AddReviewerRequest_State) Descriptor ¶
func (AddReviewerRequest_State) Descriptor() protoreflect.EnumDescriptor
func (AddReviewerRequest_State) Enum ¶
func (x AddReviewerRequest_State) Enum() *AddReviewerRequest_State
func (AddReviewerRequest_State) EnumDescriptor
deprecated
func (AddReviewerRequest_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use AddReviewerRequest_State.Descriptor instead.
func (AddReviewerRequest_State) Number ¶
func (x AddReviewerRequest_State) Number() protoreflect.EnumNumber
func (AddReviewerRequest_State) String ¶
func (x AddReviewerRequest_State) String() string
func (AddReviewerRequest_State) Type ¶
func (AddReviewerRequest_State) Type() protoreflect.EnumType
type AddReviewerResult ¶
type AddReviewerResult struct { // The Account ID from the AddReviewerRequest.reviewer field // // https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-id Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` // The newly added reviewers // If a group is added as a reviewer (or cc) // all group members are added. Reviewers []*ReviewerInfo `protobuf:"bytes,2,rep,name=reviewers,proto3" json:"reviewers,omitempty"` // The newly cc'd accounts Ccs []*ReviewerInfo `protobuf:"bytes,3,rep,name=ccs,proto3" json:"ccs,omitempty"` // The error message Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // Whether adding the reviewer requires confirmation Confirm bool `protobuf:"varint,5,opt,name=confirm,proto3" json:"confirm,omitempty"` // contains filtered or unexported fields }
The result of adding a reviewer to a change
https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-reviewer https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-reviewer-result
func (*AddReviewerResult) Descriptor
deprecated
func (*AddReviewerResult) Descriptor() ([]byte, []int)
Deprecated: Use AddReviewerResult.ProtoReflect.Descriptor instead.
func (*AddReviewerResult) GetCcs ¶
func (x *AddReviewerResult) GetCcs() []*ReviewerInfo
func (*AddReviewerResult) GetConfirm ¶
func (x *AddReviewerResult) GetConfirm() bool
func (*AddReviewerResult) GetError ¶
func (x *AddReviewerResult) GetError() string
func (*AddReviewerResult) GetInput ¶
func (x *AddReviewerResult) GetInput() string
func (*AddReviewerResult) GetReviewers ¶
func (x *AddReviewerResult) GetReviewers() []*ReviewerInfo
func (*AddReviewerResult) ProtoMessage ¶
func (*AddReviewerResult) ProtoMessage()
func (*AddReviewerResult) ProtoReflect ¶
func (x *AddReviewerResult) ProtoReflect() protoreflect.Message
func (*AddReviewerResult) Reset ¶
func (x *AddReviewerResult) Reset()
func (*AddReviewerResult) String ¶
func (x *AddReviewerResult) String() string
type ApprovalInfo ¶
type ApprovalInfo struct { // User who did the approval. User *AccountInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // The vote that the user has given for the label. Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // The range of votes the user is authorized to vote on that label. // // If absent, the user is not permitted to vote on that label. PermittedVotingRange *VotingRangeInfo `protobuf:"bytes,3,opt,name=permitted_voting_range,json=permittedVotingRange,proto3" json:"permitted_voting_range,omitempty"` // The time and date describing when the approval was made. Date *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"` // Value of the tag field from ReviewInput set while posting the review. Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"` // If true, this vote was made after the change was submitted. PostSubmit bool `protobuf:"varint,6,opt,name=post_submit,json=postSubmit,proto3" json:"post_submit,omitempty"` // contains filtered or unexported fields }
Information about an approval from a user for a label on a change.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#approval-info
func (*ApprovalInfo) Descriptor
deprecated
func (*ApprovalInfo) Descriptor() ([]byte, []int)
Deprecated: Use ApprovalInfo.ProtoReflect.Descriptor instead.
func (*ApprovalInfo) GetDate ¶
func (x *ApprovalInfo) GetDate() *timestamppb.Timestamp
func (*ApprovalInfo) GetPermittedVotingRange ¶
func (x *ApprovalInfo) GetPermittedVotingRange() *VotingRangeInfo
func (*ApprovalInfo) GetPostSubmit ¶
func (x *ApprovalInfo) GetPostSubmit() bool
func (*ApprovalInfo) GetTag ¶
func (x *ApprovalInfo) GetTag() string
func (*ApprovalInfo) GetUser ¶
func (x *ApprovalInfo) GetUser() *AccountInfo
func (*ApprovalInfo) GetValue ¶
func (x *ApprovalInfo) GetValue() int32
func (*ApprovalInfo) ProtoMessage ¶
func (*ApprovalInfo) ProtoMessage()
func (*ApprovalInfo) ProtoReflect ¶
func (x *ApprovalInfo) ProtoReflect() protoreflect.Message
func (*ApprovalInfo) Reset ¶
func (x *ApprovalInfo) Reset()
func (*ApprovalInfo) String ¶
func (x *ApprovalInfo) String() string
type AttentionSetInput ¶
type AttentionSetInput struct { // A unique identifier for an account. // // Source of truth: // https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-id User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // The justification for adding/removing the user. Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // Defines who should be notified after change is created, defaults to OWNER. Notify Notify `protobuf:"varint,3,opt,name=notify,proto3,enum=gerrit.Notify" json:"notify,omitempty"` // NotifyDetails contains additional information about whom to notify. // // These notifications are sent out even if `notify` options disables normal // notifications. NotifyDetails *NotifyDetails `protobuf:"bytes,4,opt,name=notify_details,json=notifyDetails,proto3" json:"notify_details,omitempty"` // contains filtered or unexported fields }
Information to add/remove a user from the attention set.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#attention-set-input
func (*AttentionSetInput) Descriptor
deprecated
func (*AttentionSetInput) Descriptor() ([]byte, []int)
Deprecated: Use AttentionSetInput.ProtoReflect.Descriptor instead.
func (*AttentionSetInput) GetNotify ¶
func (x *AttentionSetInput) GetNotify() Notify
func (*AttentionSetInput) GetNotifyDetails ¶
func (x *AttentionSetInput) GetNotifyDetails() *NotifyDetails
func (*AttentionSetInput) GetReason ¶
func (x *AttentionSetInput) GetReason() string
func (*AttentionSetInput) GetUser ¶
func (x *AttentionSetInput) GetUser() string
func (*AttentionSetInput) ProtoMessage ¶
func (*AttentionSetInput) ProtoMessage()
func (*AttentionSetInput) ProtoReflect ¶
func (x *AttentionSetInput) ProtoReflect() protoreflect.Message
func (*AttentionSetInput) Reset ¶
func (x *AttentionSetInput) Reset()
func (*AttentionSetInput) String ¶
func (x *AttentionSetInput) String() string
func (*AttentionSetInput) Validate ¶
func (i *AttentionSetInput) Validate() error
Validate returns an error if i is invalid.
type AttentionSetRequest ¶
type AttentionSetRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Input *AttentionSetInput `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"` // contains filtered or unexported fields }
Information to add/remove a user from the attention set of a change.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#attention-set-input
func (*AttentionSetRequest) Descriptor
deprecated
func (*AttentionSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use AttentionSetRequest.ProtoReflect.Descriptor instead.
func (*AttentionSetRequest) GetInput ¶
func (x *AttentionSetRequest) GetInput() *AttentionSetInput
func (*AttentionSetRequest) GetNumber ¶
func (x *AttentionSetRequest) GetNumber() int64
func (*AttentionSetRequest) GetProject ¶
func (x *AttentionSetRequest) GetProject() string
func (*AttentionSetRequest) ProtoMessage ¶
func (*AttentionSetRequest) ProtoMessage()
func (*AttentionSetRequest) ProtoReflect ¶
func (x *AttentionSetRequest) ProtoReflect() protoreflect.Message
func (*AttentionSetRequest) Reset ¶
func (x *AttentionSetRequest) Reset()
func (*AttentionSetRequest) String ¶
func (x *AttentionSetRequest) String() string
func (*AttentionSetRequest) Validate ¶
func (r *AttentionSetRequest) Validate() error
Validate returns an error if r is invalid.
type ChangeEditFileContentRequest ¶
type ChangeEditFileContentRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Path to the file to edit inside the project. FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // New content of the file. Overwrites existing contents entirely. Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
Information for changing contents of single file in a change edit.
Fields encode the path arguments of https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#put-edit-file
func (*ChangeEditFileContentRequest) Descriptor
deprecated
func (*ChangeEditFileContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangeEditFileContentRequest.ProtoReflect.Descriptor instead.
func (*ChangeEditFileContentRequest) GetContent ¶
func (x *ChangeEditFileContentRequest) GetContent() []byte
func (*ChangeEditFileContentRequest) GetFilePath ¶
func (x *ChangeEditFileContentRequest) GetFilePath() string
func (*ChangeEditFileContentRequest) GetNumber ¶
func (x *ChangeEditFileContentRequest) GetNumber() int64
func (*ChangeEditFileContentRequest) GetProject ¶
func (x *ChangeEditFileContentRequest) GetProject() string
func (*ChangeEditFileContentRequest) ProtoMessage ¶
func (*ChangeEditFileContentRequest) ProtoMessage()
func (*ChangeEditFileContentRequest) ProtoReflect ¶
func (x *ChangeEditFileContentRequest) ProtoReflect() protoreflect.Message
func (*ChangeEditFileContentRequest) Reset ¶
func (x *ChangeEditFileContentRequest) Reset()
func (*ChangeEditFileContentRequest) String ¶
func (x *ChangeEditFileContentRequest) String() string
type ChangeEditPublishRequest ¶
type ChangeEditPublishRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
Information for publishing a change edit.
This is a placeholder to support the arguments from: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-edit https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-change-edit-input
func (*ChangeEditPublishRequest) Descriptor
deprecated
func (*ChangeEditPublishRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangeEditPublishRequest.ProtoReflect.Descriptor instead.
func (*ChangeEditPublishRequest) GetNumber ¶
func (x *ChangeEditPublishRequest) GetNumber() int64
func (*ChangeEditPublishRequest) GetProject ¶
func (x *ChangeEditPublishRequest) GetProject() string
func (*ChangeEditPublishRequest) ProtoMessage ¶
func (*ChangeEditPublishRequest) ProtoMessage()
func (*ChangeEditPublishRequest) ProtoReflect ¶
func (x *ChangeEditPublishRequest) ProtoReflect() protoreflect.Message
func (*ChangeEditPublishRequest) Reset ¶
func (x *ChangeEditPublishRequest) Reset()
func (*ChangeEditPublishRequest) String ¶
func (x *ChangeEditPublishRequest) String() string
type ChangeInfo ¶
type ChangeInfo struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The owner of the change. Owner *AccountInfo `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // The project of this change. For example, "chromium/src". Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` // Ref that this change targets, e.g.: refs/heads/master // // Note that the gerrit API may return short branch name (master instead of // refs/heads/master) but we convert it to a ref for consistency across the // API. Ref string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"` Status ChangeStatus `protobuf:"varint,5,opt,name=status,proto3,enum=gerrit.ChangeStatus" json:"status,omitempty"` // Current revision of the change. // // See: // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revision-id CurrentRevision string `protobuf:"bytes,6,opt,name=current_revision,json=currentRevision,proto3" json:"current_revision,omitempty"` // A map of patch set commit IDs to RevisionInfos. // // Only set if revision information is requested. Revisions map[string]*RevisionInfo `` /* 159-byte string literal not displayed */ // A map of label names to LabelInfos. // // Only set if label info is requested. Labels map[string]*LabelInfo `` /* 153-byte string literal not displayed */ // Messages associated with the change. // // Only set if messages are requested. Messages []*ChangeMessageInfo `protobuf:"bytes,9,rep,name=messages,proto3" json:"messages,omitempty"` // List of the requirements to be met before this change can be submitted. // // Deprecated: use `submit_requirements` instead. // // Deprecated: Marked as deprecated in go.chromium.org/luci/common/proto/gerrit/gerrit.proto. Requirements []*Requirement `protobuf:"bytes,14,rep,name=requirements,proto3" json:"requirements,omitempty"` // Whether the change is approved // by the project submit rules. // // Only set if submittable is requested. Submittable bool `protobuf:"varint,10,opt,name=submittable,proto3" json:"submittable,omitempty"` // Whether change is private. IsPrivate bool `protobuf:"varint,13,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"` Hashtags []string `protobuf:"bytes,19,rep,name=hashtags,proto3" json:"hashtags,omitempty"` // Timestamp of when the change was created Created *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created,proto3" json:"created,omitempty"` // Timestamp of when the change was last updated Updated *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated,proto3" json:"updated,omitempty"` // Timestamp of when the change was submitted. // // Only set for merged changes. Submitted *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=submitted,proto3" json:"submitted,omitempty"` // The numeric Change-Id of the change that this change reverts. RevertOf int64 `protobuf:"varint,15,opt,name=revert_of,json=revertOf,proto3" json:"revert_of,omitempty"` // The numeric Change-Id of the change that this change was cherry-picked from. CherryPickOfChange int64 `protobuf:"varint,16,opt,name=cherry_pick_of_change,json=cherryPickOfChange,proto3" json:"cherry_pick_of_change,omitempty"` // The users who have been added in and removed from the change. Reviewers *ReviewerStatusMap `protobuf:"bytes,17,opt,name=reviewers,proto3" json:"reviewers,omitempty"` // The SHA-1 of the NoteDb meta ref. MetaRevId string `protobuf:"bytes,18,opt,name=meta_rev_id,json=metaRevId,proto3" json:"meta_rev_id,omitempty"` // The evaluation results of the submit requirements for this change. SubmitRequirements []*SubmitRequirementResultInfo `protobuf:"bytes,20,rep,name=submit_requirements,json=submitRequirements,proto3" json:"submit_requirements,omitempty"` // The subject of the change (header line of the commit message). Subject string `protobuf:"bytes,22,opt,name=subject,proto3" json:"subject,omitempty"` // The name of the target branch. The refs/heads/ prefix is omitted. Branch string `protobuf:"bytes,23,opt,name=branch,proto3" json:"branch,omitempty"` // contains filtered or unexported fields }
Information about a change.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-info
Next tag: 24.
func (*ChangeInfo) Descriptor
deprecated
func (*ChangeInfo) Descriptor() ([]byte, []int)
Deprecated: Use ChangeInfo.ProtoReflect.Descriptor instead.
func (*ChangeInfo) GetBranch ¶
func (x *ChangeInfo) GetBranch() string
func (*ChangeInfo) GetCherryPickOfChange ¶
func (x *ChangeInfo) GetCherryPickOfChange() int64
func (*ChangeInfo) GetCreated ¶
func (x *ChangeInfo) GetCreated() *timestamppb.Timestamp
func (*ChangeInfo) GetCurrentRevision ¶
func (x *ChangeInfo) GetCurrentRevision() string
func (*ChangeInfo) GetHashtags ¶
func (x *ChangeInfo) GetHashtags() []string
func (*ChangeInfo) GetIsPrivate ¶
func (x *ChangeInfo) GetIsPrivate() bool
func (*ChangeInfo) GetLabels ¶
func (x *ChangeInfo) GetLabels() map[string]*LabelInfo
func (*ChangeInfo) GetMessages ¶
func (x *ChangeInfo) GetMessages() []*ChangeMessageInfo
func (*ChangeInfo) GetMetaRevId ¶
func (x *ChangeInfo) GetMetaRevId() string
func (*ChangeInfo) GetNumber ¶
func (x *ChangeInfo) GetNumber() int64
func (*ChangeInfo) GetOwner ¶
func (x *ChangeInfo) GetOwner() *AccountInfo
func (*ChangeInfo) GetProject ¶
func (x *ChangeInfo) GetProject() string
func (*ChangeInfo) GetRef ¶
func (x *ChangeInfo) GetRef() string
func (*ChangeInfo) GetRequirements
deprecated
func (x *ChangeInfo) GetRequirements() []*Requirement
Deprecated: Marked as deprecated in go.chromium.org/luci/common/proto/gerrit/gerrit.proto.
func (*ChangeInfo) GetRevertOf ¶
func (x *ChangeInfo) GetRevertOf() int64
func (*ChangeInfo) GetReviewers ¶
func (x *ChangeInfo) GetReviewers() *ReviewerStatusMap
func (*ChangeInfo) GetRevisions ¶
func (x *ChangeInfo) GetRevisions() map[string]*RevisionInfo
func (*ChangeInfo) GetStatus ¶
func (x *ChangeInfo) GetStatus() ChangeStatus
func (*ChangeInfo) GetSubject ¶
func (x *ChangeInfo) GetSubject() string
func (*ChangeInfo) GetSubmitRequirements ¶
func (x *ChangeInfo) GetSubmitRequirements() []*SubmitRequirementResultInfo
func (*ChangeInfo) GetSubmittable ¶
func (x *ChangeInfo) GetSubmittable() bool
func (*ChangeInfo) GetSubmitted ¶
func (x *ChangeInfo) GetSubmitted() *timestamppb.Timestamp
func (*ChangeInfo) GetUpdated ¶
func (x *ChangeInfo) GetUpdated() *timestamppb.Timestamp
func (*ChangeInfo) ProtoMessage ¶
func (*ChangeInfo) ProtoMessage()
func (*ChangeInfo) ProtoReflect ¶
func (x *ChangeInfo) ProtoReflect() protoreflect.Message
func (*ChangeInfo) Reset ¶
func (x *ChangeInfo) Reset()
func (*ChangeInfo) String ¶
func (x *ChangeInfo) String() string
type ChangeMessageInfo ¶
type ChangeMessageInfo struct { // The ID of the message Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Author of the message. // // Unset if written by the Gerrit system. Author *AccountInfo `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` // Real author of the message. // // Set if the message was posted on behalf of another user. RealAuthor *AccountInfo `protobuf:"bytes,3,opt,name=real_author,json=realAuthor,proto3" json:"real_author,omitempty"` // The timestamp this message was posted. Date *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"` // The text left by the user. Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // Value of the tag field from ReviewInput set while posting the review Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
Information about a message attached to change.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-message-info
func (*ChangeMessageInfo) Descriptor
deprecated
func (*ChangeMessageInfo) Descriptor() ([]byte, []int)
Deprecated: Use ChangeMessageInfo.ProtoReflect.Descriptor instead.
func (*ChangeMessageInfo) GetAuthor ¶
func (x *ChangeMessageInfo) GetAuthor() *AccountInfo
func (*ChangeMessageInfo) GetDate ¶
func (x *ChangeMessageInfo) GetDate() *timestamppb.Timestamp
func (*ChangeMessageInfo) GetId ¶
func (x *ChangeMessageInfo) GetId() string
func (*ChangeMessageInfo) GetMessage ¶
func (x *ChangeMessageInfo) GetMessage() string
func (*ChangeMessageInfo) GetRealAuthor ¶
func (x *ChangeMessageInfo) GetRealAuthor() *AccountInfo
func (*ChangeMessageInfo) GetTag ¶
func (x *ChangeMessageInfo) GetTag() string
func (*ChangeMessageInfo) ProtoMessage ¶
func (*ChangeMessageInfo) ProtoMessage()
func (*ChangeMessageInfo) ProtoReflect ¶
func (x *ChangeMessageInfo) ProtoReflect() protoreflect.Message
func (*ChangeMessageInfo) Reset ¶
func (x *ChangeMessageInfo) Reset()
func (*ChangeMessageInfo) String ¶
func (x *ChangeMessageInfo) String() string
type ChangeStatus ¶
type ChangeStatus int32
const ( ChangeStatus_CHANGE_STATUS_INVALID ChangeStatus = 0 ChangeStatus_NEW ChangeStatus = 1 ChangeStatus_MERGED ChangeStatus = 2 ChangeStatus_ABANDONED ChangeStatus = 3 )
func (ChangeStatus) Descriptor ¶
func (ChangeStatus) Descriptor() protoreflect.EnumDescriptor
func (ChangeStatus) Enum ¶
func (x ChangeStatus) Enum() *ChangeStatus
func (ChangeStatus) EnumDescriptor
deprecated
func (ChangeStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChangeStatus.Descriptor instead.
func (ChangeStatus) Number ¶
func (x ChangeStatus) Number() protoreflect.EnumNumber
func (ChangeStatus) String ¶
func (x ChangeStatus) String() string
func (ChangeStatus) Type ¶
func (ChangeStatus) Type() protoreflect.EnumType
type CommitInfo ¶
type CommitInfo struct { // The commit ID. Not set if included in a RevisionInfo entity that is // contained in a map which has the commit ID as key. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Parents []*CommitInfo_Parent `protobuf:"bytes,2,rep,name=parents,proto3" json:"parents,omitempty"` // The commit message. // It is not set when CommitInfo is part of the GetRelatedChangesResponse. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // The author of the commit as a GitPersonInfo entity. Author *GitPersonInfo `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
The CommitInfo entity contains information about a commit.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#commit-info
func (*CommitInfo) Descriptor
deprecated
func (*CommitInfo) Descriptor() ([]byte, []int)
Deprecated: Use CommitInfo.ProtoReflect.Descriptor instead.
func (*CommitInfo) GetAuthor ¶
func (x *CommitInfo) GetAuthor() *GitPersonInfo
func (*CommitInfo) GetId ¶
func (x *CommitInfo) GetId() string
func (*CommitInfo) GetMessage ¶
func (x *CommitInfo) GetMessage() string
func (*CommitInfo) GetParents ¶
func (x *CommitInfo) GetParents() []*CommitInfo_Parent
func (*CommitInfo) ProtoMessage ¶
func (*CommitInfo) ProtoMessage()
func (*CommitInfo) ProtoReflect ¶
func (x *CommitInfo) ProtoReflect() protoreflect.Message
func (*CommitInfo) Reset ¶
func (x *CommitInfo) Reset()
func (*CommitInfo) String ¶
func (x *CommitInfo) String() string
type CommitInfo_Parent ¶
type CommitInfo_Parent struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // TODO(tandrii): add subject when necessary. // contains filtered or unexported fields }
func (*CommitInfo_Parent) Descriptor
deprecated
func (*CommitInfo_Parent) Descriptor() ([]byte, []int)
Deprecated: Use CommitInfo_Parent.ProtoReflect.Descriptor instead.
func (*CommitInfo_Parent) GetId ¶
func (x *CommitInfo_Parent) GetId() string
func (*CommitInfo_Parent) ProtoMessage ¶
func (*CommitInfo_Parent) ProtoMessage()
func (*CommitInfo_Parent) ProtoReflect ¶
func (x *CommitInfo_Parent) ProtoReflect() protoreflect.Message
func (*CommitInfo_Parent) Reset ¶
func (x *CommitInfo_Parent) Reset()
func (*CommitInfo_Parent) String ¶
func (x *CommitInfo_Parent) String() string
type CreateChangeRequest ¶
type CreateChangeRequest struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // Ref to base the new change at. e.g. refs/heads/master Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // 40-digit hex SHA-1 of the git commit which will be the parent commit of the // newly created change. If set, it must be a merged commit on the destination // branch. BaseCommit string `protobuf:"bytes,4,opt,name=base_commit,json=baseCommit,proto3" json:"base_commit,omitempty"` Notify Notify `protobuf:"varint,5,opt,name=notify,proto3,enum=gerrit.Notify" json:"notify,omitempty"` // contains filtered or unexported fields }
Information for creating a new change.
Fields are a subset of: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-input
func (*CreateChangeRequest) Descriptor
deprecated
func (*CreateChangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateChangeRequest.ProtoReflect.Descriptor instead.
func (*CreateChangeRequest) GetBaseCommit ¶
func (x *CreateChangeRequest) GetBaseCommit() string
func (*CreateChangeRequest) GetNotify ¶
func (x *CreateChangeRequest) GetNotify() Notify
func (*CreateChangeRequest) GetProject ¶
func (x *CreateChangeRequest) GetProject() string
func (*CreateChangeRequest) GetRef ¶
func (x *CreateChangeRequest) GetRef() string
func (*CreateChangeRequest) GetSubject ¶
func (x *CreateChangeRequest) GetSubject() string
func (*CreateChangeRequest) ProtoMessage ¶
func (*CreateChangeRequest) ProtoMessage()
func (*CreateChangeRequest) ProtoReflect ¶
func (x *CreateChangeRequest) ProtoReflect() protoreflect.Message
func (*CreateChangeRequest) Reset ¶
func (x *CreateChangeRequest) Reset()
func (*CreateChangeRequest) String ¶
func (x *CreateChangeRequest) String() string
type DeleteEditFileContentRequest ¶
type DeleteEditFileContentRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Path to the file to edit inside the project. FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // contains filtered or unexported fields }
Information for deleting contents of single file in a change edit.
Fields encode the path arguments of https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-edit-file
func (*DeleteEditFileContentRequest) Descriptor
deprecated
func (*DeleteEditFileContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteEditFileContentRequest.ProtoReflect.Descriptor instead.
func (*DeleteEditFileContentRequest) GetFilePath ¶
func (x *DeleteEditFileContentRequest) GetFilePath() string
func (*DeleteEditFileContentRequest) GetNumber ¶
func (x *DeleteEditFileContentRequest) GetNumber() int64
func (*DeleteEditFileContentRequest) GetProject ¶
func (x *DeleteEditFileContentRequest) GetProject() string
func (*DeleteEditFileContentRequest) ProtoMessage ¶
func (*DeleteEditFileContentRequest) ProtoMessage()
func (*DeleteEditFileContentRequest) ProtoReflect ¶
func (x *DeleteEditFileContentRequest) ProtoReflect() protoreflect.Message
func (*DeleteEditFileContentRequest) Reset ¶
func (x *DeleteEditFileContentRequest) Reset()
func (*DeleteEditFileContentRequest) String ¶
func (x *DeleteEditFileContentRequest) String() string
type DeleteReviewerRequest ¶
type DeleteReviewerRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // The ID of a single account or group to review the change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-id AccountId string `protobuf:"bytes,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteReviewerRequest) Descriptor
deprecated
func (*DeleteReviewerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteReviewerRequest.ProtoReflect.Descriptor instead.
func (*DeleteReviewerRequest) GetAccountId ¶
func (x *DeleteReviewerRequest) GetAccountId() string
func (*DeleteReviewerRequest) GetNumber ¶
func (x *DeleteReviewerRequest) GetNumber() int64
func (*DeleteReviewerRequest) GetProject ¶
func (x *DeleteReviewerRequest) GetProject() string
func (*DeleteReviewerRequest) ProtoMessage ¶
func (*DeleteReviewerRequest) ProtoMessage()
func (*DeleteReviewerRequest) ProtoReflect ¶
func (x *DeleteReviewerRequest) ProtoReflect() protoreflect.Message
func (*DeleteReviewerRequest) Reset ¶
func (x *DeleteReviewerRequest) Reset()
func (*DeleteReviewerRequest) String ¶
func (x *DeleteReviewerRequest) String() string
type EmailInfo ¶
type EmailInfo struct { // Email address linked to the user account. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // Set true if the email address is set as preferred. Preferred bool `protobuf:"varint,2,opt,name=preferred,proto3" json:"preferred,omitempty"` // Set true if the user must confirm control of the email address by following // a verification link before Gerrit will permit use of this address. PendingConfirmation bool `protobuf:"varint,3,opt,name=pending_confirmation,json=pendingConfirmation,proto3" json:"pending_confirmation,omitempty"` // contains filtered or unexported fields }
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#email-info
func (*EmailInfo) Descriptor
deprecated
func (*EmailInfo) GetPendingConfirmation ¶
func (*EmailInfo) GetPreferred ¶
func (*EmailInfo) ProtoMessage ¶
func (*EmailInfo) ProtoMessage()
func (*EmailInfo) ProtoReflect ¶
func (x *EmailInfo) ProtoReflect() protoreflect.Message
type FileInfo ¶
type FileInfo struct { // Status of the file. Status FileInfo_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gerrit.FileInfo_Status" json:"status,omitempty"` // Whether the file is binary. Binary bool `protobuf:"varint,2,opt,name=binary,proto3" json:"binary,omitempty"` // The old file path; only set if renamed or copied. OldPath string `protobuf:"bytes,3,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"` // Number of lines inserted. LinesInserted int32 `protobuf:"varint,4,opt,name=lines_inserted,json=linesInserted,proto3" json:"lines_inserted,omitempty"` // Number of lines deleted. LinesDeleted int32 `protobuf:"varint,5,opt,name=lines_deleted,json=linesDeleted,proto3" json:"lines_deleted,omitempty"` // Number of bytes by which the file size increased/decreased. SizeDelta int64 `protobuf:"varint,6,opt,name=size_delta,json=sizeDelta,proto3" json:"size_delta,omitempty"` // File size in bytes. Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
Information about a file in a patch set.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#file-info
func (*FileInfo) Descriptor
deprecated
func (*FileInfo) GetLinesDeleted ¶
func (*FileInfo) GetLinesInserted ¶
func (*FileInfo) GetOldPath ¶
func (*FileInfo) GetSizeDelta ¶
func (*FileInfo) GetStatus ¶
func (x *FileInfo) GetStatus() FileInfo_Status
func (*FileInfo) ProtoMessage ¶
func (*FileInfo) ProtoMessage()
func (*FileInfo) ProtoReflect ¶
func (x *FileInfo) ProtoReflect() protoreflect.Message
type FileInfo_Status ¶
type FileInfo_Status int32
const ( FileInfo_M FileInfo_Status = 0 // Modified (default; omitted) FileInfo_A FileInfo_Status = 1 // Added FileInfo_D FileInfo_Status = 2 // Deleted FileInfo_R FileInfo_Status = 3 // Renamed FileInfo_C FileInfo_Status = 4 // Copied FileInfo_W FileInfo_Status = 5 // Rewritten )
func (FileInfo_Status) Descriptor ¶
func (FileInfo_Status) Descriptor() protoreflect.EnumDescriptor
func (FileInfo_Status) Enum ¶
func (x FileInfo_Status) Enum() *FileInfo_Status
func (FileInfo_Status) EnumDescriptor
deprecated
func (FileInfo_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use FileInfo_Status.Descriptor instead.
func (FileInfo_Status) Number ¶
func (x FileInfo_Status) Number() protoreflect.EnumNumber
func (FileInfo_Status) String ¶
func (x FileInfo_Status) String() string
func (FileInfo_Status) Type ¶
func (FileInfo_Status) Type() protoreflect.EnumType
type GerritClient ¶
type GerritClient interface { // Lists the projects on a Gerrit host // // https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#list-projects ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error) // Retrieve information about a ref of a project. // // https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#get-branch GetRefInfo(ctx context.Context, in *RefInfoRequest, opts ...grpc.CallOption) (*RefInfo, error) // Lists the code owners for a file/folder in a branch // // https://chromium-review.googlesource.com/plugins/code-owners/Documentation/rest-api.html#list-code-owners-for-path-in-branch ListFileOwners(ctx context.Context, in *ListFileOwnersRequest, opts ...grpc.CallOption) (*ListOwnersResponse, error) // Returns the email addresses linked in the given Gerrit account. // // https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#list-account-emails ListAccountEmails(ctx context.Context, in *ListAccountEmailsRequest, opts ...grpc.CallOption) (*ListAccountEmailsResponse, error) // Lists changes that match a query. // // TODO(tandrii): recommend a paging query. // // Note, although the Gerrit API supports multiple queries, for which // it can return multiple lists of changes, this is not a foreseen use-case // so this API just includes one query with one returned list of changes. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-changes ListChanges(ctx context.Context, in *ListChangesRequest, opts ...grpc.CallOption) (*ListChangesResponse, error) // Loads a change by id. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-change GetChange(ctx context.Context, in *GetChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error) // Gets Mergeable status for a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-mergeable GetMergeable(ctx context.Context, in *GetMergeableRequest, opts ...grpc.CallOption) (*MergeableInfo, error) // Lists the files that were modified, added or deleted in a revision. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) // Retrieves related changes of a revision. // // Related changes are changes that either depend on, or are dependencies of // the revision. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-related-changes GetRelatedChanges(ctx context.Context, in *GetRelatedChangesRequest, opts ...grpc.CallOption) (*GetRelatedChangesResponse, error) // Check if the given change is a pure revert of the change it references in // revertOf. See also ChangeInfo.revert_of. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-pure-revert GetPureRevert(ctx context.Context, in *GetPureRevertRequest, opts ...grpc.CallOption) (*PureRevertInfo, error) // Retrieves the difference between two historical states of a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-meta-diff GetMetaDiff(ctx context.Context, in *GetMetaDiffRequest, opts ...grpc.CallOption) (*MetaDiff, error) // Create a new empty change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#create-change CreateChange(ctx context.Context, in *CreateChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error) // Edit a single file within an existing change edit. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#put-edit-file ChangeEditFileContent(ctx context.Context, in *ChangeEditFileContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete a single file within an existing change edit. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-edit-file DeleteEditFileContent(ctx context.Context, in *DeleteEditFileContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Publish all changes in a a change edit. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-edit ChangeEditPublish(ctx context.Context, in *ChangeEditPublishRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Add a reviewer to a change // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-reviewer AddReviewer(ctx context.Context, in *AddReviewerRequest, opts ...grpc.CallOption) (*AddReviewerResult, error) // Deletes a reviewer from a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-reviewer DeleteReviewer(ctx context.Context, in *DeleteReviewerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Set various review bits on a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#set-review SetReview(ctx context.Context, in *SetReviewRequest, opts ...grpc.CallOption) (*ReviewResult, error) // Adds a single user to the attention set of a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-to-attention-set AddToAttentionSet(ctx context.Context, in *AttentionSetRequest, opts ...grpc.CallOption) (*AccountInfo, error) // Submit a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-change SubmitChange(ctx context.Context, in *SubmitChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error) // Revert a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revert-change RevertChange(ctx context.Context, in *RevertChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error) // Abandon a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#abandon-change AbandonChange(ctx context.Context, in *AbandonChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error) // Submit a revision. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-revision SubmitRevision(ctx context.Context, in *SubmitRevisionRequest, opts ...grpc.CallOption) (*SubmitInfo, error) }
GerritClient is the client API for Gerrit service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGerritClient ¶
func NewGerritClient(cc grpc.ClientConnInterface) GerritClient
type GerritServer ¶
type GerritServer interface { // Lists the projects on a Gerrit host // // https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#list-projects ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error) // Retrieve information about a ref of a project. // // https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#get-branch GetRefInfo(context.Context, *RefInfoRequest) (*RefInfo, error) // Lists the code owners for a file/folder in a branch // // https://chromium-review.googlesource.com/plugins/code-owners/Documentation/rest-api.html#list-code-owners-for-path-in-branch ListFileOwners(context.Context, *ListFileOwnersRequest) (*ListOwnersResponse, error) // Returns the email addresses linked in the given Gerrit account. // // https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#list-account-emails ListAccountEmails(context.Context, *ListAccountEmailsRequest) (*ListAccountEmailsResponse, error) // Lists changes that match a query. // // TODO(tandrii): recommend a paging query. // // Note, although the Gerrit API supports multiple queries, for which // it can return multiple lists of changes, this is not a foreseen use-case // so this API just includes one query with one returned list of changes. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-changes ListChanges(context.Context, *ListChangesRequest) (*ListChangesResponse, error) // Loads a change by id. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-change GetChange(context.Context, *GetChangeRequest) (*ChangeInfo, error) // Gets Mergeable status for a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-mergeable GetMergeable(context.Context, *GetMergeableRequest) (*MergeableInfo, error) // Lists the files that were modified, added or deleted in a revision. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error) // Retrieves related changes of a revision. // // Related changes are changes that either depend on, or are dependencies of // the revision. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-related-changes GetRelatedChanges(context.Context, *GetRelatedChangesRequest) (*GetRelatedChangesResponse, error) // Check if the given change is a pure revert of the change it references in // revertOf. See also ChangeInfo.revert_of. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-pure-revert GetPureRevert(context.Context, *GetPureRevertRequest) (*PureRevertInfo, error) // Retrieves the difference between two historical states of a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-meta-diff GetMetaDiff(context.Context, *GetMetaDiffRequest) (*MetaDiff, error) // Create a new empty change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#create-change CreateChange(context.Context, *CreateChangeRequest) (*ChangeInfo, error) // Edit a single file within an existing change edit. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#put-edit-file ChangeEditFileContent(context.Context, *ChangeEditFileContentRequest) (*emptypb.Empty, error) // Delete a single file within an existing change edit. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-edit-file DeleteEditFileContent(context.Context, *DeleteEditFileContentRequest) (*emptypb.Empty, error) // Publish all changes in a a change edit. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-edit ChangeEditPublish(context.Context, *ChangeEditPublishRequest) (*emptypb.Empty, error) // Add a reviewer to a change // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-reviewer AddReviewer(context.Context, *AddReviewerRequest) (*AddReviewerResult, error) // Deletes a reviewer from a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-reviewer DeleteReviewer(context.Context, *DeleteReviewerRequest) (*emptypb.Empty, error) // Set various review bits on a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#set-review SetReview(context.Context, *SetReviewRequest) (*ReviewResult, error) // Adds a single user to the attention set of a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-to-attention-set AddToAttentionSet(context.Context, *AttentionSetRequest) (*AccountInfo, error) // Submit a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-change SubmitChange(context.Context, *SubmitChangeRequest) (*ChangeInfo, error) // Revert a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revert-change RevertChange(context.Context, *RevertChangeRequest) (*ChangeInfo, error) // Abandon a change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#abandon-change AbandonChange(context.Context, *AbandonChangeRequest) (*ChangeInfo, error) // Submit a revision. // // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-revision SubmitRevision(context.Context, *SubmitRevisionRequest) (*SubmitInfo, error) // contains filtered or unexported methods }
GerritServer is the server API for Gerrit service. All implementations must embed UnimplementedGerritServer for forward compatibility.
type GetChangeRequest ¶
type GetChangeRequest struct { // Change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // What to include in the response. Options []QueryOption `protobuf:"varint,2,rep,packed,name=options,proto3,enum=gerrit.QueryOption" json:"options,omitempty"` // The Gerrit project. // Specifying this field is optional, but encouraged because it requires less // work on the Gerrit side. Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` // The SHA-1 of a historical NoteDB snapshot of the change to retrieve. // // If the SHA-1 is not reachable from the serving Gerrit replica, // status code 412 is returned. // If the given value is not a valid NoteDB SHA-1, // status code 400 is returned. // // If omitted, GetChange will return the latest snapshot known by the serving // Gerrit replica. Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
Request to get information for a single change.
Encodes path arguments and query options described at https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-change
func (*GetChangeRequest) Descriptor
deprecated
func (*GetChangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetChangeRequest.ProtoReflect.Descriptor instead.
func (*GetChangeRequest) GetMeta ¶
func (x *GetChangeRequest) GetMeta() string
func (*GetChangeRequest) GetNumber ¶
func (x *GetChangeRequest) GetNumber() int64
func (*GetChangeRequest) GetOptions ¶
func (x *GetChangeRequest) GetOptions() []QueryOption
func (*GetChangeRequest) GetProject ¶
func (x *GetChangeRequest) GetProject() string
func (*GetChangeRequest) ProtoMessage ¶
func (*GetChangeRequest) ProtoMessage()
func (*GetChangeRequest) ProtoReflect ¶
func (x *GetChangeRequest) ProtoReflect() protoreflect.Message
func (*GetChangeRequest) Reset ¶
func (x *GetChangeRequest) Reset()
func (*GetChangeRequest) String ¶
func (x *GetChangeRequest) String() string
func (*GetChangeRequest) Validate ¶
func (r *GetChangeRequest) Validate() error
Validate returns an error if r is invalid.
type GetMergeableRequest ¶
type GetMergeableRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Unique ID for the revision to query. // // Source of truth: // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revision-id RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` // The source to merge from, e.g. a complete or abbreviated commit SHA-1, a // complete reference name, a short reference name under refs/heads, // refs/tags, or refs/remotes namespace, etc. Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` // The strategy of the merge. Strategy MergeableStrategy `protobuf:"varint,5,opt,name=strategy,proto3,enum=gerrit.MergeableStrategy" json:"strategy,omitempty"` // contains filtered or unexported fields }
func (*GetMergeableRequest) Descriptor
deprecated
func (*GetMergeableRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMergeableRequest.ProtoReflect.Descriptor instead.
func (*GetMergeableRequest) GetNumber ¶
func (x *GetMergeableRequest) GetNumber() int64
func (*GetMergeableRequest) GetProject ¶
func (x *GetMergeableRequest) GetProject() string
func (*GetMergeableRequest) GetRevisionId ¶
func (x *GetMergeableRequest) GetRevisionId() string
func (*GetMergeableRequest) GetSource ¶
func (x *GetMergeableRequest) GetSource() string
func (*GetMergeableRequest) GetStrategy ¶
func (x *GetMergeableRequest) GetStrategy() MergeableStrategy
func (*GetMergeableRequest) ProtoMessage ¶
func (*GetMergeableRequest) ProtoMessage()
func (*GetMergeableRequest) ProtoReflect ¶
func (x *GetMergeableRequest) ProtoReflect() protoreflect.Message
func (*GetMergeableRequest) Reset ¶
func (x *GetMergeableRequest) Reset()
func (*GetMergeableRequest) String ¶
func (x *GetMergeableRequest) String() string
type GetMetaDiffRequest ¶
type GetMetaDiffRequest struct { // The Gerrit project. // Specifying this field is optional, but encouraged because it requires less // work on the Gerrit side. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // Change number. Number int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // The SHA-1 of the old state to retrieve the diff to the state specified by // `meta`. Old string `protobuf:"bytes,3,opt,name=old,proto3" json:"old,omitempty"` // The SHA-1 of the new state to retrieve the diff to the state specified by // `old`. Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` // What to include in `old_change_info` and `new_change_info` of the response. Options []QueryOption `protobuf:"varint,5,rep,packed,name=options,proto3,enum=gerrit.QueryOption" json:"options,omitempty"` // contains filtered or unexported fields }
Information to retrieve the diff between two historical states of a change.
If `old is omitted, the parent of the `meta` SHA-1 is used. If `meta` is omitted, the current state of the change is used. If both are omitted, the difference between the current state of the change and its previous state is returned.
func (*GetMetaDiffRequest) Descriptor
deprecated
func (*GetMetaDiffRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMetaDiffRequest.ProtoReflect.Descriptor instead.
func (*GetMetaDiffRequest) GetMeta ¶
func (x *GetMetaDiffRequest) GetMeta() string
func (*GetMetaDiffRequest) GetNumber ¶
func (x *GetMetaDiffRequest) GetNumber() int64
func (*GetMetaDiffRequest) GetOld ¶
func (x *GetMetaDiffRequest) GetOld() string
func (*GetMetaDiffRequest) GetOptions ¶
func (x *GetMetaDiffRequest) GetOptions() []QueryOption
func (*GetMetaDiffRequest) GetProject ¶
func (x *GetMetaDiffRequest) GetProject() string
func (*GetMetaDiffRequest) ProtoMessage ¶
func (*GetMetaDiffRequest) ProtoMessage()
func (*GetMetaDiffRequest) ProtoReflect ¶
func (x *GetMetaDiffRequest) ProtoReflect() protoreflect.Message
func (*GetMetaDiffRequest) Reset ¶
func (x *GetMetaDiffRequest) Reset()
func (*GetMetaDiffRequest) String ¶
func (x *GetMetaDiffRequest) String() string
func (*GetMetaDiffRequest) Validate ¶
func (r *GetMetaDiffRequest) Validate() error
Validate returns an error if r is invalid.
type GetPureRevertRequest ¶
type GetPureRevertRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*GetPureRevertRequest) Descriptor
deprecated
func (*GetPureRevertRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPureRevertRequest.ProtoReflect.Descriptor instead.
func (*GetPureRevertRequest) GetNumber ¶
func (x *GetPureRevertRequest) GetNumber() int64
func (*GetPureRevertRequest) GetProject ¶
func (x *GetPureRevertRequest) GetProject() string
func (*GetPureRevertRequest) ProtoMessage ¶
func (*GetPureRevertRequest) ProtoMessage()
func (*GetPureRevertRequest) ProtoReflect ¶
func (x *GetPureRevertRequest) ProtoReflect() protoreflect.Message
func (*GetPureRevertRequest) Reset ¶
func (x *GetPureRevertRequest) Reset()
func (*GetPureRevertRequest) String ¶
func (x *GetPureRevertRequest) String() string
type GetRelatedChangesRequest ¶
type GetRelatedChangesRequest struct { // Change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Unique ID for the revision to query. // // Source of truth: // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revision-id RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` // contains filtered or unexported fields }
Information for requesting the related changes of a change.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-related-changes
func (*GetRelatedChangesRequest) Descriptor
deprecated
func (*GetRelatedChangesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRelatedChangesRequest.ProtoReflect.Descriptor instead.
func (*GetRelatedChangesRequest) GetNumber ¶
func (x *GetRelatedChangesRequest) GetNumber() int64
func (*GetRelatedChangesRequest) GetProject ¶
func (x *GetRelatedChangesRequest) GetProject() string
func (*GetRelatedChangesRequest) GetRevisionId ¶
func (x *GetRelatedChangesRequest) GetRevisionId() string
func (*GetRelatedChangesRequest) ProtoMessage ¶
func (*GetRelatedChangesRequest) ProtoMessage()
func (*GetRelatedChangesRequest) ProtoReflect ¶
func (x *GetRelatedChangesRequest) ProtoReflect() protoreflect.Message
func (*GetRelatedChangesRequest) Reset ¶
func (x *GetRelatedChangesRequest) Reset()
func (*GetRelatedChangesRequest) String ¶
func (x *GetRelatedChangesRequest) String() string
type GetRelatedChangesResponse ¶
type GetRelatedChangesResponse struct { // A list of describing the related changes. // // Sorted by git commit order, newest to oldest. Empty if there are no related // changes. Changes []*GetRelatedChangesResponse_ChangeAndCommit `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` // contains filtered or unexported fields }
Information about related changes of a specific change's revision.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#related-changes-info
func (*GetRelatedChangesResponse) Descriptor
deprecated
func (*GetRelatedChangesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRelatedChangesResponse.ProtoReflect.Descriptor instead.
func (*GetRelatedChangesResponse) GetChanges ¶
func (x *GetRelatedChangesResponse) GetChanges() []*GetRelatedChangesResponse_ChangeAndCommit
func (*GetRelatedChangesResponse) ProtoMessage ¶
func (*GetRelatedChangesResponse) ProtoMessage()
func (*GetRelatedChangesResponse) ProtoReflect ¶
func (x *GetRelatedChangesResponse) ProtoReflect() protoreflect.Message
func (*GetRelatedChangesResponse) Reset ¶
func (x *GetRelatedChangesResponse) Reset()
func (*GetRelatedChangesResponse) String ¶
func (x *GetRelatedChangesResponse) String() string
type GetRelatedChangesResponse_ChangeAndCommit ¶
type GetRelatedChangesResponse_ChangeAndCommit struct { // The project of the change or commit. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The commit as a CommitInfo entity. Commit *CommitInfo `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` // Optional. The change number. Number int64 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"` // Optional. The patchset number. Patchset int64 `protobuf:"varint,4,opt,name=patchset,proto3" json:"patchset,omitempty"` // Optional. The current patchset number. CurrentPatchset int64 `protobuf:"varint,5,opt,name=current_patchset,json=currentPatchset,proto3" json:"current_patchset,omitempty"` // Optional. The status of the change. Status ChangeStatus `protobuf:"varint,6,opt,name=status,proto3,enum=gerrit.ChangeStatus" json:"status,omitempty"` // contains filtered or unexported fields }
Contains information about a related change and commit.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#related-change-and-commit-info
func (*GetRelatedChangesResponse_ChangeAndCommit) Descriptor
deprecated
func (*GetRelatedChangesResponse_ChangeAndCommit) Descriptor() ([]byte, []int)
Deprecated: Use GetRelatedChangesResponse_ChangeAndCommit.ProtoReflect.Descriptor instead.
func (*GetRelatedChangesResponse_ChangeAndCommit) GetCommit ¶
func (x *GetRelatedChangesResponse_ChangeAndCommit) GetCommit() *CommitInfo
func (*GetRelatedChangesResponse_ChangeAndCommit) GetCurrentPatchset ¶
func (x *GetRelatedChangesResponse_ChangeAndCommit) GetCurrentPatchset() int64
func (*GetRelatedChangesResponse_ChangeAndCommit) GetNumber ¶
func (x *GetRelatedChangesResponse_ChangeAndCommit) GetNumber() int64
func (*GetRelatedChangesResponse_ChangeAndCommit) GetPatchset ¶
func (x *GetRelatedChangesResponse_ChangeAndCommit) GetPatchset() int64
func (*GetRelatedChangesResponse_ChangeAndCommit) GetProject ¶
func (x *GetRelatedChangesResponse_ChangeAndCommit) GetProject() string
func (*GetRelatedChangesResponse_ChangeAndCommit) GetStatus ¶
func (x *GetRelatedChangesResponse_ChangeAndCommit) GetStatus() ChangeStatus
func (*GetRelatedChangesResponse_ChangeAndCommit) ProtoMessage ¶
func (*GetRelatedChangesResponse_ChangeAndCommit) ProtoMessage()
func (*GetRelatedChangesResponse_ChangeAndCommit) ProtoReflect ¶
func (x *GetRelatedChangesResponse_ChangeAndCommit) ProtoReflect() protoreflect.Message
func (*GetRelatedChangesResponse_ChangeAndCommit) Reset ¶
func (x *GetRelatedChangesResponse_ChangeAndCommit) Reset()
func (*GetRelatedChangesResponse_ChangeAndCommit) String ¶
func (x *GetRelatedChangesResponse_ChangeAndCommit) String() string
type GitPersonInfo ¶
type GitPersonInfo struct { // The name of the author/committer. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The email address of the author/committer. Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
The GitPersonInfo entity contains information about the author/committer of a commit.
Fields are a subset of: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#git-person-info
func (*GitPersonInfo) Descriptor
deprecated
func (*GitPersonInfo) Descriptor() ([]byte, []int)
Deprecated: Use GitPersonInfo.ProtoReflect.Descriptor instead.
func (*GitPersonInfo) GetEmail ¶
func (x *GitPersonInfo) GetEmail() string
func (*GitPersonInfo) GetName ¶
func (x *GitPersonInfo) GetName() string
func (*GitPersonInfo) ProtoMessage ¶
func (*GitPersonInfo) ProtoMessage()
func (*GitPersonInfo) ProtoReflect ¶
func (x *GitPersonInfo) ProtoReflect() protoreflect.Message
func (*GitPersonInfo) Reset ¶
func (x *GitPersonInfo) Reset()
func (*GitPersonInfo) String ¶
func (x *GitPersonInfo) String() string
type LabelInfo ¶
type LabelInfo struct { // Whether the label is optional. Optional bool `protobuf:"varint,1,opt,name=optional,proto3" json:"optional,omitempty"` // One user who approved this label on the change. // // Only set if LABELS are requested. Approved *AccountInfo `protobuf:"bytes,2,opt,name=approved,proto3" json:"approved,omitempty"` // One user who rejected this label on the change. // // Only set if LABELS are requested. Rejected *AccountInfo `protobuf:"bytes,3,opt,name=rejected,proto3" json:"rejected,omitempty"` // One user who recommended this label on the change. // // Only set if LABELS are requested. Recommended *AccountInfo `protobuf:"bytes,4,opt,name=recommended,proto3" json:"recommended,omitempty"` // One user who disliked this label on the change. // // Only set if LABELS are requested. Disliked *AccountInfo `protobuf:"bytes,5,opt,name=disliked,proto3" json:"disliked,omitempty"` // If true, the label blocks submit operation. // // Only set if LABELS are requested. Blocking bool `protobuf:"varint,6,opt,name=blocking,proto3" json:"blocking,omitempty"` // The voting value of the user who recommended/disliked this label on the // change if it is not "+1"/"-1". // // Only set if LABELS are requested. Value int32 `protobuf:"varint,7,opt,name=value,proto3" json:"value,omitempty"` // The default voting value for the label. // // Only set if LABELS are requested. DefaultValue int32 `protobuf:"varint,8,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` // List of all votes for this label. // // Items in this list may not represent actual votes cast by users; if a user // votes on any label, a corresponding ApprovalInfo will appear in this list // for all labels. // // Only set if DETAILED_LABELS are requested. All []*ApprovalInfo `protobuf:"bytes,9,rep,name=all,proto3" json:"all,omitempty"` // A map of all values that are allowed for this label to their descriptions. // // Only set if DETAILED_LABELS are requested. Values map[int32]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
Information about a Label.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#label-info
func (*LabelInfo) Descriptor
deprecated
func (*LabelInfo) GetAll ¶
func (x *LabelInfo) GetAll() []*ApprovalInfo
func (*LabelInfo) GetApproved ¶
func (x *LabelInfo) GetApproved() *AccountInfo
func (*LabelInfo) GetBlocking ¶
func (*LabelInfo) GetDefaultValue ¶
func (*LabelInfo) GetDisliked ¶
func (x *LabelInfo) GetDisliked() *AccountInfo
func (*LabelInfo) GetOptional ¶
func (*LabelInfo) GetRecommended ¶
func (x *LabelInfo) GetRecommended() *AccountInfo
func (*LabelInfo) GetRejected ¶
func (x *LabelInfo) GetRejected() *AccountInfo
func (*LabelInfo) ProtoMessage ¶
func (*LabelInfo) ProtoMessage()
func (*LabelInfo) ProtoReflect ¶
func (x *LabelInfo) ProtoReflect() protoreflect.Message
type ListAccountEmailsRequest ¶
type ListAccountEmailsRequest struct { // Any of the email address linked to the gerrit account. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*ListAccountEmailsRequest) Descriptor
deprecated
func (*ListAccountEmailsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountEmailsRequest.ProtoReflect.Descriptor instead.
func (*ListAccountEmailsRequest) GetEmail ¶
func (x *ListAccountEmailsRequest) GetEmail() string
func (*ListAccountEmailsRequest) ProtoMessage ¶
func (*ListAccountEmailsRequest) ProtoMessage()
func (*ListAccountEmailsRequest) ProtoReflect ¶
func (x *ListAccountEmailsRequest) ProtoReflect() protoreflect.Message
func (*ListAccountEmailsRequest) Reset ¶
func (x *ListAccountEmailsRequest) Reset()
func (*ListAccountEmailsRequest) String ¶
func (x *ListAccountEmailsRequest) String() string
type ListAccountEmailsResponse ¶
type ListAccountEmailsResponse struct { Emails []*EmailInfo `protobuf:"bytes,1,rep,name=emails,proto3" json:"emails,omitempty"` // contains filtered or unexported fields }
func (*ListAccountEmailsResponse) Descriptor
deprecated
func (*ListAccountEmailsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountEmailsResponse.ProtoReflect.Descriptor instead.
func (*ListAccountEmailsResponse) GetEmails ¶
func (x *ListAccountEmailsResponse) GetEmails() []*EmailInfo
func (*ListAccountEmailsResponse) ProtoMessage ¶
func (*ListAccountEmailsResponse) ProtoMessage()
func (*ListAccountEmailsResponse) ProtoReflect ¶
func (x *ListAccountEmailsResponse) ProtoReflect() protoreflect.Message
func (*ListAccountEmailsResponse) Reset ¶
func (x *ListAccountEmailsResponse) Reset()
func (*ListAccountEmailsResponse) String ¶
func (x *ListAccountEmailsResponse) String() string
type ListChangesRequest ¶
type ListChangesRequest struct { // The query used to filter the changes. // // This is the same as the query that can be used in the Gerrit web UI. It is // space-separated and can include filters like "label:Commit-Queue" or // "status:open". The possible search operators are described at: // https://gerrit-review.googlesource.com/Documentation/user-search.html // // An empty query matches all changes. Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // What to include in the response. Options []QueryOption `protobuf:"varint,2,rep,packed,name=options,proto3,enum=gerrit.QueryOption" json:"options,omitempty"` // Caps the number of results to return. Required. // // Defaults to 25 if not provided; maximum value 1000. // // Use luci/common/api/gerrit:PagingListChanges wrapper if you need to fetch // more or all changes. Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // The number of changes to skip from the start, for pagination. // // Note that without using offset, it's also possible to do paging by // including a "before:" time in the query, and querying for changes before // the earliest change in the current page. This may be preferred but is not // very trivial to implement correctly. Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
Request to list changes based on a query.
func (*ListChangesRequest) Descriptor
deprecated
func (*ListChangesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListChangesRequest.ProtoReflect.Descriptor instead.
func (*ListChangesRequest) GetLimit ¶
func (x *ListChangesRequest) GetLimit() int64
func (*ListChangesRequest) GetOffset ¶
func (x *ListChangesRequest) GetOffset() int64
func (*ListChangesRequest) GetOptions ¶
func (x *ListChangesRequest) GetOptions() []QueryOption
func (*ListChangesRequest) GetQuery ¶
func (x *ListChangesRequest) GetQuery() string
func (*ListChangesRequest) ProtoMessage ¶
func (*ListChangesRequest) ProtoMessage()
func (*ListChangesRequest) ProtoReflect ¶
func (x *ListChangesRequest) ProtoReflect() protoreflect.Message
func (*ListChangesRequest) Reset ¶
func (x *ListChangesRequest) Reset()
func (*ListChangesRequest) String ¶
func (x *ListChangesRequest) String() string
type ListChangesResponse ¶
type ListChangesResponse struct { // The changes that matched the query, with the fields requested. // // The order of the changes is expected to be decreasing by update time, // however the The Gerrit API doc doesn't explicitly specify the order: // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html Changes []*ChangeInfo `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` // True if there are more changes not returned. // // This will be set if the number of changes matching the query exceeds the // limit supplied; however, it's possible that if the number exceeds some // internal Gerrit maximum, this will not be set. // // Specifically (as of Dec 2018) Google's Gerrit instance will not look // beyond a maximum hardcoded in Gerrit backend of 10k changes in the index // of changes, and so if a query matches more than that many changes, Gerrit // backend may not know and may not set "_more_changes". MoreChanges bool `protobuf:"varint,2,opt,name=more_changes,json=moreChanges,proto3" json:"more_changes,omitempty"` // contains filtered or unexported fields }
A list of changes that matched the query.
func (*ListChangesResponse) Descriptor
deprecated
func (*ListChangesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListChangesResponse.ProtoReflect.Descriptor instead.
func (*ListChangesResponse) GetChanges ¶
func (x *ListChangesResponse) GetChanges() []*ChangeInfo
func (*ListChangesResponse) GetMoreChanges ¶
func (x *ListChangesResponse) GetMoreChanges() bool
func (*ListChangesResponse) ProtoMessage ¶
func (*ListChangesResponse) ProtoMessage()
func (*ListChangesResponse) ProtoReflect ¶
func (x *ListChangesResponse) ProtoReflect() protoreflect.Message
func (*ListChangesResponse) Reset ¶
func (x *ListChangesResponse) Reset()
func (*ListChangesResponse) String ¶
func (x *ListChangesResponse) String() string
type ListFileOwnersRequest ¶
type ListFileOwnersRequest struct { // The project name Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The ref ID (eg: refs/heads/main) Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // Path (relative to the repo root) to the file/folder in question Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // Options about how much detail to return in the AccountInfo Options *AccountOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
Information to request the list of OWNERS for a file/folder in a branch
func (*ListFileOwnersRequest) Descriptor
deprecated
func (*ListFileOwnersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFileOwnersRequest.ProtoReflect.Descriptor instead.
func (*ListFileOwnersRequest) GetOptions ¶
func (x *ListFileOwnersRequest) GetOptions() *AccountOptions
func (*ListFileOwnersRequest) GetPath ¶
func (x *ListFileOwnersRequest) GetPath() string
func (*ListFileOwnersRequest) GetProject ¶
func (x *ListFileOwnersRequest) GetProject() string
func (*ListFileOwnersRequest) GetRef ¶
func (x *ListFileOwnersRequest) GetRef() string
func (*ListFileOwnersRequest) ProtoMessage ¶
func (*ListFileOwnersRequest) ProtoMessage()
func (*ListFileOwnersRequest) ProtoReflect ¶
func (x *ListFileOwnersRequest) ProtoReflect() protoreflect.Message
func (*ListFileOwnersRequest) Reset ¶
func (x *ListFileOwnersRequest) Reset()
func (*ListFileOwnersRequest) String ¶
func (x *ListFileOwnersRequest) String() string
type ListFilesRequest ¶
type ListFilesRequest struct { // Change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Unique ID for the revision to query. // // Source of truth: // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revision-id RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` // Changes the response to return a list of all files (modified or unmodified) // that contain this substring in the path name. SubstringQuery string `protobuf:"bytes,4,opt,name=substring_query,json=substringQuery,proto3" json:"substring_query,omitempty"` // For merge commits only, this requests a diff of files against a parent // revision. Use value 1 to compare against a CL's target ref. Parent int64 `protobuf:"varint,5,opt,name=parent,proto3" json:"parent,omitempty"` // Can either be a revision id or a patchset number. It changes the response // to return a map of the files which are different in this commit compared // to the given revision. The revision must correspond to a patch set in the // change. Base string `protobuf:"bytes,6,opt,name=base,proto3" json:"base,omitempty"` // contains filtered or unexported fields }
Information for requesting the files in a change.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files
func (*ListFilesRequest) Descriptor
deprecated
func (*ListFilesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.
func (*ListFilesRequest) GetBase ¶
func (x *ListFilesRequest) GetBase() string
func (*ListFilesRequest) GetNumber ¶
func (x *ListFilesRequest) GetNumber() int64
func (*ListFilesRequest) GetParent ¶
func (x *ListFilesRequest) GetParent() int64
func (*ListFilesRequest) GetProject ¶
func (x *ListFilesRequest) GetProject() string
func (*ListFilesRequest) GetRevisionId ¶
func (x *ListFilesRequest) GetRevisionId() string
func (*ListFilesRequest) GetSubstringQuery ¶
func (x *ListFilesRequest) GetSubstringQuery() string
func (*ListFilesRequest) ProtoMessage ¶
func (*ListFilesRequest) ProtoMessage()
func (*ListFilesRequest) ProtoReflect ¶
func (x *ListFilesRequest) ProtoReflect() protoreflect.Message
func (*ListFilesRequest) Reset ¶
func (x *ListFilesRequest) Reset()
func (*ListFilesRequest) String ¶
func (x *ListFilesRequest) String() string
type ListFilesResponse ¶
type ListFilesResponse struct { // A map of file paths to FileInfos. Files map[string]*FileInfo `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
Information about the files in a change.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files
func (*ListFilesResponse) Descriptor
deprecated
func (*ListFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.
func (*ListFilesResponse) GetFiles ¶
func (x *ListFilesResponse) GetFiles() map[string]*FileInfo
func (*ListFilesResponse) ProtoMessage ¶
func (*ListFilesResponse) ProtoMessage()
func (*ListFilesResponse) ProtoReflect ¶
func (x *ListFilesResponse) ProtoReflect() protoreflect.Message
func (*ListFilesResponse) Reset ¶
func (x *ListFilesResponse) Reset()
func (*ListFilesResponse) String ¶
func (x *ListFilesResponse) String() string
type ListOwnersResponse ¶
type ListOwnersResponse struct { // The account(s) who are OWNERS Owners []*OwnerInfo `protobuf:"bytes,1,rep,name=owners,proto3" json:"owners,omitempty"` // contains filtered or unexported fields }
Code OWNERS for a particular request
func (*ListOwnersResponse) Descriptor
deprecated
func (*ListOwnersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOwnersResponse.ProtoReflect.Descriptor instead.
func (*ListOwnersResponse) GetOwners ¶
func (x *ListOwnersResponse) GetOwners() []*OwnerInfo
func (*ListOwnersResponse) ProtoMessage ¶
func (*ListOwnersResponse) ProtoMessage()
func (*ListOwnersResponse) ProtoReflect ¶
func (x *ListOwnersResponse) ProtoReflect() protoreflect.Message
func (*ListOwnersResponse) Reset ¶
func (x *ListOwnersResponse) Reset()
func (*ListOwnersResponse) String ¶
func (x *ListOwnersResponse) String() string
type ListProjectsRequest ¶
type ListProjectsRequest struct { // Limit results to projects with any of the specified refs, e.g.: refs/heads/main. // Ref SHA1 will be included in the results. Refs []string `protobuf:"bytes,1,rep,name=refs,proto3" json:"refs,omitempty"` // contains filtered or unexported fields }
Information for requesting the projects on a host.
Source of truth: https://gerrit-review.googlesource.com/Documentation/cmd-ls-projects.html
func (*ListProjectsRequest) Descriptor
deprecated
func (*ListProjectsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.
func (*ListProjectsRequest) GetRefs ¶
func (x *ListProjectsRequest) GetRefs() []string
func (*ListProjectsRequest) ProtoMessage ¶
func (*ListProjectsRequest) ProtoMessage()
func (*ListProjectsRequest) ProtoReflect ¶
func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message
func (*ListProjectsRequest) Reset ¶
func (x *ListProjectsRequest) Reset()
func (*ListProjectsRequest) String ¶
func (x *ListProjectsRequest) String() string
type ListProjectsResponse ¶
type ListProjectsResponse struct { // A map of project names to ProjectInfo entries, sorted by project name. Projects map[string]*ProjectInfo `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
Information about the projects on a host.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#project-info
func (*ListProjectsResponse) Descriptor
deprecated
func (*ListProjectsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProjectsResponse.ProtoReflect.Descriptor instead.
func (*ListProjectsResponse) GetProjects ¶
func (x *ListProjectsResponse) GetProjects() map[string]*ProjectInfo
func (*ListProjectsResponse) ProtoMessage ¶
func (*ListProjectsResponse) ProtoMessage()
func (*ListProjectsResponse) ProtoReflect ¶
func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message
func (*ListProjectsResponse) Reset ¶
func (x *ListProjectsResponse) Reset()
func (*ListProjectsResponse) String ¶
func (x *ListProjectsResponse) String() string
type MergeableInfo ¶
type MergeableInfo struct { // Submit type used for this change. SubmitType MergeableInfo_SubmitType `` /* 129-byte string literal not displayed */ // The strategy of the merge. Strategy MergeableStrategy `protobuf:"varint,2,opt,name=strategy,proto3,enum=gerrit.MergeableStrategy" json:"strategy,omitempty"` // true if this change is cleanly mergeable, false otherwise. Mergeable bool `protobuf:"varint,3,opt,name=mergeable,proto3" json:"mergeable,omitempty"` // true if this change is already merged, false otherwise. CommitMerged bool `protobuf:"varint,4,opt,name=commit_merged,json=commitMerged,proto3" json:"commit_merged,omitempty"` // true if the content of this change is already merged, false otherwise. ContentMerged bool `protobuf:"varint,5,opt,name=content_merged,json=contentMerged,proto3" json:"content_merged,omitempty"` // A list of paths with conflicts. Conflicts []string `protobuf:"bytes,6,rep,name=conflicts,proto3" json:"conflicts,omitempty"` // A list of other branch names where this change could merge cleanly. MergeableInto []string `protobuf:"bytes,7,rep,name=mergeable_into,json=mergeableInto,proto3" json:"mergeable_into,omitempty"` // contains filtered or unexported fields }
Contains information about the mergeability of a change.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#mergeable-info
func (*MergeableInfo) Descriptor
deprecated
func (*MergeableInfo) Descriptor() ([]byte, []int)
Deprecated: Use MergeableInfo.ProtoReflect.Descriptor instead.
func (*MergeableInfo) GetCommitMerged ¶
func (x *MergeableInfo) GetCommitMerged() bool
func (*MergeableInfo) GetConflicts ¶
func (x *MergeableInfo) GetConflicts() []string
func (*MergeableInfo) GetContentMerged ¶
func (x *MergeableInfo) GetContentMerged() bool
func (*MergeableInfo) GetMergeable ¶
func (x *MergeableInfo) GetMergeable() bool
func (*MergeableInfo) GetMergeableInto ¶
func (x *MergeableInfo) GetMergeableInto() []string
func (*MergeableInfo) GetStrategy ¶
func (x *MergeableInfo) GetStrategy() MergeableStrategy
func (*MergeableInfo) GetSubmitType ¶
func (x *MergeableInfo) GetSubmitType() MergeableInfo_SubmitType
func (*MergeableInfo) ProtoMessage ¶
func (*MergeableInfo) ProtoMessage()
func (*MergeableInfo) ProtoReflect ¶
func (x *MergeableInfo) ProtoReflect() protoreflect.Message
func (*MergeableInfo) Reset ¶
func (x *MergeableInfo) Reset()
func (*MergeableInfo) String ¶
func (x *MergeableInfo) String() string
type MergeableInfo_SubmitType ¶
type MergeableInfo_SubmitType int32
const ( MergeableInfo_SUBMIT_TYPE_UNSPECIFIED MergeableInfo_SubmitType = 0 MergeableInfo_MERGE_IF_NECESSARY MergeableInfo_SubmitType = 1 MergeableInfo_FAST_FORWARD_ONLY MergeableInfo_SubmitType = 2 MergeableInfo_REBASE_IF_NECESSARY MergeableInfo_SubmitType = 3 MergeableInfo_REBASE_ALWAYS MergeableInfo_SubmitType = 4 MergeableInfo_MERGE_ALWAYS MergeableInfo_SubmitType = 5 MergeableInfo_CHERRY_PICK MergeableInfo_SubmitType = 6 )
func (MergeableInfo_SubmitType) Descriptor ¶
func (MergeableInfo_SubmitType) Descriptor() protoreflect.EnumDescriptor
func (MergeableInfo_SubmitType) Enum ¶
func (x MergeableInfo_SubmitType) Enum() *MergeableInfo_SubmitType
func (MergeableInfo_SubmitType) EnumDescriptor
deprecated
func (MergeableInfo_SubmitType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MergeableInfo_SubmitType.Descriptor instead.
func (MergeableInfo_SubmitType) Number ¶
func (x MergeableInfo_SubmitType) Number() protoreflect.EnumNumber
func (MergeableInfo_SubmitType) String ¶
func (x MergeableInfo_SubmitType) String() string
func (MergeableInfo_SubmitType) Type ¶
func (MergeableInfo_SubmitType) Type() protoreflect.EnumType
type MergeableStrategy ¶
type MergeableStrategy int32
const ( MergeableStrategy_MERGEABLE_STRATEGY_UNSPECIFIED MergeableStrategy = 0 MergeableStrategy_RECURSIVE MergeableStrategy = 1 MergeableStrategy_RESOLVE MergeableStrategy = 2 MergeableStrategy_SIMPLE_TWO_WAY_IN_CORE MergeableStrategy = 3 MergeableStrategy_OURS MergeableStrategy = 4 MergeableStrategy_THEIRS MergeableStrategy = 5 )
func (MergeableStrategy) Descriptor ¶
func (MergeableStrategy) Descriptor() protoreflect.EnumDescriptor
func (MergeableStrategy) Enum ¶
func (x MergeableStrategy) Enum() *MergeableStrategy
func (MergeableStrategy) EnumDescriptor
deprecated
func (MergeableStrategy) EnumDescriptor() ([]byte, []int)
Deprecated: Use MergeableStrategy.Descriptor instead.
func (MergeableStrategy) Number ¶
func (x MergeableStrategy) Number() protoreflect.EnumNumber
func (MergeableStrategy) String ¶
func (x MergeableStrategy) String() string
func (MergeableStrategy) Type ¶
func (MergeableStrategy) Type() protoreflect.EnumType
type MetaDiff ¶
type MetaDiff struct { // Change props added between the two states. Added *ChangeInfo `protobuf:"bytes,1,opt,name=added,proto3" json:"added,omitempty"` // Change props removed between the two states. Removed *ChangeInfo `protobuf:"bytes,2,opt,name=removed,proto3" json:"removed,omitempty"` // ChangeInfo of the old state. OldChangeInfo *ChangeInfo `protobuf:"bytes,3,opt,name=old_change_info,json=oldChangeInfo,proto3" json:"old_change_info,omitempty"` // ChangeInfo of the new state. NewChangeInfo *ChangeInfo `protobuf:"bytes,4,opt,name=new_change_info,json=newChangeInfo,proto3" json:"new_change_info,omitempty"` // contains filtered or unexported fields }
Difference between two historical states of a change.
func (*MetaDiff) Descriptor
deprecated
func (*MetaDiff) GetAdded ¶
func (x *MetaDiff) GetAdded() *ChangeInfo
func (*MetaDiff) GetNewChangeInfo ¶
func (x *MetaDiff) GetNewChangeInfo() *ChangeInfo
func (*MetaDiff) GetOldChangeInfo ¶
func (x *MetaDiff) GetOldChangeInfo() *ChangeInfo
func (*MetaDiff) GetRemoved ¶
func (x *MetaDiff) GetRemoved() *ChangeInfo
func (*MetaDiff) ProtoMessage ¶
func (*MetaDiff) ProtoMessage()
func (*MetaDiff) ProtoReflect ¶
func (x *MetaDiff) ProtoReflect() protoreflect.Message
type MockGerritClient ¶
type MockGerritClient struct {
// contains filtered or unexported fields
}
MockGerritClient is a mock of GerritClient interface.
func NewMockGerritClient ¶
func NewMockGerritClient(ctrl *gomock.Controller) *MockGerritClient
NewMockGerritClient creates a new mock instance.
func (*MockGerritClient) AbandonChange ¶
func (m *MockGerritClient) AbandonChange(ctx context.Context, in *AbandonChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
AbandonChange mocks base method.
func (*MockGerritClient) AddReviewer ¶
func (m *MockGerritClient) AddReviewer(ctx context.Context, in *AddReviewerRequest, opts ...grpc.CallOption) (*AddReviewerResult, error)
AddReviewer mocks base method.
func (*MockGerritClient) AddToAttentionSet ¶
func (m *MockGerritClient) AddToAttentionSet(ctx context.Context, in *AttentionSetRequest, opts ...grpc.CallOption) (*AccountInfo, error)
AddToAttentionSet mocks base method.
func (*MockGerritClient) ChangeEditFileContent ¶
func (m *MockGerritClient) ChangeEditFileContent(ctx context.Context, in *ChangeEditFileContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
ChangeEditFileContent mocks base method.
func (*MockGerritClient) ChangeEditPublish ¶
func (m *MockGerritClient) ChangeEditPublish(ctx context.Context, in *ChangeEditPublishRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
ChangeEditPublish mocks base method.
func (*MockGerritClient) CreateChange ¶
func (m *MockGerritClient) CreateChange(ctx context.Context, in *CreateChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
CreateChange mocks base method.
func (*MockGerritClient) DeleteEditFileContent ¶
func (m *MockGerritClient) DeleteEditFileContent(ctx context.Context, in *DeleteEditFileContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteEditFileContent mocks base method.
func (*MockGerritClient) DeleteReviewer ¶
func (m *MockGerritClient) DeleteReviewer(ctx context.Context, in *DeleteReviewerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteReviewer mocks base method.
func (*MockGerritClient) EXPECT ¶
func (m *MockGerritClient) EXPECT() *MockGerritClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGerritClient) GetChange ¶
func (m *MockGerritClient) GetChange(ctx context.Context, in *GetChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
GetChange mocks base method.
func (*MockGerritClient) GetMergeable ¶
func (m *MockGerritClient) GetMergeable(ctx context.Context, in *GetMergeableRequest, opts ...grpc.CallOption) (*MergeableInfo, error)
GetMergeable mocks base method.
func (*MockGerritClient) GetMetaDiff ¶
func (m *MockGerritClient) GetMetaDiff(ctx context.Context, in *GetMetaDiffRequest, opts ...grpc.CallOption) (*MetaDiff, error)
GetMetaDiff mocks base method.
func (*MockGerritClient) GetPureRevert ¶
func (m *MockGerritClient) GetPureRevert(ctx context.Context, in *GetPureRevertRequest, opts ...grpc.CallOption) (*PureRevertInfo, error)
GetPureRevert mocks base method.
func (*MockGerritClient) GetRefInfo ¶
func (m *MockGerritClient) GetRefInfo(ctx context.Context, in *RefInfoRequest, opts ...grpc.CallOption) (*RefInfo, error)
GetRefInfo mocks base method.
func (*MockGerritClient) GetRelatedChanges ¶
func (m *MockGerritClient) GetRelatedChanges(ctx context.Context, in *GetRelatedChangesRequest, opts ...grpc.CallOption) (*GetRelatedChangesResponse, error)
GetRelatedChanges mocks base method.
func (*MockGerritClient) ListAccountEmails ¶
func (m *MockGerritClient) ListAccountEmails(ctx context.Context, in *ListAccountEmailsRequest, opts ...grpc.CallOption) (*ListAccountEmailsResponse, error)
ListAccountEmails mocks base method.
func (*MockGerritClient) ListChanges ¶
func (m *MockGerritClient) ListChanges(ctx context.Context, in *ListChangesRequest, opts ...grpc.CallOption) (*ListChangesResponse, error)
ListChanges mocks base method.
func (*MockGerritClient) ListFileOwners ¶
func (m *MockGerritClient) ListFileOwners(ctx context.Context, in *ListFileOwnersRequest, opts ...grpc.CallOption) (*ListOwnersResponse, error)
ListFileOwners mocks base method.
func (*MockGerritClient) ListFiles ¶
func (m *MockGerritClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
ListFiles mocks base method.
func (*MockGerritClient) ListProjects ¶
func (m *MockGerritClient) ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error)
ListProjects mocks base method.
func (*MockGerritClient) RevertChange ¶
func (m *MockGerritClient) RevertChange(ctx context.Context, in *RevertChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
RevertChange mocks base method.
func (*MockGerritClient) SetReview ¶
func (m *MockGerritClient) SetReview(ctx context.Context, in *SetReviewRequest, opts ...grpc.CallOption) (*ReviewResult, error)
SetReview mocks base method.
func (*MockGerritClient) SubmitChange ¶
func (m *MockGerritClient) SubmitChange(ctx context.Context, in *SubmitChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
SubmitChange mocks base method.
func (*MockGerritClient) SubmitRevision ¶
func (m *MockGerritClient) SubmitRevision(ctx context.Context, in *SubmitRevisionRequest, opts ...grpc.CallOption) (*SubmitInfo, error)
SubmitRevision mocks base method.
type MockGerritClientMockRecorder ¶
type MockGerritClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGerritClientMockRecorder is the mock recorder for MockGerritClient.
func (*MockGerritClientMockRecorder) AbandonChange ¶
func (mr *MockGerritClientMockRecorder) AbandonChange(ctx, in interface{}, opts ...interface{}) *gomock.Call
AbandonChange indicates an expected call of AbandonChange.
func (*MockGerritClientMockRecorder) AddReviewer ¶
func (mr *MockGerritClientMockRecorder) AddReviewer(ctx, in interface{}, opts ...interface{}) *gomock.Call
AddReviewer indicates an expected call of AddReviewer.
func (*MockGerritClientMockRecorder) AddToAttentionSet ¶
func (mr *MockGerritClientMockRecorder) AddToAttentionSet(ctx, in interface{}, opts ...interface{}) *gomock.Call
AddToAttentionSet indicates an expected call of AddToAttentionSet.
func (*MockGerritClientMockRecorder) ChangeEditFileContent ¶
func (mr *MockGerritClientMockRecorder) ChangeEditFileContent(ctx, in interface{}, opts ...interface{}) *gomock.Call
ChangeEditFileContent indicates an expected call of ChangeEditFileContent.
func (*MockGerritClientMockRecorder) ChangeEditPublish ¶
func (mr *MockGerritClientMockRecorder) ChangeEditPublish(ctx, in interface{}, opts ...interface{}) *gomock.Call
ChangeEditPublish indicates an expected call of ChangeEditPublish.
func (*MockGerritClientMockRecorder) CreateChange ¶
func (mr *MockGerritClientMockRecorder) CreateChange(ctx, in interface{}, opts ...interface{}) *gomock.Call
CreateChange indicates an expected call of CreateChange.
func (*MockGerritClientMockRecorder) DeleteEditFileContent ¶
func (mr *MockGerritClientMockRecorder) DeleteEditFileContent(ctx, in interface{}, opts ...interface{}) *gomock.Call
DeleteEditFileContent indicates an expected call of DeleteEditFileContent.
func (*MockGerritClientMockRecorder) DeleteReviewer ¶
func (mr *MockGerritClientMockRecorder) DeleteReviewer(ctx, in interface{}, opts ...interface{}) *gomock.Call
DeleteReviewer indicates an expected call of DeleteReviewer.
func (*MockGerritClientMockRecorder) GetChange ¶
func (mr *MockGerritClientMockRecorder) GetChange(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetChange indicates an expected call of GetChange.
func (*MockGerritClientMockRecorder) GetMergeable ¶
func (mr *MockGerritClientMockRecorder) GetMergeable(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetMergeable indicates an expected call of GetMergeable.
func (*MockGerritClientMockRecorder) GetMetaDiff ¶
func (mr *MockGerritClientMockRecorder) GetMetaDiff(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetMetaDiff indicates an expected call of GetMetaDiff.
func (*MockGerritClientMockRecorder) GetPureRevert ¶
func (mr *MockGerritClientMockRecorder) GetPureRevert(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetPureRevert indicates an expected call of GetPureRevert.
func (*MockGerritClientMockRecorder) GetRefInfo ¶
func (mr *MockGerritClientMockRecorder) GetRefInfo(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetRefInfo indicates an expected call of GetRefInfo.
func (*MockGerritClientMockRecorder) GetRelatedChanges ¶
func (mr *MockGerritClientMockRecorder) GetRelatedChanges(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetRelatedChanges indicates an expected call of GetRelatedChanges.
func (*MockGerritClientMockRecorder) ListAccountEmails ¶
func (mr *MockGerritClientMockRecorder) ListAccountEmails(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListAccountEmails indicates an expected call of ListAccountEmails.
func (*MockGerritClientMockRecorder) ListChanges ¶
func (mr *MockGerritClientMockRecorder) ListChanges(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListChanges indicates an expected call of ListChanges.
func (*MockGerritClientMockRecorder) ListFileOwners ¶
func (mr *MockGerritClientMockRecorder) ListFileOwners(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListFileOwners indicates an expected call of ListFileOwners.
func (*MockGerritClientMockRecorder) ListFiles ¶
func (mr *MockGerritClientMockRecorder) ListFiles(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListFiles indicates an expected call of ListFiles.
func (*MockGerritClientMockRecorder) ListProjects ¶
func (mr *MockGerritClientMockRecorder) ListProjects(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListProjects indicates an expected call of ListProjects.
func (*MockGerritClientMockRecorder) RevertChange ¶
func (mr *MockGerritClientMockRecorder) RevertChange(ctx, in interface{}, opts ...interface{}) *gomock.Call
RevertChange indicates an expected call of RevertChange.
func (*MockGerritClientMockRecorder) SetReview ¶
func (mr *MockGerritClientMockRecorder) SetReview(ctx, in interface{}, opts ...interface{}) *gomock.Call
SetReview indicates an expected call of SetReview.
func (*MockGerritClientMockRecorder) SubmitChange ¶
func (mr *MockGerritClientMockRecorder) SubmitChange(ctx, in interface{}, opts ...interface{}) *gomock.Call
SubmitChange indicates an expected call of SubmitChange.
func (*MockGerritClientMockRecorder) SubmitRevision ¶
func (mr *MockGerritClientMockRecorder) SubmitRevision(ctx, in interface{}, opts ...interface{}) *gomock.Call
SubmitRevision indicates an expected call of SubmitRevision.
type MockGerritServer ¶
type MockGerritServer struct {
// contains filtered or unexported fields
}
MockGerritServer is a mock of GerritServer interface.
func NewMockGerritServer ¶
func NewMockGerritServer(ctrl *gomock.Controller) *MockGerritServer
NewMockGerritServer creates a new mock instance.
func (*MockGerritServer) AbandonChange ¶
func (m *MockGerritServer) AbandonChange(arg0 context.Context, arg1 *AbandonChangeRequest) (*ChangeInfo, error)
AbandonChange mocks base method.
func (*MockGerritServer) AddReviewer ¶
func (m *MockGerritServer) AddReviewer(arg0 context.Context, arg1 *AddReviewerRequest) (*AddReviewerResult, error)
AddReviewer mocks base method.
func (*MockGerritServer) AddToAttentionSet ¶
func (m *MockGerritServer) AddToAttentionSet(arg0 context.Context, arg1 *AttentionSetRequest) (*AccountInfo, error)
AddToAttentionSet mocks base method.
func (*MockGerritServer) ChangeEditFileContent ¶
func (m *MockGerritServer) ChangeEditFileContent(arg0 context.Context, arg1 *ChangeEditFileContentRequest) (*emptypb.Empty, error)
ChangeEditFileContent mocks base method.
func (*MockGerritServer) ChangeEditPublish ¶
func (m *MockGerritServer) ChangeEditPublish(arg0 context.Context, arg1 *ChangeEditPublishRequest) (*emptypb.Empty, error)
ChangeEditPublish mocks base method.
func (*MockGerritServer) CreateChange ¶
func (m *MockGerritServer) CreateChange(arg0 context.Context, arg1 *CreateChangeRequest) (*ChangeInfo, error)
CreateChange mocks base method.
func (*MockGerritServer) DeleteEditFileContent ¶
func (m *MockGerritServer) DeleteEditFileContent(arg0 context.Context, arg1 *DeleteEditFileContentRequest) (*emptypb.Empty, error)
DeleteEditFileContent mocks base method.
func (*MockGerritServer) DeleteReviewer ¶
func (m *MockGerritServer) DeleteReviewer(arg0 context.Context, arg1 *DeleteReviewerRequest) (*emptypb.Empty, error)
DeleteReviewer mocks base method.
func (*MockGerritServer) EXPECT ¶
func (m *MockGerritServer) EXPECT() *MockGerritServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGerritServer) GetChange ¶
func (m *MockGerritServer) GetChange(arg0 context.Context, arg1 *GetChangeRequest) (*ChangeInfo, error)
GetChange mocks base method.
func (*MockGerritServer) GetMergeable ¶
func (m *MockGerritServer) GetMergeable(arg0 context.Context, arg1 *GetMergeableRequest) (*MergeableInfo, error)
GetMergeable mocks base method.
func (*MockGerritServer) GetMetaDiff ¶
func (m *MockGerritServer) GetMetaDiff(arg0 context.Context, arg1 *GetMetaDiffRequest) (*MetaDiff, error)
GetMetaDiff mocks base method.
func (*MockGerritServer) GetPureRevert ¶
func (m *MockGerritServer) GetPureRevert(arg0 context.Context, arg1 *GetPureRevertRequest) (*PureRevertInfo, error)
GetPureRevert mocks base method.
func (*MockGerritServer) GetRefInfo ¶
func (m *MockGerritServer) GetRefInfo(arg0 context.Context, arg1 *RefInfoRequest) (*RefInfo, error)
GetRefInfo mocks base method.
func (*MockGerritServer) GetRelatedChanges ¶
func (m *MockGerritServer) GetRelatedChanges(arg0 context.Context, arg1 *GetRelatedChangesRequest) (*GetRelatedChangesResponse, error)
GetRelatedChanges mocks base method.
func (*MockGerritServer) ListAccountEmails ¶
func (m *MockGerritServer) ListAccountEmails(arg0 context.Context, arg1 *ListAccountEmailsRequest) (*ListAccountEmailsResponse, error)
ListAccountEmails mocks base method.
func (*MockGerritServer) ListChanges ¶
func (m *MockGerritServer) ListChanges(arg0 context.Context, arg1 *ListChangesRequest) (*ListChangesResponse, error)
ListChanges mocks base method.
func (*MockGerritServer) ListFileOwners ¶
func (m *MockGerritServer) ListFileOwners(arg0 context.Context, arg1 *ListFileOwnersRequest) (*ListOwnersResponse, error)
ListFileOwners mocks base method.
func (*MockGerritServer) ListFiles ¶
func (m *MockGerritServer) ListFiles(arg0 context.Context, arg1 *ListFilesRequest) (*ListFilesResponse, error)
ListFiles mocks base method.
func (*MockGerritServer) ListProjects ¶
func (m *MockGerritServer) ListProjects(arg0 context.Context, arg1 *ListProjectsRequest) (*ListProjectsResponse, error)
ListProjects mocks base method.
func (*MockGerritServer) RevertChange ¶
func (m *MockGerritServer) RevertChange(arg0 context.Context, arg1 *RevertChangeRequest) (*ChangeInfo, error)
RevertChange mocks base method.
func (*MockGerritServer) SetReview ¶
func (m *MockGerritServer) SetReview(arg0 context.Context, arg1 *SetReviewRequest) (*ReviewResult, error)
SetReview mocks base method.
func (*MockGerritServer) SubmitChange ¶
func (m *MockGerritServer) SubmitChange(arg0 context.Context, arg1 *SubmitChangeRequest) (*ChangeInfo, error)
SubmitChange mocks base method.
func (*MockGerritServer) SubmitRevision ¶
func (m *MockGerritServer) SubmitRevision(arg0 context.Context, arg1 *SubmitRevisionRequest) (*SubmitInfo, error)
SubmitRevision mocks base method.
type MockGerritServerMockRecorder ¶
type MockGerritServerMockRecorder struct {
// contains filtered or unexported fields
}
MockGerritServerMockRecorder is the mock recorder for MockGerritServer.
func (*MockGerritServerMockRecorder) AbandonChange ¶
func (mr *MockGerritServerMockRecorder) AbandonChange(arg0, arg1 interface{}) *gomock.Call
AbandonChange indicates an expected call of AbandonChange.
func (*MockGerritServerMockRecorder) AddReviewer ¶
func (mr *MockGerritServerMockRecorder) AddReviewer(arg0, arg1 interface{}) *gomock.Call
AddReviewer indicates an expected call of AddReviewer.
func (*MockGerritServerMockRecorder) AddToAttentionSet ¶
func (mr *MockGerritServerMockRecorder) AddToAttentionSet(arg0, arg1 interface{}) *gomock.Call
AddToAttentionSet indicates an expected call of AddToAttentionSet.
func (*MockGerritServerMockRecorder) ChangeEditFileContent ¶
func (mr *MockGerritServerMockRecorder) ChangeEditFileContent(arg0, arg1 interface{}) *gomock.Call
ChangeEditFileContent indicates an expected call of ChangeEditFileContent.
func (*MockGerritServerMockRecorder) ChangeEditPublish ¶
func (mr *MockGerritServerMockRecorder) ChangeEditPublish(arg0, arg1 interface{}) *gomock.Call
ChangeEditPublish indicates an expected call of ChangeEditPublish.
func (*MockGerritServerMockRecorder) CreateChange ¶
func (mr *MockGerritServerMockRecorder) CreateChange(arg0, arg1 interface{}) *gomock.Call
CreateChange indicates an expected call of CreateChange.
func (*MockGerritServerMockRecorder) DeleteEditFileContent ¶
func (mr *MockGerritServerMockRecorder) DeleteEditFileContent(arg0, arg1 interface{}) *gomock.Call
DeleteEditFileContent indicates an expected call of DeleteEditFileContent.
func (*MockGerritServerMockRecorder) DeleteReviewer ¶
func (mr *MockGerritServerMockRecorder) DeleteReviewer(arg0, arg1 interface{}) *gomock.Call
DeleteReviewer indicates an expected call of DeleteReviewer.
func (*MockGerritServerMockRecorder) GetChange ¶
func (mr *MockGerritServerMockRecorder) GetChange(arg0, arg1 interface{}) *gomock.Call
GetChange indicates an expected call of GetChange.
func (*MockGerritServerMockRecorder) GetMergeable ¶
func (mr *MockGerritServerMockRecorder) GetMergeable(arg0, arg1 interface{}) *gomock.Call
GetMergeable indicates an expected call of GetMergeable.
func (*MockGerritServerMockRecorder) GetMetaDiff ¶
func (mr *MockGerritServerMockRecorder) GetMetaDiff(arg0, arg1 interface{}) *gomock.Call
GetMetaDiff indicates an expected call of GetMetaDiff.
func (*MockGerritServerMockRecorder) GetPureRevert ¶
func (mr *MockGerritServerMockRecorder) GetPureRevert(arg0, arg1 interface{}) *gomock.Call
GetPureRevert indicates an expected call of GetPureRevert.
func (*MockGerritServerMockRecorder) GetRefInfo ¶
func (mr *MockGerritServerMockRecorder) GetRefInfo(arg0, arg1 interface{}) *gomock.Call
GetRefInfo indicates an expected call of GetRefInfo.
func (*MockGerritServerMockRecorder) GetRelatedChanges ¶
func (mr *MockGerritServerMockRecorder) GetRelatedChanges(arg0, arg1 interface{}) *gomock.Call
GetRelatedChanges indicates an expected call of GetRelatedChanges.
func (*MockGerritServerMockRecorder) ListAccountEmails ¶
func (mr *MockGerritServerMockRecorder) ListAccountEmails(arg0, arg1 interface{}) *gomock.Call
ListAccountEmails indicates an expected call of ListAccountEmails.
func (*MockGerritServerMockRecorder) ListChanges ¶
func (mr *MockGerritServerMockRecorder) ListChanges(arg0, arg1 interface{}) *gomock.Call
ListChanges indicates an expected call of ListChanges.
func (*MockGerritServerMockRecorder) ListFileOwners ¶
func (mr *MockGerritServerMockRecorder) ListFileOwners(arg0, arg1 interface{}) *gomock.Call
ListFileOwners indicates an expected call of ListFileOwners.
func (*MockGerritServerMockRecorder) ListFiles ¶
func (mr *MockGerritServerMockRecorder) ListFiles(arg0, arg1 interface{}) *gomock.Call
ListFiles indicates an expected call of ListFiles.
func (*MockGerritServerMockRecorder) ListProjects ¶
func (mr *MockGerritServerMockRecorder) ListProjects(arg0, arg1 interface{}) *gomock.Call
ListProjects indicates an expected call of ListProjects.
func (*MockGerritServerMockRecorder) RevertChange ¶
func (mr *MockGerritServerMockRecorder) RevertChange(arg0, arg1 interface{}) *gomock.Call
RevertChange indicates an expected call of RevertChange.
func (*MockGerritServerMockRecorder) SetReview ¶
func (mr *MockGerritServerMockRecorder) SetReview(arg0, arg1 interface{}) *gomock.Call
SetReview indicates an expected call of SetReview.
func (*MockGerritServerMockRecorder) SubmitChange ¶
func (mr *MockGerritServerMockRecorder) SubmitChange(arg0, arg1 interface{}) *gomock.Call
SubmitChange indicates an expected call of SubmitChange.
func (*MockGerritServerMockRecorder) SubmitRevision ¶
func (mr *MockGerritServerMockRecorder) SubmitRevision(arg0, arg1 interface{}) *gomock.Call
SubmitRevision indicates an expected call of SubmitRevision.
type MockUnsafeGerritServer ¶
type MockUnsafeGerritServer struct {
// contains filtered or unexported fields
}
MockUnsafeGerritServer is a mock of UnsafeGerritServer interface.
func NewMockUnsafeGerritServer ¶
func NewMockUnsafeGerritServer(ctrl *gomock.Controller) *MockUnsafeGerritServer
NewMockUnsafeGerritServer creates a new mock instance.
func (*MockUnsafeGerritServer) EXPECT ¶
func (m *MockUnsafeGerritServer) EXPECT() *MockUnsafeGerritServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeGerritServerMockRecorder ¶
type MockUnsafeGerritServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeGerritServerMockRecorder is the mock recorder for MockUnsafeGerritServer.
type Notify ¶
type Notify int32
Specify the notification options for an action. Different endpoints support different subsets of this enum.
const ( Notify_NOTIFY_UNSPECIFIED Notify = 0 // Do not send email notifications. Notify_NOTIFY_NONE Notify = 1 // Notify all OWNERS. Notify_NOTIFY_OWNER Notify = 2 // Notify OWNERS who are also reviewers Notify_NOTIFY_OWNER_REVIEWERS Notify = 3 // Notify all OWNERS and reviewers Notify_NOTIFY_ALL Notify = 4 )
func (Notify) Descriptor ¶
func (Notify) Descriptor() protoreflect.EnumDescriptor
func (Notify) EnumDescriptor
deprecated
func (Notify) Number ¶
func (x Notify) Number() protoreflect.EnumNumber
func (Notify) Type ¶
func (Notify) Type() protoreflect.EnumType
type NotifyDetails ¶
type NotifyDetails struct { // Recipients of the same RecipientType will be merged. Duplicate // accountIDs in `notify_info` will be removed. Recipients []*NotifyDetails_Recipient `protobuf:"bytes,1,rep,name=recipients,proto3" json:"recipients,omitempty"` // contains filtered or unexported fields }
Detailed information about whom to notify about the update.
func (*NotifyDetails) Descriptor
deprecated
func (*NotifyDetails) Descriptor() ([]byte, []int)
Deprecated: Use NotifyDetails.ProtoReflect.Descriptor instead.
func (*NotifyDetails) GetRecipients ¶
func (x *NotifyDetails) GetRecipients() []*NotifyDetails_Recipient
func (*NotifyDetails) ProtoMessage ¶
func (*NotifyDetails) ProtoMessage()
func (*NotifyDetails) ProtoReflect ¶
func (x *NotifyDetails) ProtoReflect() protoreflect.Message
func (*NotifyDetails) Reset ¶
func (x *NotifyDetails) Reset()
func (*NotifyDetails) String ¶
func (x *NotifyDetails) String() string
func (*NotifyDetails) Validate ¶
func (n *NotifyDetails) Validate() error
Validate returns an error if n is invalid.
type NotifyDetails_Info ¶
type NotifyDetails_Info struct { // IDs of the accounts that will be notified. Accounts []int64 `protobuf:"varint,1,rep,packed,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#notify-info
func (*NotifyDetails_Info) Descriptor
deprecated
func (*NotifyDetails_Info) Descriptor() ([]byte, []int)
Deprecated: Use NotifyDetails_Info.ProtoReflect.Descriptor instead.
func (*NotifyDetails_Info) GetAccounts ¶
func (x *NotifyDetails_Info) GetAccounts() []int64
func (*NotifyDetails_Info) ProtoMessage ¶
func (*NotifyDetails_Info) ProtoMessage()
func (*NotifyDetails_Info) ProtoReflect ¶
func (x *NotifyDetails_Info) ProtoReflect() protoreflect.Message
func (*NotifyDetails_Info) Reset ¶
func (x *NotifyDetails_Info) Reset()
func (*NotifyDetails_Info) String ¶
func (x *NotifyDetails_Info) String() string
type NotifyDetails_Recipient ¶
type NotifyDetails_Recipient struct { RecipientType NotifyDetails_RecipientType `` /* 141-byte string literal not displayed */ Info *NotifyDetails_Info `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*NotifyDetails_Recipient) Descriptor
deprecated
func (*NotifyDetails_Recipient) Descriptor() ([]byte, []int)
Deprecated: Use NotifyDetails_Recipient.ProtoReflect.Descriptor instead.
func (*NotifyDetails_Recipient) GetInfo ¶
func (x *NotifyDetails_Recipient) GetInfo() *NotifyDetails_Info
func (*NotifyDetails_Recipient) GetRecipientType ¶
func (x *NotifyDetails_Recipient) GetRecipientType() NotifyDetails_RecipientType
func (*NotifyDetails_Recipient) ProtoMessage ¶
func (*NotifyDetails_Recipient) ProtoMessage()
func (*NotifyDetails_Recipient) ProtoReflect ¶
func (x *NotifyDetails_Recipient) ProtoReflect() protoreflect.Message
func (*NotifyDetails_Recipient) Reset ¶
func (x *NotifyDetails_Recipient) Reset()
func (*NotifyDetails_Recipient) String ¶
func (x *NotifyDetails_Recipient) String() string
func (*NotifyDetails_Recipient) Validate ¶
func (n *NotifyDetails_Recipient) Validate() error
Validate returns an error if n is invalid.
type NotifyDetails_RecipientType ¶
type NotifyDetails_RecipientType int32
Specify how recipient will be notified.
Source of truth: https://gerrit-review.googlesource.com/Documentation/user-notify.html#recipient-types
const ( NotifyDetails_RECIPIENT_TYPE_UNSPECIFIED NotifyDetails_RecipientType = 0 // The standard To field is used; addresses are visible to all. NotifyDetails_RECIPIENT_TYPE_TO NotifyDetails_RecipientType = 1 // The standard CC field is used; addresses are visible to all. NotifyDetails_RECIPIENT_TYPE_CC NotifyDetails_RecipientType = 2 // SMTP RCPT TO is used to hide the address. NotifyDetails_RECIPIENT_TYPE_BCC NotifyDetails_RecipientType = 3 )
func (NotifyDetails_RecipientType) Descriptor ¶
func (NotifyDetails_RecipientType) Descriptor() protoreflect.EnumDescriptor
func (NotifyDetails_RecipientType) Enum ¶
func (x NotifyDetails_RecipientType) Enum() *NotifyDetails_RecipientType
func (NotifyDetails_RecipientType) EnumDescriptor
deprecated
func (NotifyDetails_RecipientType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NotifyDetails_RecipientType.Descriptor instead.
func (NotifyDetails_RecipientType) Number ¶
func (x NotifyDetails_RecipientType) Number() protoreflect.EnumNumber
func (NotifyDetails_RecipientType) String ¶
func (x NotifyDetails_RecipientType) String() string
func (NotifyDetails_RecipientType) Type ¶
func (NotifyDetails_RecipientType) Type() protoreflect.EnumType
type OwnerInfo ¶
type OwnerInfo struct { Account *AccountInfo `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
Information about a single OWNER NOTE: Gerrit OwnerInfo provides other fields beyond account, which can be added later.
func (*OwnerInfo) Descriptor
deprecated
func (*OwnerInfo) GetAccount ¶
func (x *OwnerInfo) GetAccount() *AccountInfo
func (*OwnerInfo) ProtoMessage ¶
func (*OwnerInfo) ProtoMessage()
func (*OwnerInfo) ProtoReflect ¶
func (x *OwnerInfo) ProtoReflect() protoreflect.Message
type ProjectInfo ¶
type ProjectInfo struct { // The project name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of the parent project Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` // The description of the project Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // The state of the project State ProjectInfo_State `protobuf:"varint,4,opt,name=state,proto3,enum=gerrit.ProjectInfo_State" json:"state,omitempty"` // Map of ref names to HEAD revisions Refs map[string]string `` /* 149-byte string literal not displayed */ // List of links to the project in external sites WebLinks []*WebLinkInfo `protobuf:"bytes,6,rep,name=web_links,json=webLinks,proto3" json:"web_links,omitempty"` // contains filtered or unexported fields }
Information about individual projects.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#project-info
func (*ProjectInfo) Descriptor
deprecated
func (*ProjectInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProjectInfo.ProtoReflect.Descriptor instead.
func (*ProjectInfo) GetDescription ¶
func (x *ProjectInfo) GetDescription() string
func (*ProjectInfo) GetName ¶
func (x *ProjectInfo) GetName() string
func (*ProjectInfo) GetParent ¶
func (x *ProjectInfo) GetParent() string
func (*ProjectInfo) GetRefs ¶
func (x *ProjectInfo) GetRefs() map[string]string
func (*ProjectInfo) GetState ¶
func (x *ProjectInfo) GetState() ProjectInfo_State
func (*ProjectInfo) GetWebLinks ¶
func (x *ProjectInfo) GetWebLinks() []*WebLinkInfo
func (*ProjectInfo) ProtoMessage ¶
func (*ProjectInfo) ProtoMessage()
func (*ProjectInfo) ProtoReflect ¶
func (x *ProjectInfo) ProtoReflect() protoreflect.Message
func (*ProjectInfo) Reset ¶
func (x *ProjectInfo) Reset()
func (*ProjectInfo) String ¶
func (x *ProjectInfo) String() string
type ProjectInfo_State ¶
type ProjectInfo_State int32
const ( ProjectInfo_PROJECT_STATE_UNSPECIFIED ProjectInfo_State = 0 ProjectInfo_PROJECT_STATE_ACTIVE ProjectInfo_State = 1 ProjectInfo_PROJECT_STATE_READ_ONLY ProjectInfo_State = 2 ProjectInfo_PROJECT_STATE_HIDDEN ProjectInfo_State = 3 )
func (ProjectInfo_State) Descriptor ¶
func (ProjectInfo_State) Descriptor() protoreflect.EnumDescriptor
func (ProjectInfo_State) Enum ¶
func (x ProjectInfo_State) Enum() *ProjectInfo_State
func (ProjectInfo_State) EnumDescriptor
deprecated
func (ProjectInfo_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProjectInfo_State.Descriptor instead.
func (ProjectInfo_State) Number ¶
func (x ProjectInfo_State) Number() protoreflect.EnumNumber
func (ProjectInfo_State) String ¶
func (x ProjectInfo_State) String() string
func (ProjectInfo_State) Type ¶
func (ProjectInfo_State) Type() protoreflect.EnumType
type PureRevertInfo ¶
type PureRevertInfo struct { // Outcome of the check as boolean. IsPureRevert bool `protobuf:"varint,1,opt,name=is_pure_revert,json=isPureRevert,proto3" json:"is_pure_revert,omitempty"` // contains filtered or unexported fields }
Information about the result of a pure revert check.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#pure-revert-info
func (*PureRevertInfo) Descriptor
deprecated
func (*PureRevertInfo) Descriptor() ([]byte, []int)
Deprecated: Use PureRevertInfo.ProtoReflect.Descriptor instead.
func (*PureRevertInfo) GetIsPureRevert ¶
func (x *PureRevertInfo) GetIsPureRevert() bool
func (*PureRevertInfo) ProtoMessage ¶
func (*PureRevertInfo) ProtoMessage()
func (*PureRevertInfo) ProtoReflect ¶
func (x *PureRevertInfo) ProtoReflect() protoreflect.Message
func (*PureRevertInfo) Reset ¶
func (x *PureRevertInfo) Reset()
func (*PureRevertInfo) String ¶
func (x *PureRevertInfo) String() string
type QueryOption ¶
type QueryOption int32
Specifies what extra information to include in the response.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#query-options
const ( QueryOption_OPTION_UNSPECIFIED QueryOption = 0 // A summary of each label required for submit, and approvers that have // granted (or rejected) with that label. QueryOption_LABELS QueryOption = 1 // Detailed label information, including numeric values of all existing // approvals, recognized label values, values permitted to be set by the // current user, all reviewers by state, and reviewers that may be removed by // the current user. QueryOption_DETAILED_LABELS QueryOption = 2 // Describe the current revision (patch set) of the change, including the // commit SHA-1 and URLs to fetch from. QueryOption_CURRENT_REVISION QueryOption = 4 // Describe all revisions, not just current. QueryOption_ALL_REVISIONS QueryOption = 8 // Parse and output all header fields from the commit object, including // message. Only valid when the CURRENT_REVISION or ALL_REVISIONS option is // selected. QueryOption_CURRENT_COMMIT QueryOption = 16 // Parse and output all header fields from the output revisions. If only // CURRENT_REVISION was requested then only the current revision’s commit data // will be output. QueryOption_ALL_COMMITS QueryOption = 32 // List files modified by the commit and magic files, including basic line // counts inserted/deleted per file. Only valid when the CURRENT_REVISION or // ALL_REVISIONS option is selected. QueryOption_CURRENT_FILES QueryOption = 64 // List files modified by the commit and magic files, including basic line // counts inserted/deleted per file. If only the CURRENT_REVISION was // requested then only that commit’s modified files will be output. QueryOption_ALL_FILES QueryOption = 128 // Include _account_id, email and username fields when referencing accounts. QueryOption_DETAILED_ACCOUNTS QueryOption = 256 // Include updates to reviewers set as ReviewerUpdateInfo entities. QueryOption_REVIEWER_UPDATES QueryOption = 512 // Include messages associated with the change. QueryOption_MESSAGES QueryOption = 1024 // Include information on available actions for the change and its current // revision. Ignored if the caller is not authenticated. QueryOption_CURRENT_ACTIONS QueryOption = 2048 // Include information on available change actions for the change. Ignored if // the caller is not authenticated. QueryOption_CHANGE_ACTIONS QueryOption = 4096 // Include the reviewed field if all of the following are true: // - the change is open // - the caller is authenticated // - the caller has commented on the change more recently than the last update // from the change owner, i.e. this change would show up in the results of // reviewedby:self. QueryOption_REVIEWED QueryOption = 8192 // Skip the mergeable field in ChangeInfo. For fast moving projects, this // field must be recomputed often, which is slow for projects with big trees. QueryOption_SKIP_MERGEABLE QueryOption = 16384 // Include the submittable field in ChangeInfo, which can be used to tell if // the change is reviewed and ready for submit. QueryOption_SUBMITTABLE QueryOption = 32768 // Include the web_links field in CommitInfo, therefore only valid in // combination with CURRENT_COMMIT or ALL_COMMITS. QueryOption_WEB_LINKS QueryOption = 65536 // Include potential problems with the change. QueryOption_CHECK QueryOption = 131072 // Include the full commit message with Gerrit-specific commit footers in the // RevisionInfo. QueryOption_COMMIT_FOOTERS QueryOption = 262144 // Include push certificate information in the RevisionInfo. Ignored if signed // push is not enabled on the server. QueryOption_PUSH_CERTIFICATES QueryOption = 524288 // Include references to external tracking systems as TrackingIdInfo. QueryOption_TRACKING_IDS QueryOption = 1048576 // Include the commands field in the FetchInfo for revisions. Only valid when // the CURRENT_REVISION or ALL_REVISIONS option is selected. QueryOption_DOWNLOAD_COMMANDS QueryOption = 2097152 // Include the submit_requirements field in ChangeInfo. QueryOption_SUBMIT_REQUIREMENTS QueryOption = 4194304 // MAX_QUERY_OPTION is the largest possible number in QueryOption. // // This is not meant to be used, but to indicate the upper bound of the valid // enum value set. // // QueryOption is typed as int32, and the largest possible value is // pow(2,31) - 1. MAX_QUERY_OPTION is the largest power of 2 allowed in // QueryOption. QueryOption_MAX_QUERY_OPTION QueryOption = 1073741824 )
func (QueryOption) Descriptor ¶
func (QueryOption) Descriptor() protoreflect.EnumDescriptor
func (QueryOption) Enum ¶
func (x QueryOption) Enum() *QueryOption
func (QueryOption) EnumDescriptor
deprecated
func (QueryOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use QueryOption.Descriptor instead.
func (QueryOption) Number ¶
func (x QueryOption) Number() protoreflect.EnumNumber
func (QueryOption) String ¶
func (x QueryOption) String() string
func (QueryOption) Type ¶
func (QueryOption) Type() protoreflect.EnumType
type RefInfo ¶
type RefInfo struct { // The ref of the branch Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` // The revision the branch points to Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
Information about a branch.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#branch-info
func (*RefInfo) Descriptor
deprecated
func (*RefInfo) GetRevision ¶
func (*RefInfo) ProtoMessage ¶
func (*RefInfo) ProtoMessage()
func (*RefInfo) ProtoReflect ¶
func (x *RefInfo) ProtoReflect() protoreflect.Message
type RefInfoRequest ¶
type RefInfoRequest struct { // The project name Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The ref ID (eg: refs/heads/main). Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // contains filtered or unexported fields }
Information to request information about a branch.
func (*RefInfoRequest) Descriptor
deprecated
func (*RefInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefInfoRequest.ProtoReflect.Descriptor instead.
func (*RefInfoRequest) GetProject ¶
func (x *RefInfoRequest) GetProject() string
func (*RefInfoRequest) GetRef ¶
func (x *RefInfoRequest) GetRef() string
func (*RefInfoRequest) ProtoMessage ¶
func (*RefInfoRequest) ProtoMessage()
func (*RefInfoRequest) ProtoReflect ¶
func (x *RefInfoRequest) ProtoReflect() protoreflect.Message
func (*RefInfoRequest) Reset ¶
func (x *RefInfoRequest) Reset()
func (*RefInfoRequest) String ¶
func (x *RefInfoRequest) String() string
type Requirement ¶
type Requirement struct { Status Requirement_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gerrit.Requirement_Status" json:"status,omitempty"` // A human readable reason. FallbackText string `protobuf:"bytes,2,opt,name=fallback_text,json=fallbackText,proto3" json:"fallback_text,omitempty"` // Alphanumerical (plus hyphens or underscores) string to identify what the // requirement is and why it was triggered. Can be seen as a class: // requirements sharing the same type were created for a similar reason, and // the data structure will follow one set of rules. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
The Requirement entity contains information about a requirement relative to a change.
The requirement explains what has to happen before the change will be submittable, e.g. owners CR+2 vote.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#requirement
func (*Requirement) Descriptor
deprecated
func (*Requirement) Descriptor() ([]byte, []int)
Deprecated: Use Requirement.ProtoReflect.Descriptor instead.
func (*Requirement) GetFallbackText ¶
func (x *Requirement) GetFallbackText() string
func (*Requirement) GetStatus ¶
func (x *Requirement) GetStatus() Requirement_Status
func (*Requirement) GetType ¶
func (x *Requirement) GetType() string
func (*Requirement) ProtoMessage ¶
func (*Requirement) ProtoMessage()
func (*Requirement) ProtoReflect ¶
func (x *Requirement) ProtoReflect() protoreflect.Message
func (*Requirement) Reset ¶
func (x *Requirement) Reset()
func (*Requirement) String ¶
func (x *Requirement) String() string
type Requirement_Status ¶
type Requirement_Status int32
const ( Requirement_REQUIREMENT_STATUS_UNSPECIFIED Requirement_Status = 0 Requirement_REQUIREMENT_STATUS_OK Requirement_Status = 1 Requirement_REQUIREMENT_STATUS_NOT_READY Requirement_Status = 2 Requirement_REQUIREMENT_STATUS_RULE_ERROR Requirement_Status = 3 )
func (Requirement_Status) Descriptor ¶
func (Requirement_Status) Descriptor() protoreflect.EnumDescriptor
func (Requirement_Status) Enum ¶
func (x Requirement_Status) Enum() *Requirement_Status
func (Requirement_Status) EnumDescriptor
deprecated
func (Requirement_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Requirement_Status.Descriptor instead.
func (Requirement_Status) Number ¶
func (x Requirement_Status) Number() protoreflect.EnumNumber
func (Requirement_Status) String ¶
func (x Requirement_Status) String() string
func (Requirement_Status) Type ¶
func (Requirement_Status) Type() protoreflect.EnumType
type RevertChangeRequest ¶
type RevertChangeRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Message to be added as review comment to the change when reverting the change. // // Optional Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
Information for reverting a change.
Fields are a subset of arguments from: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revert-change https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revert-input
func (*RevertChangeRequest) Descriptor
deprecated
func (*RevertChangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevertChangeRequest.ProtoReflect.Descriptor instead.
func (*RevertChangeRequest) GetMessage ¶
func (x *RevertChangeRequest) GetMessage() string
func (*RevertChangeRequest) GetNumber ¶
func (x *RevertChangeRequest) GetNumber() int64
func (*RevertChangeRequest) GetProject ¶
func (x *RevertChangeRequest) GetProject() string
func (*RevertChangeRequest) ProtoMessage ¶
func (*RevertChangeRequest) ProtoMessage()
func (*RevertChangeRequest) ProtoReflect ¶
func (x *RevertChangeRequest) ProtoReflect() protoreflect.Message
func (*RevertChangeRequest) Reset ¶
func (x *RevertChangeRequest) Reset()
func (*RevertChangeRequest) String ¶
func (x *RevertChangeRequest) String() string
func (*RevertChangeRequest) Validate ¶
func (r *RevertChangeRequest) Validate() error
Validate returns an error if r is invalid.
type ReviewResult ¶
type ReviewResult struct { // Map of labels to values after the review was posted. Null if any reviewer // additions were rejected. Labels map[string]int32 `` /* 154-byte string literal not displayed */ // Map of account or group identifier to ReviewerResult representing // the outcome of adding a reviewer. // // Absent if no reviewer additions were requested. Reviewers map[string]*AddReviewerResult `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
Information returned by a SetReview RPC.
Fields are a subset of: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#review-result
func (*ReviewResult) Descriptor
deprecated
func (*ReviewResult) Descriptor() ([]byte, []int)
Deprecated: Use ReviewResult.ProtoReflect.Descriptor instead.
func (*ReviewResult) GetLabels ¶
func (x *ReviewResult) GetLabels() map[string]int32
func (*ReviewResult) GetReviewers ¶
func (x *ReviewResult) GetReviewers() map[string]*AddReviewerResult
func (*ReviewResult) ProtoMessage ¶
func (*ReviewResult) ProtoMessage()
func (*ReviewResult) ProtoReflect ¶
func (x *ReviewResult) ProtoReflect() protoreflect.Message
func (*ReviewResult) Reset ¶
func (x *ReviewResult) Reset()
func (*ReviewResult) String ¶
func (x *ReviewResult) String() string
type ReviewerInfo ¶
type ReviewerInfo struct { // The detailed account information about a reviewer. Account *AccountInfo `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // The approvals as a map of label names to approval values. Approvals map[string]int32 `` /* 160-byte string literal not displayed */ // contains filtered or unexported fields }
Information about a reviewer. A superset of information from AccountInfo.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#reviewer-info
func (*ReviewerInfo) Descriptor
deprecated
func (*ReviewerInfo) Descriptor() ([]byte, []int)
Deprecated: Use ReviewerInfo.ProtoReflect.Descriptor instead.
func (*ReviewerInfo) GetAccount ¶
func (x *ReviewerInfo) GetAccount() *AccountInfo
func (*ReviewerInfo) GetApprovals ¶
func (x *ReviewerInfo) GetApprovals() map[string]int32
func (*ReviewerInfo) ProtoMessage ¶
func (*ReviewerInfo) ProtoMessage()
func (*ReviewerInfo) ProtoReflect ¶
func (x *ReviewerInfo) ProtoReflect() protoreflect.Message
func (*ReviewerInfo) Reset ¶
func (x *ReviewerInfo) Reset()
func (*ReviewerInfo) String ¶
func (x *ReviewerInfo) String() string
type ReviewerInput ¶
type ReviewerInput struct { // The ID of a single account or group to review the change. // // https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-id Reviewer string `protobuf:"bytes,1,opt,name=reviewer,proto3" json:"reviewer,omitempty"` // Optional - Add reviewer in this state. // // Possible reviewer states are REVIEWER and CC. If not given, // Gerrit defaults to REVIEWER. State ReviewerInput_State `protobuf:"varint,2,opt,name=state,proto3,enum=gerrit.ReviewerInput_State" json:"state,omitempty"` // contains filtered or unexported fields }
Information to add reviewers to a change.
Fields are a subset of arguments from: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#reviewer-input
func (*ReviewerInput) Descriptor
deprecated
func (*ReviewerInput) Descriptor() ([]byte, []int)
Deprecated: Use ReviewerInput.ProtoReflect.Descriptor instead.
func (*ReviewerInput) GetReviewer ¶
func (x *ReviewerInput) GetReviewer() string
func (*ReviewerInput) GetState ¶
func (x *ReviewerInput) GetState() ReviewerInput_State
func (*ReviewerInput) ProtoMessage ¶
func (*ReviewerInput) ProtoMessage()
func (*ReviewerInput) ProtoReflect ¶
func (x *ReviewerInput) ProtoReflect() protoreflect.Message
func (*ReviewerInput) Reset ¶
func (x *ReviewerInput) Reset()
func (*ReviewerInput) String ¶
func (x *ReviewerInput) String() string
type ReviewerInput_State ¶
type ReviewerInput_State int32
Subset of reviewer states. See the "state" entry at https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#reviewer-input
const ( ReviewerInput_REVIEWER_INPUT_STATE_UNSPECIFIED ReviewerInput_State = 0 ReviewerInput_REVIEWER_INPUT_STATE_REVIEWER ReviewerInput_State = 1 ReviewerInput_REVIEWER_INPUT_STATE_CC ReviewerInput_State = 2 )
func (ReviewerInput_State) Descriptor ¶
func (ReviewerInput_State) Descriptor() protoreflect.EnumDescriptor
func (ReviewerInput_State) Enum ¶
func (x ReviewerInput_State) Enum() *ReviewerInput_State
func (ReviewerInput_State) EnumDescriptor
deprecated
func (ReviewerInput_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReviewerInput_State.Descriptor instead.
func (ReviewerInput_State) Number ¶
func (x ReviewerInput_State) Number() protoreflect.EnumNumber
func (ReviewerInput_State) String ¶
func (x ReviewerInput_State) String() string
func (ReviewerInput_State) Type ¶
func (ReviewerInput_State) Type() protoreflect.EnumType
type ReviewerStatusMap ¶
type ReviewerStatusMap struct { // The users who have been added to the change and voted. Reviewers []*AccountInfo `protobuf:"bytes,1,rep,name=reviewers,proto3" json:"reviewers,omitempty"` // The users who have been added to the change but haven't voted yet. Ccs []*AccountInfo `protobuf:"bytes,2,rep,name=ccs,proto3" json:"ccs,omitempty"` // The users who have been removed from the change. Removed []*AccountInfo `protobuf:"bytes,3,rep,name=removed,proto3" json:"removed,omitempty"` // contains filtered or unexported fields }
ReviewerStatusMap is a map that maps a reviewer state to a list of AccountInfo(s).
ReviewerState includes REVIEWER, CC, and REMOVED, and this struct defines a field for each of then.
func (*ReviewerStatusMap) Descriptor
deprecated
func (*ReviewerStatusMap) Descriptor() ([]byte, []int)
Deprecated: Use ReviewerStatusMap.ProtoReflect.Descriptor instead.
func (*ReviewerStatusMap) GetCcs ¶
func (x *ReviewerStatusMap) GetCcs() []*AccountInfo
func (*ReviewerStatusMap) GetRemoved ¶
func (x *ReviewerStatusMap) GetRemoved() []*AccountInfo
func (*ReviewerStatusMap) GetReviewers ¶
func (x *ReviewerStatusMap) GetReviewers() []*AccountInfo
func (*ReviewerStatusMap) ProtoMessage ¶
func (*ReviewerStatusMap) ProtoMessage()
func (*ReviewerStatusMap) ProtoReflect ¶
func (x *ReviewerStatusMap) ProtoReflect() protoreflect.Message
func (*ReviewerStatusMap) Reset ¶
func (x *ReviewerStatusMap) Reset()
func (*ReviewerStatusMap) String ¶
func (x *ReviewerStatusMap) String() string
type RevisionInfo ¶
type RevisionInfo struct { // The kind of this patch set. Kind RevisionInfo_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=gerrit.RevisionInfo_Kind" json:"kind,omitempty"` // The patch set number. Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // The uploader of this patch set. Uploader *AccountInfo `protobuf:"bytes,3,opt,name=uploader,proto3" json:"uploader,omitempty"` // The Git reference for the patch set. Ref string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"` // The timestamp of when the patch set was created. Created *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created,proto3" json:"created,omitempty"` // The description (aka title) of this patchset, as displayed in the patchset // selector menu. // // Gerrit distinguishes empty string and no value, but here both are clamped // into "". // // This is not CL description, aka Git commit message, which is stored in // `commit.message`. Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` // The commit metadata for the patchset. // // Only set if commit information is requested. Commit *CommitInfo `protobuf:"bytes,5,opt,name=commit,proto3" json:"commit,omitempty"` // A map of file paths to FileInfos. // // Only set if file information is requested. Files map[string]*FileInfo `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
Information about a patch set.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revision-info
func (*RevisionInfo) Descriptor
deprecated
func (*RevisionInfo) Descriptor() ([]byte, []int)
Deprecated: Use RevisionInfo.ProtoReflect.Descriptor instead.
func (*RevisionInfo) GetCommit ¶
func (x *RevisionInfo) GetCommit() *CommitInfo
func (*RevisionInfo) GetCreated ¶
func (x *RevisionInfo) GetCreated() *timestamppb.Timestamp
func (*RevisionInfo) GetDescription ¶
func (x *RevisionInfo) GetDescription() string
func (*RevisionInfo) GetFiles ¶
func (x *RevisionInfo) GetFiles() map[string]*FileInfo
func (*RevisionInfo) GetKind ¶
func (x *RevisionInfo) GetKind() RevisionInfo_Kind
func (*RevisionInfo) GetNumber ¶
func (x *RevisionInfo) GetNumber() int32
func (*RevisionInfo) GetRef ¶
func (x *RevisionInfo) GetRef() string
func (*RevisionInfo) GetUploader ¶
func (x *RevisionInfo) GetUploader() *AccountInfo
func (*RevisionInfo) ProtoMessage ¶
func (*RevisionInfo) ProtoMessage()
func (*RevisionInfo) ProtoReflect ¶
func (x *RevisionInfo) ProtoReflect() protoreflect.Message
func (*RevisionInfo) Reset ¶
func (x *RevisionInfo) Reset()
func (*RevisionInfo) String ¶
func (x *RevisionInfo) String() string
type RevisionInfo_Kind ¶
type RevisionInfo_Kind int32
The kind of change for this revision.
const ( RevisionInfo_KIND_INVALID RevisionInfo_Kind = 0 RevisionInfo_REWORK RevisionInfo_Kind = 1 RevisionInfo_TRIVIAL_REBASE RevisionInfo_Kind = 2 RevisionInfo_MERGE_FIRST_PARENT_UPDATE RevisionInfo_Kind = 3 RevisionInfo_NO_CODE_CHANGE RevisionInfo_Kind = 4 RevisionInfo_NO_CHANGE RevisionInfo_Kind = 5 RevisionInfo_TRIVIAL_REBASE_WITH_MESSAGE_UPDATE RevisionInfo_Kind = 6 )
func (RevisionInfo_Kind) Descriptor ¶
func (RevisionInfo_Kind) Descriptor() protoreflect.EnumDescriptor
func (RevisionInfo_Kind) Enum ¶
func (x RevisionInfo_Kind) Enum() *RevisionInfo_Kind
func (RevisionInfo_Kind) EnumDescriptor
deprecated
func (RevisionInfo_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use RevisionInfo_Kind.Descriptor instead.
func (RevisionInfo_Kind) Number ¶
func (x RevisionInfo_Kind) Number() protoreflect.EnumNumber
func (RevisionInfo_Kind) String ¶
func (x RevisionInfo_Kind) String() string
func (RevisionInfo_Kind) Type ¶
func (RevisionInfo_Kind) Type() protoreflect.EnumType
type SetReviewRequest ¶
type SetReviewRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Unique ID for the revision to query. // // Source of truth: // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revision-id RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` // Message to be added to the change along with this review. Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` // labels to add, e.g.: // // { // "Code-Review": -1, // "Verified": 1, // } Labels map[string]int32 `` /* 154-byte string literal not displayed */ // Tag to be applied to the review comment message, votes, and inline // comments. // // Tags may be used by CI or other automated systems to distinguish them // from human reviews. Votes/comments that contain tag with 'autogenerated:' // prefix can be filtered out in the web UI. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"` // Notify defines to whom email notifications should be sent. Notify Notify `protobuf:"varint,7,opt,name=notify,proto3,enum=gerrit.Notify" json:"notify,omitempty"` // NotifyDetails contains additional information about whom to notify. // // These notifications are sent out even if `notify` options disables normal // notifications. NotifyDetails *NotifyDetails `protobuf:"bytes,8,opt,name=notify_details,json=notifyDetails,proto3" json:"notify_details,omitempty"` // The account_id that the review should be posted on behalf of. // // To use this option the caller must have been granted labelAs-NAME // permission for all keys of labels. OnBehalfOf int64 `protobuf:"varint,9,opt,name=on_behalf_of,json=onBehalfOf,proto3" json:"on_behalf_of,omitempty"` // If true, then start review. // It is an error for both ready and work_in_progress to be true at the same // time. Ready bool `protobuf:"varint,10,opt,name=ready,proto3" json:"ready,omitempty"` // If true, mark the change as work in progress. // It is an error for both ready and work_in_progress to be true at the same // time. WorkInProgress bool `protobuf:"varint,11,opt,name=work_in_progress,json=workInProgress,proto3" json:"work_in_progress,omitempty"` // list of AttentionSetInput entities to add to the attention set. Users that // are not reviewers, ccs, owner, or uploader are silently ignored. AddToAttentionSet []*AttentionSetInput `protobuf:"bytes,12,rep,name=add_to_attention_set,json=addToAttentionSet,proto3" json:"add_to_attention_set,omitempty"` // list of AttentionSetInput entities to remove from the attention set. RemoveFromAttentionSet []*AttentionSetInput `` /* 132-byte string literal not displayed */ // If true, ignore all automatic attention set rules described in the // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#attention-set // // Updates in add_to_attention_set and remove_from_attention_set are not // ignored. IgnoreAutomaticAttentionSetRules bool `` /* 165-byte string literal not displayed */ // list of ReviewerInput entities representing reviewers that should be // added to the change. Reviewers []*ReviewerInput `protobuf:"bytes,15,rep,name=reviewers,proto3" json:"reviewers,omitempty"` // contains filtered or unexported fields }
Information to set various review bits on a change
Fields are a subset of arguments from: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#set-review https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#review-input
func (*SetReviewRequest) Descriptor
deprecated
func (*SetReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetReviewRequest.ProtoReflect.Descriptor instead.
func (*SetReviewRequest) GetAddToAttentionSet ¶
func (x *SetReviewRequest) GetAddToAttentionSet() []*AttentionSetInput
func (*SetReviewRequest) GetIgnoreAutomaticAttentionSetRules ¶
func (x *SetReviewRequest) GetIgnoreAutomaticAttentionSetRules() bool
func (*SetReviewRequest) GetLabels ¶
func (x *SetReviewRequest) GetLabels() map[string]int32
func (*SetReviewRequest) GetMessage ¶
func (x *SetReviewRequest) GetMessage() string
func (*SetReviewRequest) GetNotify ¶
func (x *SetReviewRequest) GetNotify() Notify
func (*SetReviewRequest) GetNotifyDetails ¶
func (x *SetReviewRequest) GetNotifyDetails() *NotifyDetails
func (*SetReviewRequest) GetNumber ¶
func (x *SetReviewRequest) GetNumber() int64
func (*SetReviewRequest) GetOnBehalfOf ¶
func (x *SetReviewRequest) GetOnBehalfOf() int64
func (*SetReviewRequest) GetProject ¶
func (x *SetReviewRequest) GetProject() string
func (*SetReviewRequest) GetReady ¶
func (x *SetReviewRequest) GetReady() bool
func (*SetReviewRequest) GetRemoveFromAttentionSet ¶
func (x *SetReviewRequest) GetRemoveFromAttentionSet() []*AttentionSetInput
func (*SetReviewRequest) GetReviewers ¶
func (x *SetReviewRequest) GetReviewers() []*ReviewerInput
func (*SetReviewRequest) GetRevisionId ¶
func (x *SetReviewRequest) GetRevisionId() string
func (*SetReviewRequest) GetTag ¶
func (x *SetReviewRequest) GetTag() string
func (*SetReviewRequest) GetWorkInProgress ¶
func (x *SetReviewRequest) GetWorkInProgress() bool
func (*SetReviewRequest) ProtoMessage ¶
func (*SetReviewRequest) ProtoMessage()
func (*SetReviewRequest) ProtoReflect ¶
func (x *SetReviewRequest) ProtoReflect() protoreflect.Message
func (*SetReviewRequest) Reset ¶
func (x *SetReviewRequest) Reset()
func (*SetReviewRequest) String ¶
func (x *SetReviewRequest) String() string
func (*SetReviewRequest) Validate ¶
func (r *SetReviewRequest) Validate() error
Validate returns an error if r is invalid.
type SourceRepoEvent ¶
type SourceRepoEvent struct { // The name of the repo that has changed. Values are of the form // `projects/<project>/repos/<repo>`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // URL to clone the repository from Google Cloud Source Repositories. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // The timestamp that this event happened. EventTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` // The detail data of the event. // // Types that are assignable to Event: // // *SourceRepoEvent_RefUpdateEvent_ // *SourceRepoEvent_CreateRepoEvent_ // *SourceRepoEvent_DeleteRepoEvent_ Event isSourceRepoEvent_Event `protobuf_oneof:"event"` // contains filtered or unexported fields }
Cloud Pub/Sub message payload for all events in Source Repo API.
func (*SourceRepoEvent) Descriptor
deprecated
func (*SourceRepoEvent) Descriptor() ([]byte, []int)
Deprecated: Use SourceRepoEvent.ProtoReflect.Descriptor instead.
func (*SourceRepoEvent) GetCreateRepoEvent ¶
func (x *SourceRepoEvent) GetCreateRepoEvent() *SourceRepoEvent_CreateRepoEvent
func (*SourceRepoEvent) GetDeleteRepoEvent ¶
func (x *SourceRepoEvent) GetDeleteRepoEvent() *SourceRepoEvent_DeleteRepoEvent
func (*SourceRepoEvent) GetEvent ¶
func (m *SourceRepoEvent) GetEvent() isSourceRepoEvent_Event
func (*SourceRepoEvent) GetEventTime ¶
func (x *SourceRepoEvent) GetEventTime() *timestamppb.Timestamp
func (*SourceRepoEvent) GetName ¶
func (x *SourceRepoEvent) GetName() string
func (*SourceRepoEvent) GetRefUpdateEvent ¶
func (x *SourceRepoEvent) GetRefUpdateEvent() *SourceRepoEvent_RefUpdateEvent
func (*SourceRepoEvent) GetUrl ¶
func (x *SourceRepoEvent) GetUrl() string
func (*SourceRepoEvent) ProtoMessage ¶
func (*SourceRepoEvent) ProtoMessage()
func (*SourceRepoEvent) ProtoReflect ¶
func (x *SourceRepoEvent) ProtoReflect() protoreflect.Message
func (*SourceRepoEvent) Reset ¶
func (x *SourceRepoEvent) Reset()
func (*SourceRepoEvent) String ¶
func (x *SourceRepoEvent) String() string
type SourceRepoEvent_CreateRepoEvent ¶
type SourceRepoEvent_CreateRepoEvent struct {
// contains filtered or unexported fields
}
An event that created a repository.
func (*SourceRepoEvent_CreateRepoEvent) Descriptor
deprecated
func (*SourceRepoEvent_CreateRepoEvent) Descriptor() ([]byte, []int)
Deprecated: Use SourceRepoEvent_CreateRepoEvent.ProtoReflect.Descriptor instead.
func (*SourceRepoEvent_CreateRepoEvent) ProtoMessage ¶
func (*SourceRepoEvent_CreateRepoEvent) ProtoMessage()
func (*SourceRepoEvent_CreateRepoEvent) ProtoReflect ¶
func (x *SourceRepoEvent_CreateRepoEvent) ProtoReflect() protoreflect.Message
func (*SourceRepoEvent_CreateRepoEvent) Reset ¶
func (x *SourceRepoEvent_CreateRepoEvent) Reset()
func (*SourceRepoEvent_CreateRepoEvent) String ¶
func (x *SourceRepoEvent_CreateRepoEvent) String() string
type SourceRepoEvent_CreateRepoEvent_ ¶
type SourceRepoEvent_CreateRepoEvent_ struct {
CreateRepoEvent *SourceRepoEvent_CreateRepoEvent `protobuf:"bytes,5,opt,name=create_repo_event,json=createRepoEvent,proto3,oneof"`
}
type SourceRepoEvent_DeleteRepoEvent ¶
type SourceRepoEvent_DeleteRepoEvent struct {
// contains filtered or unexported fields
}
An event that deleted a repository.
func (*SourceRepoEvent_DeleteRepoEvent) Descriptor
deprecated
func (*SourceRepoEvent_DeleteRepoEvent) Descriptor() ([]byte, []int)
Deprecated: Use SourceRepoEvent_DeleteRepoEvent.ProtoReflect.Descriptor instead.
func (*SourceRepoEvent_DeleteRepoEvent) ProtoMessage ¶
func (*SourceRepoEvent_DeleteRepoEvent) ProtoMessage()
func (*SourceRepoEvent_DeleteRepoEvent) ProtoReflect ¶
func (x *SourceRepoEvent_DeleteRepoEvent) ProtoReflect() protoreflect.Message
func (*SourceRepoEvent_DeleteRepoEvent) Reset ¶
func (x *SourceRepoEvent_DeleteRepoEvent) Reset()
func (*SourceRepoEvent_DeleteRepoEvent) String ¶
func (x *SourceRepoEvent_DeleteRepoEvent) String() string
type SourceRepoEvent_DeleteRepoEvent_ ¶
type SourceRepoEvent_DeleteRepoEvent_ struct {
DeleteRepoEvent *SourceRepoEvent_DeleteRepoEvent `protobuf:"bytes,6,opt,name=delete_repo_event,json=deleteRepoEvent,proto3,oneof"`
}
type SourceRepoEvent_RefUpdateEvent ¶
type SourceRepoEvent_RefUpdateEvent struct { // The user who performed the ref updates. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // Updates on references, keyed by the names of the references. RefUpdates map[string]*SourceRepoEvent_RefUpdateEvent_RefUpdate `` /* 179-byte string literal not displayed */ // contains filtered or unexported fields }
An event that changed references.
func (*SourceRepoEvent_RefUpdateEvent) Descriptor
deprecated
func (*SourceRepoEvent_RefUpdateEvent) Descriptor() ([]byte, []int)
Deprecated: Use SourceRepoEvent_RefUpdateEvent.ProtoReflect.Descriptor instead.
func (*SourceRepoEvent_RefUpdateEvent) GetEmail ¶
func (x *SourceRepoEvent_RefUpdateEvent) GetEmail() string
func (*SourceRepoEvent_RefUpdateEvent) GetRefUpdates ¶
func (x *SourceRepoEvent_RefUpdateEvent) GetRefUpdates() map[string]*SourceRepoEvent_RefUpdateEvent_RefUpdate
func (*SourceRepoEvent_RefUpdateEvent) ProtoMessage ¶
func (*SourceRepoEvent_RefUpdateEvent) ProtoMessage()
func (*SourceRepoEvent_RefUpdateEvent) ProtoReflect ¶
func (x *SourceRepoEvent_RefUpdateEvent) ProtoReflect() protoreflect.Message
func (*SourceRepoEvent_RefUpdateEvent) Reset ¶
func (x *SourceRepoEvent_RefUpdateEvent) Reset()
func (*SourceRepoEvent_RefUpdateEvent) String ¶
func (x *SourceRepoEvent_RefUpdateEvent) String() string
type SourceRepoEvent_RefUpdateEvent_ ¶
type SourceRepoEvent_RefUpdateEvent_ struct {
RefUpdateEvent *SourceRepoEvent_RefUpdateEvent `protobuf:"bytes,4,opt,name=ref_update_event,json=refUpdateEvent,proto3,oneof"`
}
type SourceRepoEvent_RefUpdateEvent_RefUpdate ¶
type SourceRepoEvent_RefUpdateEvent_RefUpdate struct { // The name of the reference. Values are of the form `refs/...` (e.g. // `refs/heads/master`). RefName string `protobuf:"bytes,1,opt,name=ref_name,json=refName,proto3" json:"ref_name,omitempty"` // The type of the update. UpdateType SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType `` /* 156-byte string literal not displayed */ // The previous object ID that the ref pointed to. OldId string `protobuf:"bytes,3,opt,name=old_id,json=oldId,proto3" json:"old_id,omitempty"` // The new object ID that the ref points to. NewId string `protobuf:"bytes,4,opt,name=new_id,json=newId,proto3" json:"new_id,omitempty"` // contains filtered or unexported fields }
An update on a reference.
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) Descriptor
deprecated
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) Descriptor() ([]byte, []int)
Deprecated: Use SourceRepoEvent_RefUpdateEvent_RefUpdate.ProtoReflect.Descriptor instead.
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) GetNewId ¶
func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) GetNewId() string
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) GetOldId ¶
func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) GetOldId() string
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) GetRefName ¶
func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) GetRefName() string
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) GetUpdateType ¶
func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) GetUpdateType() SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) ProtoMessage ¶
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) ProtoMessage()
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) ProtoReflect ¶
func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) ProtoReflect() protoreflect.Message
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) Reset ¶
func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) Reset()
func (*SourceRepoEvent_RefUpdateEvent_RefUpdate) String ¶
func (x *SourceRepoEvent_RefUpdateEvent_RefUpdate) String() string
type SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType ¶
type SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType int32
The type of the update.
const ( SourceRepoEvent_RefUpdateEvent_RefUpdate_UPDATE_TYPE_UNSPECIFIED SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType = 0 // Create a new ref. SourceRepoEvent_RefUpdateEvent_RefUpdate_CREATE SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType = 1 // Update the object that the ref points to. SourceRepoEvent_RefUpdateEvent_RefUpdate_UPDATE_FAST_FORWARD SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType = 2 // Update the object that the ref points to forcibly. SourceRepoEvent_RefUpdateEvent_RefUpdate_UPDATE_NON_FAST_FORWARD SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType = 3 // Delete the ref. SourceRepoEvent_RefUpdateEvent_RefUpdate_DELETE SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType = 4 )
func (SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) Descriptor ¶
func (SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) Descriptor() protoreflect.EnumDescriptor
func (SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) EnumDescriptor
deprecated
func (SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType.Descriptor instead.
func (SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) Number ¶
func (x SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) Number() protoreflect.EnumNumber
func (SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) String ¶
func (x SourceRepoEvent_RefUpdateEvent_RefUpdate_UpdateType) String() string
type SubmitChangeRequest ¶
type SubmitChangeRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
Information to submit a change.
This is a placeholder to support the arguments from: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-change https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-input
func (*SubmitChangeRequest) Descriptor
deprecated
func (*SubmitChangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitChangeRequest.ProtoReflect.Descriptor instead.
func (*SubmitChangeRequest) GetNumber ¶
func (x *SubmitChangeRequest) GetNumber() int64
func (*SubmitChangeRequest) GetProject ¶
func (x *SubmitChangeRequest) GetProject() string
func (*SubmitChangeRequest) ProtoMessage ¶
func (*SubmitChangeRequest) ProtoMessage()
func (*SubmitChangeRequest) ProtoReflect ¶
func (x *SubmitChangeRequest) ProtoReflect() protoreflect.Message
func (*SubmitChangeRequest) Reset ¶
func (x *SubmitChangeRequest) Reset()
func (*SubmitChangeRequest) String ¶
func (x *SubmitChangeRequest) String() string
type SubmitInfo ¶
type SubmitInfo struct { // The status of the change after submitting is MERGED. Status ChangeStatus `protobuf:"varint,1,opt,name=status,proto3,enum=gerrit.ChangeStatus" json:"status,omitempty"` // contains filtered or unexported fields }
Information about the change status after submitting.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-info
func (*SubmitInfo) Descriptor
deprecated
func (*SubmitInfo) Descriptor() ([]byte, []int)
Deprecated: Use SubmitInfo.ProtoReflect.Descriptor instead.
func (*SubmitInfo) GetStatus ¶
func (x *SubmitInfo) GetStatus() ChangeStatus
func (*SubmitInfo) ProtoMessage ¶
func (*SubmitInfo) ProtoMessage()
func (*SubmitInfo) ProtoReflect ¶
func (x *SubmitInfo) ProtoReflect() protoreflect.Message
func (*SubmitInfo) Reset ¶
func (x *SubmitInfo) Reset()
func (*SubmitInfo) String ¶
func (x *SubmitInfo) String() string
type SubmitRequirementExpressionInfo ¶
type SubmitRequirementExpressionInfo struct { // Expression of the submit requirement. // e.g., branch:refs/heads/foo and label:verified=+1. Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"` // True if the submit requirement is fulfilled for the change. Fulfilled bool `protobuf:"varint,2,opt,name=fulfilled,proto3" json:"fulfilled,omitempty"` // List of passing atoms. // e.g., ["branch:refs/heads/foo"] PassingAtoms []string `protobuf:"bytes,3,rep,name=passing_atoms,json=passingAtoms,proto3" json:"passing_atoms,omitempty"` // List of failing atoms. This is similar to passing_atoms except that // it contains a list of the predicates that are not fulfilled for the change. FailingAtoms []string `protobuf:"bytes,4,rep,name=failing_atoms,json=failingAtoms,proto3" json:"failing_atoms,omitempty"` // If evaluating the submit requirement failed, this field will contains // an error message describing why it failed. ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // contains filtered or unexported fields }
The SubmitRequirementExpressionInfo describes the result of evaluating a single submit requirement expression, for example label:code-review=+2.
func (*SubmitRequirementExpressionInfo) Descriptor
deprecated
func (*SubmitRequirementExpressionInfo) Descriptor() ([]byte, []int)
Deprecated: Use SubmitRequirementExpressionInfo.ProtoReflect.Descriptor instead.
func (*SubmitRequirementExpressionInfo) GetErrorMessage ¶
func (x *SubmitRequirementExpressionInfo) GetErrorMessage() string
func (*SubmitRequirementExpressionInfo) GetExpression ¶
func (x *SubmitRequirementExpressionInfo) GetExpression() string
func (*SubmitRequirementExpressionInfo) GetFailingAtoms ¶
func (x *SubmitRequirementExpressionInfo) GetFailingAtoms() []string
func (*SubmitRequirementExpressionInfo) GetFulfilled ¶
func (x *SubmitRequirementExpressionInfo) GetFulfilled() bool
func (*SubmitRequirementExpressionInfo) GetPassingAtoms ¶
func (x *SubmitRequirementExpressionInfo) GetPassingAtoms() []string
func (*SubmitRequirementExpressionInfo) ProtoMessage ¶
func (*SubmitRequirementExpressionInfo) ProtoMessage()
func (*SubmitRequirementExpressionInfo) ProtoReflect ¶
func (x *SubmitRequirementExpressionInfo) ProtoReflect() protoreflect.Message
func (*SubmitRequirementExpressionInfo) Reset ¶
func (x *SubmitRequirementExpressionInfo) Reset()
func (*SubmitRequirementExpressionInfo) String ¶
func (x *SubmitRequirementExpressionInfo) String() string
type SubmitRequirementResultInfo ¶
type SubmitRequirementResultInfo struct { // Name of The submit requirement. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Description of the submit requirement. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Status describing the result of evaluating the submit requirement. Status SubmitRequirementResultInfo_Status `protobuf:"varint,3,opt,name=status,proto3,enum=gerrit.SubmitRequirementResultInfo_Status" json:"status,omitempty"` // True if this submit requirement result was created from a legacy // SubmitRecord. IsLegacy bool `protobuf:"varint,4,opt,name=is_legacy,json=isLegacy,proto3" json:"is_legacy,omitempty"` // SubmitRequirementExpressionInfo containing the result of evaluating // the applicability expression. // // Not set if the submit requirement did not define an applicability // expression. Note that the following fields are always omitted in // `applicability_expression_result`. // - `expression` // - `passing_atoms` // - `failing_atoms` ApplicabilityExpressionResult *SubmitRequirementExpressionInfo `` /* 150-byte string literal not displayed */ // SubmitRequirementExpressionInfo containing the result of evaluating // the submittability expression. // // Not set if the submit requirement does not apply. SubmittabilityExpressionResult *SubmitRequirementExpressionInfo `` /* 153-byte string literal not displayed */ // SubmitRequirementExpressionInfo containing the result of evaluating // the override expression. // // Not set if the submit requirement did not define an override expression or // if it does not apply. OverrideExpressionResult *SubmitRequirementExpressionInfo `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
The SubmitRequirementResultInfo describes the result of evaluating a submit requirement on a change.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-requirement-result-info
func (*SubmitRequirementResultInfo) Descriptor
deprecated
func (*SubmitRequirementResultInfo) Descriptor() ([]byte, []int)
Deprecated: Use SubmitRequirementResultInfo.ProtoReflect.Descriptor instead.
func (*SubmitRequirementResultInfo) GetApplicabilityExpressionResult ¶
func (x *SubmitRequirementResultInfo) GetApplicabilityExpressionResult() *SubmitRequirementExpressionInfo
func (*SubmitRequirementResultInfo) GetDescription ¶
func (x *SubmitRequirementResultInfo) GetDescription() string
func (*SubmitRequirementResultInfo) GetIsLegacy ¶
func (x *SubmitRequirementResultInfo) GetIsLegacy() bool
func (*SubmitRequirementResultInfo) GetName ¶
func (x *SubmitRequirementResultInfo) GetName() string
func (*SubmitRequirementResultInfo) GetOverrideExpressionResult ¶
func (x *SubmitRequirementResultInfo) GetOverrideExpressionResult() *SubmitRequirementExpressionInfo
func (*SubmitRequirementResultInfo) GetStatus ¶
func (x *SubmitRequirementResultInfo) GetStatus() SubmitRequirementResultInfo_Status
func (*SubmitRequirementResultInfo) GetSubmittabilityExpressionResult ¶
func (x *SubmitRequirementResultInfo) GetSubmittabilityExpressionResult() *SubmitRequirementExpressionInfo
func (*SubmitRequirementResultInfo) ProtoMessage ¶
func (*SubmitRequirementResultInfo) ProtoMessage()
func (*SubmitRequirementResultInfo) ProtoReflect ¶
func (x *SubmitRequirementResultInfo) ProtoReflect() protoreflect.Message
func (*SubmitRequirementResultInfo) Reset ¶
func (x *SubmitRequirementResultInfo) Reset()
func (*SubmitRequirementResultInfo) String ¶
func (x *SubmitRequirementResultInfo) String() string
type SubmitRequirementResultInfo_Status ¶
type SubmitRequirementResultInfo_Status int32
const ( SubmitRequirementResultInfo_SUBMIT_REQUIREMENT_STATUS_UNSPECIFIED SubmitRequirementResultInfo_Status = 0 SubmitRequirementResultInfo_SATISFIED SubmitRequirementResultInfo_Status = 1 SubmitRequirementResultInfo_UNSATISFIED SubmitRequirementResultInfo_Status = 2 SubmitRequirementResultInfo_OVERRIDDEN SubmitRequirementResultInfo_Status = 3 SubmitRequirementResultInfo_NOT_APPLICABLE SubmitRequirementResultInfo_Status = 4 SubmitRequirementResultInfo_ERROR SubmitRequirementResultInfo_Status = 5 SubmitRequirementResultInfo_FORCED SubmitRequirementResultInfo_Status = 6 )
func (SubmitRequirementResultInfo_Status) Descriptor ¶
func (SubmitRequirementResultInfo_Status) Descriptor() protoreflect.EnumDescriptor
func (SubmitRequirementResultInfo_Status) Enum ¶
func (x SubmitRequirementResultInfo_Status) Enum() *SubmitRequirementResultInfo_Status
func (SubmitRequirementResultInfo_Status) EnumDescriptor
deprecated
func (SubmitRequirementResultInfo_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubmitRequirementResultInfo_Status.Descriptor instead.
func (SubmitRequirementResultInfo_Status) Number ¶
func (x SubmitRequirementResultInfo_Status) Number() protoreflect.EnumNumber
func (SubmitRequirementResultInfo_Status) String ¶
func (x SubmitRequirementResultInfo_Status) String() string
func (SubmitRequirementResultInfo_Status) Type ¶
func (SubmitRequirementResultInfo_Status) Type() protoreflect.EnumType
type SubmitRevisionRequest ¶
type SubmitRevisionRequest struct { // The change number. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // Unique ID that identifies one revision of this change. // // Source of truth: // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revision-id RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` // The project of this change. For example, "chromium/src". // // Optional, but recommended for better routing and faster RPC execution. Project string `protobuf:"bytes,5,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
Information to submit a specific revision of a change.
Fields encode the path arguments of https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-revision
func (*SubmitRevisionRequest) Descriptor
deprecated
func (*SubmitRevisionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitRevisionRequest.ProtoReflect.Descriptor instead.
func (*SubmitRevisionRequest) GetNumber ¶
func (x *SubmitRevisionRequest) GetNumber() int64
func (*SubmitRevisionRequest) GetProject ¶
func (x *SubmitRevisionRequest) GetProject() string
func (*SubmitRevisionRequest) GetRevisionId ¶
func (x *SubmitRevisionRequest) GetRevisionId() string
func (*SubmitRevisionRequest) ProtoMessage ¶
func (*SubmitRevisionRequest) ProtoMessage()
func (*SubmitRevisionRequest) ProtoReflect ¶
func (x *SubmitRevisionRequest) ProtoReflect() protoreflect.Message
func (*SubmitRevisionRequest) Reset ¶
func (x *SubmitRevisionRequest) Reset()
func (*SubmitRevisionRequest) String ¶
func (x *SubmitRevisionRequest) String() string
type UnimplementedGerritServer ¶
type UnimplementedGerritServer struct{}
UnimplementedGerritServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedGerritServer) AbandonChange ¶
func (UnimplementedGerritServer) AbandonChange(context.Context, *AbandonChangeRequest) (*ChangeInfo, error)
func (UnimplementedGerritServer) AddReviewer ¶
func (UnimplementedGerritServer) AddReviewer(context.Context, *AddReviewerRequest) (*AddReviewerResult, error)
func (UnimplementedGerritServer) AddToAttentionSet ¶
func (UnimplementedGerritServer) AddToAttentionSet(context.Context, *AttentionSetRequest) (*AccountInfo, error)
func (UnimplementedGerritServer) ChangeEditFileContent ¶
func (UnimplementedGerritServer) ChangeEditFileContent(context.Context, *ChangeEditFileContentRequest) (*emptypb.Empty, error)
func (UnimplementedGerritServer) ChangeEditPublish ¶
func (UnimplementedGerritServer) ChangeEditPublish(context.Context, *ChangeEditPublishRequest) (*emptypb.Empty, error)
func (UnimplementedGerritServer) CreateChange ¶
func (UnimplementedGerritServer) CreateChange(context.Context, *CreateChangeRequest) (*ChangeInfo, error)
func (UnimplementedGerritServer) DeleteEditFileContent ¶
func (UnimplementedGerritServer) DeleteEditFileContent(context.Context, *DeleteEditFileContentRequest) (*emptypb.Empty, error)
func (UnimplementedGerritServer) DeleteReviewer ¶
func (UnimplementedGerritServer) DeleteReviewer(context.Context, *DeleteReviewerRequest) (*emptypb.Empty, error)
func (UnimplementedGerritServer) GetChange ¶
func (UnimplementedGerritServer) GetChange(context.Context, *GetChangeRequest) (*ChangeInfo, error)
func (UnimplementedGerritServer) GetMergeable ¶
func (UnimplementedGerritServer) GetMergeable(context.Context, *GetMergeableRequest) (*MergeableInfo, error)
func (UnimplementedGerritServer) GetMetaDiff ¶
func (UnimplementedGerritServer) GetMetaDiff(context.Context, *GetMetaDiffRequest) (*MetaDiff, error)
func (UnimplementedGerritServer) GetPureRevert ¶
func (UnimplementedGerritServer) GetPureRevert(context.Context, *GetPureRevertRequest) (*PureRevertInfo, error)
func (UnimplementedGerritServer) GetRefInfo ¶
func (UnimplementedGerritServer) GetRefInfo(context.Context, *RefInfoRequest) (*RefInfo, error)
func (UnimplementedGerritServer) GetRelatedChanges ¶
func (UnimplementedGerritServer) GetRelatedChanges(context.Context, *GetRelatedChangesRequest) (*GetRelatedChangesResponse, error)
func (UnimplementedGerritServer) ListAccountEmails ¶
func (UnimplementedGerritServer) ListAccountEmails(context.Context, *ListAccountEmailsRequest) (*ListAccountEmailsResponse, error)
func (UnimplementedGerritServer) ListChanges ¶
func (UnimplementedGerritServer) ListChanges(context.Context, *ListChangesRequest) (*ListChangesResponse, error)
func (UnimplementedGerritServer) ListFileOwners ¶
func (UnimplementedGerritServer) ListFileOwners(context.Context, *ListFileOwnersRequest) (*ListOwnersResponse, error)
func (UnimplementedGerritServer) ListFiles ¶
func (UnimplementedGerritServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
func (UnimplementedGerritServer) ListProjects ¶
func (UnimplementedGerritServer) ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
func (UnimplementedGerritServer) RevertChange ¶
func (UnimplementedGerritServer) RevertChange(context.Context, *RevertChangeRequest) (*ChangeInfo, error)
func (UnimplementedGerritServer) SetReview ¶
func (UnimplementedGerritServer) SetReview(context.Context, *SetReviewRequest) (*ReviewResult, error)
func (UnimplementedGerritServer) SubmitChange ¶
func (UnimplementedGerritServer) SubmitChange(context.Context, *SubmitChangeRequest) (*ChangeInfo, error)
func (UnimplementedGerritServer) SubmitRevision ¶
func (UnimplementedGerritServer) SubmitRevision(context.Context, *SubmitRevisionRequest) (*SubmitInfo, error)
type UnsafeGerritServer ¶
type UnsafeGerritServer interface {
// contains filtered or unexported methods
}
UnsafeGerritServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GerritServer will result in compilation errors.
type VotingRangeInfo ¶
type VotingRangeInfo struct { // The minimum voting value, inclusive. Min int32 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` // The maximum voting value, inclusive. Max int32 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` // contains filtered or unexported fields }
VotingRangeInfo describes the continuous voting range from min to max values.
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#voting-range-info
func (*VotingRangeInfo) Descriptor
deprecated
func (*VotingRangeInfo) Descriptor() ([]byte, []int)
Deprecated: Use VotingRangeInfo.ProtoReflect.Descriptor instead.
func (*VotingRangeInfo) GetMax ¶
func (x *VotingRangeInfo) GetMax() int32
func (*VotingRangeInfo) GetMin ¶
func (x *VotingRangeInfo) GetMin() int32
func (*VotingRangeInfo) ProtoMessage ¶
func (*VotingRangeInfo) ProtoMessage()
func (*VotingRangeInfo) ProtoReflect ¶
func (x *VotingRangeInfo) ProtoReflect() protoreflect.Message
func (*VotingRangeInfo) Reset ¶
func (x *VotingRangeInfo) Reset()
func (*VotingRangeInfo) String ¶
func (x *VotingRangeInfo) String() string
type WebLinkInfo ¶
type WebLinkInfo struct { // The link name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Link URL Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // URL to link icon ImageUrl string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` // contains filtered or unexported fields }
Describes a link to an external site
Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#web-link-info
func (*WebLinkInfo) Descriptor
deprecated
func (*WebLinkInfo) Descriptor() ([]byte, []int)
Deprecated: Use WebLinkInfo.ProtoReflect.Descriptor instead.
func (*WebLinkInfo) GetImageUrl ¶
func (x *WebLinkInfo) GetImageUrl() string
func (*WebLinkInfo) GetName ¶
func (x *WebLinkInfo) GetName() string
func (*WebLinkInfo) GetUrl ¶
func (x *WebLinkInfo) GetUrl() string
func (*WebLinkInfo) ProtoMessage ¶
func (*WebLinkInfo) ProtoMessage()
func (*WebLinkInfo) ProtoReflect ¶
func (x *WebLinkInfo) ProtoReflect() protoreflect.Message
func (*WebLinkInfo) Reset ¶
func (x *WebLinkInfo) Reset()
func (*WebLinkInfo) String ¶
func (x *WebLinkInfo) String() string