blob: e8975c53bc80b45876ae166f1df057c89bc56be0 [file] [log] [blame]
// Copyright 2018 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.12.1
// source: go.chromium.org/luci/common/proto/gerrit/gerrit.proto
package gerrit
import prpc "go.chromium.org/luci/grpc/prpc"
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Specifies what extra information to include in the response.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#query-options
type QueryOption int32
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
)
// Enum value maps for QueryOption.
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",
}
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,
}
)
func (x QueryOption) Enum() *QueryOption {
p := new(QueryOption)
*p = x
return p
}
func (x QueryOption) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (QueryOption) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[0].Descriptor()
}
func (QueryOption) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[0]
}
func (x QueryOption) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use QueryOption.Descriptor instead.
func (QueryOption) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{0}
}
// Specify the notification options for an action.
// Different endpoints support different subsets of this enum.
type Notify int32
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
)
// Enum value maps for Notify.
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,
}
)
func (x Notify) Enum() *Notify {
p := new(Notify)
*p = x
return p
}
func (x Notify) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Notify) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[1].Descriptor()
}
func (Notify) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[1]
}
func (x Notify) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Notify.Descriptor instead.
func (Notify) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{1}
}
type ChangeStatus int32
const (
ChangeStatus_CHANGE_STATUS_INVALID ChangeStatus = 0
ChangeStatus_NEW ChangeStatus = 1
ChangeStatus_MERGED ChangeStatus = 2
ChangeStatus_ABANDONED ChangeStatus = 3
)
// Enum value maps for ChangeStatus.
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,
}
)
func (x ChangeStatus) Enum() *ChangeStatus {
p := new(ChangeStatus)
*p = x
return p
}
func (x ChangeStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ChangeStatus) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[2].Descriptor()
}
func (ChangeStatus) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[2]
}
func (x ChangeStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ChangeStatus.Descriptor instead.
func (ChangeStatus) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{2}
}
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
)
// Enum value maps for MergeableStrategy.
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,
}
)
func (x MergeableStrategy) Enum() *MergeableStrategy {
p := new(MergeableStrategy)
*p = x
return p
}
func (x MergeableStrategy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MergeableStrategy) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[3].Descriptor()
}
func (MergeableStrategy) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[3]
}
func (x MergeableStrategy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MergeableStrategy.Descriptor instead.
func (MergeableStrategy) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{3}
}
// Specify how recipient will be notified.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/user-notify.html#recipient-types
type NotifyDetails_RecipientType int32
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
)
// Enum value maps for NotifyDetails_RecipientType.
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,
}
)
func (x NotifyDetails_RecipientType) Enum() *NotifyDetails_RecipientType {
p := new(NotifyDetails_RecipientType)
*p = x
return p
}
func (x NotifyDetails_RecipientType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NotifyDetails_RecipientType) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[4].Descriptor()
}
func (NotifyDetails_RecipientType) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[4]
}
func (x NotifyDetails_RecipientType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NotifyDetails_RecipientType.Descriptor instead.
func (NotifyDetails_RecipientType) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{0, 0}
}
// The kind of change for this revision.
type RevisionInfo_Kind int32
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
)
// Enum value maps for RevisionInfo_Kind.
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",
}
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,
}
)
func (x RevisionInfo_Kind) Enum() *RevisionInfo_Kind {
p := new(RevisionInfo_Kind)
*p = x
return p
}
func (x RevisionInfo_Kind) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RevisionInfo_Kind) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[5].Descriptor()
}
func (RevisionInfo_Kind) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[5]
}
func (x RevisionInfo_Kind) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RevisionInfo_Kind.Descriptor instead.
func (RevisionInfo_Kind) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{6, 0}
}
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
)
// Enum value maps for Requirement_Status.
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,
}
)
func (x Requirement_Status) Enum() *Requirement_Status {
p := new(Requirement_Status)
*p = x
return p
}
func (x Requirement_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Requirement_Status) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[6].Descriptor()
}
func (Requirement_Status) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[6]
}
func (x Requirement_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Requirement_Status.Descriptor instead.
func (Requirement_Status) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{12, 0}
}
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
)
// Enum value maps for FileInfo_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,
}
)
func (x FileInfo_Status) Enum() *FileInfo_Status {
p := new(FileInfo_Status)
*p = x
return p
}
func (x FileInfo_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FileInfo_Status) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[7].Descriptor()
}
func (FileInfo_Status) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[7]
}
func (x FileInfo_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FileInfo_Status.Descriptor instead.
func (FileInfo_Status) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{13, 0}
}
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
)
// Enum value maps for AddReviewerRequest_State.
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,
}
)
func (x AddReviewerRequest_State) Enum() *AddReviewerRequest_State {
p := new(AddReviewerRequest_State)
*p = x
return p
}
func (x AddReviewerRequest_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AddReviewerRequest_State) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[8].Descriptor()
}
func (AddReviewerRequest_State) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[8]
}
func (x AddReviewerRequest_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AddReviewerRequest_State.Descriptor instead.
func (AddReviewerRequest_State) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{20, 0}
}
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
)
// Enum value maps for MergeableInfo_SubmitType.
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,
}
)
func (x MergeableInfo_SubmitType) Enum() *MergeableInfo_SubmitType {
p := new(MergeableInfo_SubmitType)
*p = x
return p
}
func (x MergeableInfo_SubmitType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MergeableInfo_SubmitType) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[9].Descriptor()
}
func (MergeableInfo_SubmitType) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[9]
}
func (x MergeableInfo_SubmitType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MergeableInfo_SubmitType.Descriptor instead.
func (MergeableInfo_SubmitType) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{28, 0}
}
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
)
// Enum value maps for ProjectInfo_State.
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,
}
)
func (x ProjectInfo_State) Enum() *ProjectInfo_State {
p := new(ProjectInfo_State)
*p = x
return p
}
func (x ProjectInfo_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProjectInfo_State) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[10].Descriptor()
}
func (ProjectInfo_State) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_enumTypes[10]
}
func (x ProjectInfo_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProjectInfo_State.Descriptor instead.
func (ProjectInfo_State) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{35, 0}
}
// Detailed information about whom to notify about the update.
type NotifyDetails struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *NotifyDetails) Reset() {
*x = NotifyDetails{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NotifyDetails) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NotifyDetails) ProtoMessage() {}
func (x *NotifyDetails) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NotifyDetails.ProtoReflect.Descriptor instead.
func (*NotifyDetails) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{0}
}
func (x *NotifyDetails) GetRecipients() []*NotifyDetails_Recipient {
if x != nil {
return x.Recipients
}
return nil
}
// Request to list changes based on a query.
type ListChangesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *ListChangesRequest) Reset() {
*x = ListChangesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListChangesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListChangesRequest) ProtoMessage() {}
func (x *ListChangesRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListChangesRequest.ProtoReflect.Descriptor instead.
func (*ListChangesRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{1}
}
func (x *ListChangesRequest) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
func (x *ListChangesRequest) GetOptions() []QueryOption {
if x != nil {
return x.Options
}
return nil
}
func (x *ListChangesRequest) GetLimit() int64 {
if x != nil {
return x.Limit
}
return 0
}
func (x *ListChangesRequest) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
// A list of changes that matched the query.
type ListChangesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *ListChangesResponse) Reset() {
*x = ListChangesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListChangesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListChangesResponse) ProtoMessage() {}
func (x *ListChangesResponse) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListChangesResponse.ProtoReflect.Descriptor instead.
func (*ListChangesResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{2}
}
func (x *ListChangesResponse) GetChanges() []*ChangeInfo {
if x != nil {
return x.Changes
}
return nil
}
func (x *ListChangesResponse) GetMoreChanges() bool {
if x != nil {
return x.MoreChanges
}
return false
}
// 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
type GetChangeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Change number.
Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,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"`
// What to include in the response.
Options []QueryOption `protobuf:"varint,2,rep,packed,name=options,proto3,enum=gerrit.QueryOption" json:"options,omitempty"`
}
func (x *GetChangeRequest) Reset() {
*x = GetChangeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetChangeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetChangeRequest) ProtoMessage() {}
func (x *GetChangeRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetChangeRequest.ProtoReflect.Descriptor instead.
func (*GetChangeRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{3}
}
func (x *GetChangeRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *GetChangeRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *GetChangeRequest) GetOptions() []QueryOption {
if x != nil {
return x.Options
}
return nil
}
// Information about an account.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-info
type AccountInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *AccountInfo) Reset() {
*x = AccountInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccountInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccountInfo) ProtoMessage() {}
func (x *AccountInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.
func (*AccountInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{4}
}
func (x *AccountInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AccountInfo) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *AccountInfo) GetSecondaryEmails() []string {
if x != nil {
return x.SecondaryEmails
}
return nil
}
func (x *AccountInfo) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *AccountInfo) GetAccountId() int64 {
if x != nil {
return x.AccountId
}
return 0
}
// Information about a change.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-info
//
// Next tag: 17.
type ChangeInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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 `protobuf:"bytes,7,rep,name=revisions,proto3" json:"revisions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// A map of label names to LabelInfos.
//
// Only set if label info is requested.
Labels map[string]*LabelInfo `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// 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.
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"`
// 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"`
// 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"`
}
func (x *ChangeInfo) Reset() {
*x = ChangeInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChangeInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChangeInfo) ProtoMessage() {}
func (x *ChangeInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChangeInfo.ProtoReflect.Descriptor instead.
func (*ChangeInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{5}
}
func (x *ChangeInfo) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *ChangeInfo) GetOwner() *AccountInfo {
if x != nil {
return x.Owner
}
return nil
}
func (x *ChangeInfo) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *ChangeInfo) GetRef() string {
if x != nil {
return x.Ref
}
return ""
}
func (x *ChangeInfo) GetStatus() ChangeStatus {
if x != nil {
return x.Status
}
return ChangeStatus_CHANGE_STATUS_INVALID
}
func (x *ChangeInfo) GetCurrentRevision() string {
if x != nil {
return x.CurrentRevision
}
return ""
}
func (x *ChangeInfo) GetRevisions() map[string]*RevisionInfo {
if x != nil {
return x.Revisions
}
return nil
}
func (x *ChangeInfo) GetLabels() map[string]*LabelInfo {
if x != nil {
return x.Labels
}
return nil
}
func (x *ChangeInfo) GetMessages() []*ChangeMessageInfo {
if x != nil {
return x.Messages
}
return nil
}
func (x *ChangeInfo) GetRequirements() []*Requirement {
if x != nil {
return x.Requirements
}
return nil
}
func (x *ChangeInfo) GetSubmittable() bool {
if x != nil {
return x.Submittable
}
return false
}
func (x *ChangeInfo) GetIsPrivate() bool {
if x != nil {
return x.IsPrivate
}
return false
}
func (x *ChangeInfo) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *ChangeInfo) GetUpdated() *timestamppb.Timestamp {
if x != nil {
return x.Updated
}
return nil
}
func (x *ChangeInfo) GetRevertOf() int64 {
if x != nil {
return x.RevertOf
}
return 0
}
func (x *ChangeInfo) GetCherryPickOfChange() int64 {
if x != nil {
return x.CherryPickOfChange
}
return 0
}
// Information about a patch set.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revision-info
type RevisionInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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 `protobuf:"bytes,6,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *RevisionInfo) Reset() {
*x = RevisionInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RevisionInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RevisionInfo) ProtoMessage() {}
func (x *RevisionInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RevisionInfo.ProtoReflect.Descriptor instead.
func (*RevisionInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{6}
}
func (x *RevisionInfo) GetKind() RevisionInfo_Kind {
if x != nil {
return x.Kind
}
return RevisionInfo_KIND_INVALID
}
func (x *RevisionInfo) GetNumber() int32 {
if x != nil {
return x.Number
}
return 0
}
func (x *RevisionInfo) GetUploader() *AccountInfo {
if x != nil {
return x.Uploader
}
return nil
}
func (x *RevisionInfo) GetRef() string {
if x != nil {
return x.Ref
}
return ""
}
func (x *RevisionInfo) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *RevisionInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *RevisionInfo) GetCommit() *CommitInfo {
if x != nil {
return x.Commit
}
return nil
}
func (x *RevisionInfo) GetFiles() map[string]*FileInfo {
if x != nil {
return x.Files
}
return nil
}
// The CommitInfo entity contains information about a commit.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#commit-info
type CommitInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"` // TODO(tandrii): add other fields when necessary.
}
func (x *CommitInfo) Reset() {
*x = CommitInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CommitInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CommitInfo) ProtoMessage() {}
func (x *CommitInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CommitInfo.ProtoReflect.Descriptor instead.
func (*CommitInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{7}
}
func (x *CommitInfo) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *CommitInfo) GetParents() []*CommitInfo_Parent {
if x != nil {
return x.Parents
}
return nil
}
func (x *CommitInfo) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
// Information about a Label.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#label-info
type LabelInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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 `protobuf:"bytes,10,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *LabelInfo) Reset() {
*x = LabelInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LabelInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LabelInfo) ProtoMessage() {}
func (x *LabelInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LabelInfo.ProtoReflect.Descriptor instead.
func (*LabelInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{8}
}
func (x *LabelInfo) GetOptional() bool {
if x != nil {
return x.Optional
}
return false
}
func (x *LabelInfo) GetApproved() *AccountInfo {
if x != nil {
return x.Approved
}
return nil
}
func (x *LabelInfo) GetRejected() *AccountInfo {
if x != nil {
return x.Rejected
}
return nil
}
func (x *LabelInfo) GetRecommended() *AccountInfo {
if x != nil {
return x.Recommended
}
return nil
}
func (x *LabelInfo) GetDisliked() *AccountInfo {
if x != nil {
return x.Disliked
}
return nil
}
func (x *LabelInfo) GetBlocking() bool {
if x != nil {
return x.Blocking
}
return false
}
func (x *LabelInfo) GetValue() int32 {
if x != nil {
return x.Value
}
return 0
}
func (x *LabelInfo) GetDefaultValue() int32 {
if x != nil {
return x.DefaultValue
}
return 0
}
func (x *LabelInfo) GetAll() []*ApprovalInfo {
if x != nil {
return x.All
}
return nil
}
func (x *LabelInfo) GetValues() map[int32]string {
if x != nil {
return x.Values
}
return nil
}
// 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
type ApprovalInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *ApprovalInfo) Reset() {
*x = ApprovalInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ApprovalInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApprovalInfo) ProtoMessage() {}
func (x *ApprovalInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApprovalInfo.ProtoReflect.Descriptor instead.
func (*ApprovalInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{9}
}
func (x *ApprovalInfo) GetUser() *AccountInfo {
if x != nil {
return x.User
}
return nil
}
func (x *ApprovalInfo) GetValue() int32 {
if x != nil {
return x.Value
}
return 0
}
func (x *ApprovalInfo) GetPermittedVotingRange() *VotingRangeInfo {
if x != nil {
return x.PermittedVotingRange
}
return nil
}
func (x *ApprovalInfo) GetDate() *timestamppb.Timestamp {
if x != nil {
return x.Date
}
return nil
}
func (x *ApprovalInfo) GetTag() string {
if x != nil {
return x.Tag
}
return ""
}
func (x *ApprovalInfo) GetPostSubmit() bool {
if x != nil {
return x.PostSubmit
}
return false
}
// 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
type VotingRangeInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *VotingRangeInfo) Reset() {
*x = VotingRangeInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VotingRangeInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VotingRangeInfo) ProtoMessage() {}
func (x *VotingRangeInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VotingRangeInfo.ProtoReflect.Descriptor instead.
func (*VotingRangeInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{10}
}
func (x *VotingRangeInfo) GetMin() int32 {
if x != nil {
return x.Min
}
return 0
}
func (x *VotingRangeInfo) GetMax() int32 {
if x != nil {
return x.Max
}
return 0
}
// Information about a message attached to change.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-message-info
type ChangeMessageInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *ChangeMessageInfo) Reset() {
*x = ChangeMessageInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChangeMessageInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChangeMessageInfo) ProtoMessage() {}
func (x *ChangeMessageInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChangeMessageInfo.ProtoReflect.Descriptor instead.
func (*ChangeMessageInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{11}
}
func (x *ChangeMessageInfo) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *ChangeMessageInfo) GetAuthor() *AccountInfo {
if x != nil {
return x.Author
}
return nil
}
func (x *ChangeMessageInfo) GetRealAuthor() *AccountInfo {
if x != nil {
return x.RealAuthor
}
return nil
}
func (x *ChangeMessageInfo) GetDate() *timestamppb.Timestamp {
if x != nil {
return x.Date
}
return nil
}
func (x *ChangeMessageInfo) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
// 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
type Requirement struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
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"`
}
func (x *Requirement) Reset() {
*x = Requirement{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Requirement) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Requirement) ProtoMessage() {}
func (x *Requirement) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Requirement.ProtoReflect.Descriptor instead.
func (*Requirement) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{12}
}
func (x *Requirement) GetStatus() Requirement_Status {
if x != nil {
return x.Status
}
return Requirement_REQUIREMENT_STATUS_UNSPECIFIED
}
func (x *Requirement) GetFallbackText() string {
if x != nil {
return x.FallbackText
}
return ""
}
func (x *Requirement) GetType() string {
if x != nil {
return x.Type
}
return ""
}
// Information about a file in a patch set.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#file-info
type FileInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *FileInfo) Reset() {
*x = FileInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FileInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileInfo) ProtoMessage() {}
func (x *FileInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.
func (*FileInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{13}
}
func (x *FileInfo) GetStatus() FileInfo_Status {
if x != nil {
return x.Status
}
return FileInfo_M
}
func (x *FileInfo) GetBinary() bool {
if x != nil {
return x.Binary
}
return false
}
func (x *FileInfo) GetOldPath() string {
if x != nil {
return x.OldPath
}
return ""
}
func (x *FileInfo) GetLinesInserted() int32 {
if x != nil {
return x.LinesInserted
}
return 0
}
func (x *FileInfo) GetLinesDeleted() int32 {
if x != nil {
return x.LinesDeleted
}
return 0
}
func (x *FileInfo) GetSizeDelta() int64 {
if x != nil {
return x.SizeDelta
}
return 0
}
func (x *FileInfo) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
// Information for creating a new change.
//
// Fields are a subset of:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-input
type CreateChangeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
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"`
}
func (x *CreateChangeRequest) Reset() {
*x = CreateChangeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateChangeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateChangeRequest) ProtoMessage() {}
func (x *CreateChangeRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateChangeRequest.ProtoReflect.Descriptor instead.
func (*CreateChangeRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{14}
}
func (x *CreateChangeRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *CreateChangeRequest) GetRef() string {
if x != nil {
return x.Ref
}
return ""
}
func (x *CreateChangeRequest) GetSubject() string {
if x != nil {
return x.Subject
}
return ""
}
func (x *CreateChangeRequest) GetBaseCommit() string {
if x != nil {
return x.BaseCommit
}
return ""
}
// 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
type SubmitChangeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *SubmitChangeRequest) Reset() {
*x = SubmitChangeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubmitChangeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubmitChangeRequest) ProtoMessage() {}
func (x *SubmitChangeRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SubmitChangeRequest.ProtoReflect.Descriptor instead.
func (*SubmitChangeRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{15}
}
func (x *SubmitChangeRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *SubmitChangeRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
// 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
type ChangeEditFileContentRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *ChangeEditFileContentRequest) Reset() {
*x = ChangeEditFileContentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChangeEditFileContentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChangeEditFileContentRequest) ProtoMessage() {}
func (x *ChangeEditFileContentRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChangeEditFileContentRequest.ProtoReflect.Descriptor instead.
func (*ChangeEditFileContentRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{16}
}
func (x *ChangeEditFileContentRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *ChangeEditFileContentRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *ChangeEditFileContentRequest) GetFilePath() string {
if x != nil {
return x.FilePath
}
return ""
}
func (x *ChangeEditFileContentRequest) GetContent() []byte {
if x != nil {
return x.Content
}
return nil
}
// 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
type DeleteEditFileContentRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *DeleteEditFileContentRequest) Reset() {
*x = DeleteEditFileContentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteEditFileContentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteEditFileContentRequest) ProtoMessage() {}
func (x *DeleteEditFileContentRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteEditFileContentRequest.ProtoReflect.Descriptor instead.
func (*DeleteEditFileContentRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{17}
}
func (x *DeleteEditFileContentRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *DeleteEditFileContentRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *DeleteEditFileContentRequest) GetFilePath() string {
if x != nil {
return x.FilePath
}
return ""
}
// 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
type ChangeEditPublishRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *ChangeEditPublishRequest) Reset() {
*x = ChangeEditPublishRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChangeEditPublishRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChangeEditPublishRequest) ProtoMessage() {}
func (x *ChangeEditPublishRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[18]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChangeEditPublishRequest.ProtoReflect.Descriptor instead.
func (*ChangeEditPublishRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{18}
}
func (x *ChangeEditPublishRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *ChangeEditPublishRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
// 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
type AbandonChangeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *AbandonChangeRequest) Reset() {
*x = AbandonChangeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbandonChangeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbandonChangeRequest) ProtoMessage() {}
func (x *AbandonChangeRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[19]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbandonChangeRequest.ProtoReflect.Descriptor instead.
func (*AbandonChangeRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{19}
}
func (x *AbandonChangeRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *AbandonChangeRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *AbandonChangeRequest) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
// 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
type AddReviewerRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *AddReviewerRequest) Reset() {
*x = AddReviewerRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AddReviewerRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddReviewerRequest) ProtoMessage() {}
func (x *AddReviewerRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddReviewerRequest.ProtoReflect.Descriptor instead.
func (*AddReviewerRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{20}
}
func (x *AddReviewerRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *AddReviewerRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *AddReviewerRequest) GetReviewer() string {
if x != nil {
return x.Reviewer
}
return ""
}
func (x *AddReviewerRequest) GetState() AddReviewerRequest_State {
if x != nil {
return x.State
}
return AddReviewerRequest_ADD_REVIEWER_STATE_UNSPECIFIED
}
func (x *AddReviewerRequest) GetConfirmed() bool {
if x != nil {
return x.Confirmed
}
return false
}
func (x *AddReviewerRequest) GetNotify() Notify {
if x != nil {
return x.Notify
}
return Notify_NOTIFY_UNSPECIFIED
}
// 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
type ReviewerInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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 `protobuf:"bytes,2,rep,name=approvals,proto3" json:"approvals,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
}
func (x *ReviewerInfo) Reset() {
*x = ReviewerInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReviewerInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReviewerInfo) ProtoMessage() {}
func (x *ReviewerInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[21]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReviewerInfo.ProtoReflect.Descriptor instead.
func (*ReviewerInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{21}
}
func (x *ReviewerInfo) GetAccount() *AccountInfo {
if x != nil {
return x.Account
}
return nil
}
func (x *ReviewerInfo) GetApprovals() map[string]int32 {
if x != nil {
return x.Approvals
}
return nil
}
// 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
type AddReviewerResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *AddReviewerResult) Reset() {
*x = AddReviewerResult{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AddReviewerResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddReviewerResult) ProtoMessage() {}
func (x *AddReviewerResult) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[22]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddReviewerResult.ProtoReflect.Descriptor instead.
func (*AddReviewerResult) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{22}
}
func (x *AddReviewerResult) GetInput() string {
if x != nil {
return x.Input
}
return ""
}
func (x *AddReviewerResult) GetReviewers() []*ReviewerInfo {
if x != nil {
return x.Reviewers
}
return nil
}
func (x *AddReviewerResult) GetCcs() []*ReviewerInfo {
if x != nil {
return x.Ccs
}
return nil
}
func (x *AddReviewerResult) GetError() string {
if x != nil {
return x.Error
}
return ""
}
func (x *AddReviewerResult) GetConfirm() bool {
if x != nil {
return x.Confirm
}
return false
}
type DeleteReviewerRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *DeleteReviewerRequest) Reset() {
*x = DeleteReviewerRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteReviewerRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteReviewerRequest) ProtoMessage() {}
func (x *DeleteReviewerRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[23]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteReviewerRequest.ProtoReflect.Descriptor instead.
func (*DeleteReviewerRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{23}
}
func (x *DeleteReviewerRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *DeleteReviewerRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *DeleteReviewerRequest) GetAccountId() string {
if x != nil {
return x.AccountId
}
return ""
}
// 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
type SetReviewRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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 `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// 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"`
}
func (x *SetReviewRequest) Reset() {
*x = SetReviewRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetReviewRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetReviewRequest) ProtoMessage() {}
func (x *SetReviewRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[24]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetReviewRequest.ProtoReflect.Descriptor instead.
func (*SetReviewRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{24}
}
func (x *SetReviewRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *SetReviewRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *SetReviewRequest) GetRevisionId() string {
if x != nil {
return x.RevisionId
}
return ""
}
func (x *SetReviewRequest) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *SetReviewRequest) GetLabels() map[string]int32 {
if x != nil {
return x.Labels
}
return nil
}
func (x *SetReviewRequest) GetTag() string {
if x != nil {
return x.Tag
}
return ""
}
func (x *SetReviewRequest) GetNotify() Notify {
if x != nil {
return x.Notify
}
return Notify_NOTIFY_UNSPECIFIED
}
func (x *SetReviewRequest) GetNotifyDetails() *NotifyDetails {
if x != nil {
return x.NotifyDetails
}
return nil
}
func (x *SetReviewRequest) GetOnBehalfOf() int64 {
if x != nil {
return x.OnBehalfOf
}
return 0
}
// Information returned by a SetReview RPC.
//
// Fields are a subset of:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#review-result
type ReviewResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Map of labels to values after the review was posted. Null if any reviewer
// additions were rejected.
Labels map[string]int32 `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
}
func (x *ReviewResult) Reset() {
*x = ReviewResult{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReviewResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReviewResult) ProtoMessage() {}
func (x *ReviewResult) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[25]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReviewResult.ProtoReflect.Descriptor instead.
func (*ReviewResult) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{25}
}
func (x *ReviewResult) GetLabels() map[string]int32 {
if x != nil {
return x.Labels
}
return nil
}
// 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
type AttentionSetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
// 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,3,opt,name=user,proto3" json:"user,omitempty"`
// The justification for adding/removing the user.
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
// Defines who should be notified after change is created, defaults to OWNER.
Notify Notify `protobuf:"varint,5,opt,name=notify,proto3,enum=gerrit.Notify" json:"notify,omitempty"`
}
func (x *AttentionSetRequest) Reset() {
*x = AttentionSetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AttentionSetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AttentionSetRequest) ProtoMessage() {}
func (x *AttentionSetRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[26]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AttentionSetRequest.ProtoReflect.Descriptor instead.
func (*AttentionSetRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{26}
}
func (x *AttentionSetRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *AttentionSetRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *AttentionSetRequest) GetUser() string {
if x != nil {
return x.User
}
return ""
}
func (x *AttentionSetRequest) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
func (x *AttentionSetRequest) GetNotify() Notify {
if x != nil {
return x.Notify
}
return Notify_NOTIFY_UNSPECIFIED
}
type GetMergeableRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *GetMergeableRequest) Reset() {
*x = GetMergeableRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetMergeableRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMergeableRequest) ProtoMessage() {}
func (x *GetMergeableRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[27]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMergeableRequest.ProtoReflect.Descriptor instead.
func (*GetMergeableRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{27}
}
func (x *GetMergeableRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *GetMergeableRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *GetMergeableRequest) GetRevisionId() string {
if x != nil {
return x.RevisionId
}
return ""
}
func (x *GetMergeableRequest) GetSource() string {
if x != nil {
return x.Source
}
return ""
}
func (x *GetMergeableRequest) GetStrategy() MergeableStrategy {
if x != nil {
return x.Strategy
}
return MergeableStrategy_MERGEABLE_STRATEGY_UNSPECIFIED
}
// Contains information about the mergeability of a change.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#mergeable-info
type MergeableInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Submit type used for this change.
SubmitType MergeableInfo_SubmitType `protobuf:"varint,1,opt,name=submit_type,json=submitType,proto3,enum=gerrit.MergeableInfo_SubmitType" json:"submit_type,omitempty"`
// 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"`
}
func (x *MergeableInfo) Reset() {
*x = MergeableInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MergeableInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MergeableInfo) ProtoMessage() {}
func (x *MergeableInfo) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[28]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MergeableInfo.ProtoReflect.Descriptor instead.
func (*MergeableInfo) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{28}
}
func (x *MergeableInfo) GetSubmitType() MergeableInfo_SubmitType {
if x != nil {
return x.SubmitType
}
return MergeableInfo_SUBMIT_TYPE_UNSPECIFIED
}
func (x *MergeableInfo) GetStrategy() MergeableStrategy {
if x != nil {
return x.Strategy
}
return MergeableStrategy_MERGEABLE_STRATEGY_UNSPECIFIED
}
func (x *MergeableInfo) GetMergeable() bool {
if x != nil {
return x.Mergeable
}
return false
}
func (x *MergeableInfo) GetCommitMerged() bool {
if x != nil {
return x.CommitMerged
}
return false
}
func (x *MergeableInfo) GetContentMerged() bool {
if x != nil {
return x.ContentMerged
}
return false
}
func (x *MergeableInfo) GetConflicts() []string {
if x != nil {
return x.Conflicts
}
return nil
}
func (x *MergeableInfo) GetMergeableInto() []string {
if x != nil {
return x.MergeableInto
}
return nil
}
// Information for requesting the files in a change.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files
type ListFilesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *ListFilesRequest) Reset() {
*x = ListFilesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListFilesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListFilesRequest) ProtoMessage() {}
func (x *ListFilesRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[29]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.
func (*ListFilesRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{29}
}
func (x *ListFilesRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *ListFilesRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *ListFilesRequest) GetRevisionId() string {
if x != nil {
return x.RevisionId
}
return ""
}
func (x *ListFilesRequest) GetSubstringQuery() string {
if x != nil {
return x.SubstringQuery
}
return ""
}
func (x *ListFilesRequest) GetParent() int64 {
if x != nil {
return x.Parent
}
return 0
}
func (x *ListFilesRequest) GetBase() string {
if x != nil {
return x.Base
}
return ""
}
// Information about the files in a change.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files
type ListFilesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A map of file paths to FileInfos.
Files map[string]*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *ListFilesResponse) Reset() {
*x = ListFilesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListFilesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListFilesResponse) ProtoMessage() {}
func (x *ListFilesResponse) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[30]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.
func (*ListFilesResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{30}
}
func (x *ListFilesResponse) GetFiles() map[string]*FileInfo {
if x != nil {
return x.Files
}
return nil
}
// 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
type GetRelatedChangesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *GetRelatedChangesRequest) Reset() {
*x = GetRelatedChangesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRelatedChangesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRelatedChangesRequest) ProtoMessage() {}
func (x *GetRelatedChangesRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[31]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRelatedChangesRequest.ProtoReflect.Descriptor instead.
func (*GetRelatedChangesRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{31}
}
func (x *GetRelatedChangesRequest) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *GetRelatedChangesRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *GetRelatedChangesRequest) GetRevisionId() string {
if x != nil {
return x.RevisionId
}
return ""
}
// 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
type GetRelatedChangesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *GetRelatedChangesResponse) Reset() {
*x = GetRelatedChangesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRelatedChangesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRelatedChangesResponse) ProtoMessage() {}
func (x *GetRelatedChangesResponse) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[32]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRelatedChangesResponse.ProtoReflect.Descriptor instead.
func (*GetRelatedChangesResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{32}
}
func (x *GetRelatedChangesResponse) GetChanges() []*GetRelatedChangesResponse_ChangeAndCommit {
if x != nil {
return x.Changes
}
return nil
}
// Information for requesting the projects on a host.
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/cmd-ls-projects.html
type ListProjectsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *ListProjectsRequest) Reset() {
*x = ListProjectsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListProjectsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListProjectsRequest) ProtoMessage() {}
func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_msgTypes[33]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.
func (*ListProjectsRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_gerrit_gerrit_proto_rawDescGZIP(), []int{33}
}
func (x *ListProjectsRequest) GetRefs() []string {
if x != nil {
return x.Refs
}
return nil
}
// Describes a link to an external site
//
// Source of truth:
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#web-link-info
type WebLinkInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields