luci: go.chromium.org/luci/common/proto/gerrit Index | Files

package gerrit

import "go.chromium.org/luci/common/proto/gerrit"

Package gerrit contains Gerrit service definition.

Package gerrit is a generated GoMock package.

Index

Package Files

const.go generate.go gerrit.mock.pb.go gerrit.pb.go pb.discovery.go validation.go

Constants

const (
    // AllRefs instructs the client to fetch all refs.
    AllRefs = "refs"
    // Branches instructs the client to fetch all branches.
    Branches = "refs/heads"
    // Tags instructs the client to fetch all tags.
    Tags = "refs/tags"
)

These constants are possible values for RefsRequest.RefsPath field. Not an exhaustive list.

Variables

var (
    QueryOption_name = map[int32]string{
        0:       "OPTION_UNSPECIFIED",
        1:       "LABELS",
        2:       "DETAILED_LABELS",
        4:       "CURRENT_REVISION",
        8:       "ALL_REVISIONS",
        16:      "CURRENT_COMMIT",
        32:      "ALL_COMMITS",
        64:      "CURRENT_FILES",
        128:     "ALL_FILES",
        256:     "DETAILED_ACCOUNTS",
        512:     "REVIEWER_UPDATES",
        1024:    "MESSAGES",
        2048:    "CURRENT_ACTIONS",
        4096:    "CHANGE_ACTIONS",
        8192:    "REVIEWED",
        16384:   "SKIP_MERGEABLE",
        32768:   "SUBMITTABLE",
        65536:   "WEB_LINKS",
        131072:  "CHECK",
        262144:  "COMMIT_FOOTERS",
        524288:  "PUSH_CERTIFICATES",
        1048576: "TRACKING_IDS",
        2097152: "DOWNLOAD_COMMANDS",
    }
    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,
    }
)

Enum value maps for QueryOption.

var (
    Notify_name = map[int32]string{
        0:  "NOTIFY_UNSPECIFIED",
        1:  "NOTIFY_NONE",
        2:  "NOTIFY_OWNER",
        3:  "NOTIFY_OWNER_REVIEWERS",
        4:  "NOTIFY_ALL",
    }
    Notify_value = map[string]int32{
        "NOTIFY_UNSPECIFIED":     0,
        "NOTIFY_NONE":            1,
        "NOTIFY_OWNER":           2,
        "NOTIFY_OWNER_REVIEWERS": 3,
        "NOTIFY_ALL":             4,
    }
)

Enum value maps for Notify.

var (
    MergeableStrategy_name = map[int32]string{
        0:  "MERGEABLE_STRATEGY_UNSPECIFIED",
        1:  "RECURSIVE",
        2:  "RESOLVE",
        3:  "SIMPLE_TWO_WAY_IN_CORE",
        4:  "OURS",
        5:  "THEIRS",
    }
    MergeableStrategy_value = map[string]int32{
        "MERGEABLE_STRATEGY_UNSPECIFIED": 0,
        "RECURSIVE":                      1,
        "RESOLVE":                        2,
        "SIMPLE_TWO_WAY_IN_CORE":         3,
        "OURS":                           4,
        "THEIRS":                         5,
    }
)

Enum value maps for MergeableStrategy.

var (
    ChangeInfo_Status_name = map[int32]string{
        0:  "STATUS_INVALID",
        1:  "NEW",
        2:  "MERGED",
        3:  "ABANDONED",
    }
    ChangeInfo_Status_value = map[string]int32{
        "STATUS_INVALID": 0,
        "NEW":            1,
        "MERGED":         2,
        "ABANDONED":      3,
    }
)

Enum value maps for ChangeInfo_Status.

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,
    }
)

Enum value maps for RevisionInfo_Kind.

var (
    FileInfo_Status_name = map[int32]string{
        0:  "M",
        1:  "A",
        2:  "D",
        3:  "R",
        4:  "C",
        5:  "W",
    }
    FileInfo_Status_value = map[string]int32{
        "M": 0,
        "A": 1,
        "D": 2,
        "R": 3,
        "C": 4,
        "W": 5,
    }
)

Enum value maps for FileInfo_Status.

var (
    AddReviewerRequest_State_name = map[int32]string{
        0:  "ADD_REVIEWER_STATE_UNSPECIFIED",
        1:  "ADD_REVIEWER_STATE_REVIEWER",
        2:  "ADD_REVIEWER_STATE_CC",
    }
    AddReviewerRequest_State_value = map[string]int32{
        "ADD_REVIEWER_STATE_UNSPECIFIED": 0,
        "ADD_REVIEWER_STATE_REVIEWER":    1,
        "ADD_REVIEWER_STATE_CC":          2,
    }
)

Enum value maps for AddReviewerRequest_State.

var (
    MergeableInfo_SubmitType_name = map[int32]string{
        0:  "SUBMIT_TYPE_UNSPECIFIED",
        1:  "MERGE_IF_NECESSARY",
        2:  "FAST_FORWARD_ONLY",
        3:  "REBASE_IF_NECESSARY",
        4:  "REBASE_ALWAYS",
        5:  "MERGE_ALWAYS",
        6:  "CHERRY_PICK",
    }
    MergeableInfo_SubmitType_value = map[string]int32{
        "SUBMIT_TYPE_UNSPECIFIED": 0,
        "MERGE_IF_NECESSARY":      1,
        "FAST_FORWARD_ONLY":       2,
        "REBASE_IF_NECESSARY":     3,
        "REBASE_ALWAYS":           4,
        "MERGE_ALWAYS":            5,
        "CHERRY_PICK":             6,
    }
)

Enum value maps for MergeableInfo_SubmitType.

var (
    ProjectInfo_State_name = map[int32]string{
        0:  "PROJECT_STATE_UNSPECIFIED",
        1:  "PROJECT_STATE_ACTIVE",
        2:  "PROJECT_STATE_READ_ONLY",
        3:  "PROJECT_STATE_HIDDEN",
    }
    ProjectInfo_State_value = map[string]int32{
        "PROJECT_STATE_UNSPECIFIED": 0,
        "PROJECT_STATE_ACTIVE":      1,
        "PROJECT_STATE_READ_ONLY":   2,
        "PROJECT_STATE_HIDDEN":      3,
    }
)

Enum value maps for ProjectInfo_State.

var File_go_chromium_org_luci_common_proto_gerrit_gerrit_proto protoreflect.FileDescriptor

func FileDescriptorSet Uses

func FileDescriptorSet() *descriptor.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterGerritServer Uses

func RegisterGerritServer(s prpc.Registrar, srv GerritServer)

type AbandonChangeRequest Uses

type AbandonChangeRequest struct {

    // The change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The project of this change. For example, "chromium/src".
    //
    // Optional, but recommended for better routing and faster RPC execution.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
    // contains filtered or unexported fields
}

Information for abandoning a change.

Fields are a subset of arguments from: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#abandon-change https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#abandon-input

func (*AbandonChangeRequest) Descriptor Uses

func (*AbandonChangeRequest) Descriptor() ([]byte, []int)

Deprecated: Use AbandonChangeRequest.ProtoReflect.Descriptor instead.

func (*AbandonChangeRequest) GetMessage Uses

func (x *AbandonChangeRequest) GetMessage() string

func (*AbandonChangeRequest) GetNumber Uses

func (x *AbandonChangeRequest) GetNumber() int64

func (*AbandonChangeRequest) GetProject Uses

func (x *AbandonChangeRequest) GetProject() string

func (*AbandonChangeRequest) ProtoMessage Uses

func (*AbandonChangeRequest) ProtoMessage()

func (*AbandonChangeRequest) ProtoReflect Uses

func (x *AbandonChangeRequest) ProtoReflect() protoreflect.Message

func (*AbandonChangeRequest) Reset Uses

func (x *AbandonChangeRequest) Reset()

func (*AbandonChangeRequest) String Uses

func (x *AbandonChangeRequest) String() string

type AccountInfo Uses

type AccountInfo struct {

    // The full name of the user.
    // Only set if detailed account information is requested.
    // See option DETAILED_ACCOUNTS for change queries
    // and option DETAILS for account queries.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The email address the user prefers to be contacted through.
    // Only set if detailed account information is requested.
    // See option DETAILED_ACCOUNTS for change queries
    // and options DETAILS and ALL_EMAILS for account queries.
    Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
    // A list of the secondary email addresses of the user.
    // Only set for account queries when the ALL_EMAILS option or the suggest
    // parameter is set. Secondary emails are only included if the calling user
    // has the Modify Account, and hence is allowed to see secondary emails of
    // other users.
    SecondaryEmails []string `protobuf:"bytes,3,rep,name=secondary_emails,json=secondaryEmails,proto3" json:"secondary_emails,omitempty"`
    // The username of the user.
    // Only set if detailed account information is requested.
    // See option DETAILED_ACCOUNTS for change queries
    // and option DETAILS for account queries.
    Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
    // The numeric ID of the account
    AccountId int64 `protobuf:"varint,5,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
    // contains filtered or unexported fields
}

Information about an account. Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-info

func (*AccountInfo) Descriptor Uses

func (*AccountInfo) Descriptor() ([]byte, []int)

Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.

func (*AccountInfo) GetAccountId Uses

func (x *AccountInfo) GetAccountId() int64

func (*AccountInfo) GetEmail Uses

func (x *AccountInfo) GetEmail() string

func (*AccountInfo) GetName Uses

func (x *AccountInfo) GetName() string

func (*AccountInfo) GetSecondaryEmails Uses

func (x *AccountInfo) GetSecondaryEmails() []string

func (*AccountInfo) GetUsername Uses

func (x *AccountInfo) GetUsername() string

func (*AccountInfo) ProtoMessage Uses

func (*AccountInfo) ProtoMessage()

func (*AccountInfo) ProtoReflect Uses

func (x *AccountInfo) ProtoReflect() protoreflect.Message

func (*AccountInfo) Reset Uses

func (x *AccountInfo) Reset()

func (*AccountInfo) String Uses

func (x *AccountInfo) String() string

type AddReviewerRequest Uses

type AddReviewerRequest struct {

    // The change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The project of this change. For example, "chromium/src".
    //
    // Optional, but recommended for better routing and faster RPC execution.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    // The ID of a single account or group to review the change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-id
    Reviewer string `protobuf:"bytes,3,opt,name=reviewer,proto3" json:"reviewer,omitempty"`
    // The state to add reviewer in, defaults to REVIEWER.
    State AddReviewerRequest_State `protobuf:"varint,4,opt,name=state,proto3,enum=gerrit.AddReviewerRequest_State" json:"state,omitempty"`
    // Whether adding the reviewer is confirmed.
    Confirmed bool `protobuf:"varint,5,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
    // Defines who should be notified after reviewer is added, defaults to ALL.
    Notify Notify `protobuf:"varint,6,opt,name=notify,proto3,enum=gerrit.Notify" json:"notify,omitempty"`
    // contains filtered or unexported fields
}

Information for adding a reviewer.

https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-reviewer https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#reviewer-input

func (*AddReviewerRequest) Descriptor Uses

func (*AddReviewerRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddReviewerRequest.ProtoReflect.Descriptor instead.

func (*AddReviewerRequest) GetConfirmed Uses

func (x *AddReviewerRequest) GetConfirmed() bool

func (*AddReviewerRequest) GetNotify Uses

func (x *AddReviewerRequest) GetNotify() Notify

func (*AddReviewerRequest) GetNumber Uses

func (x *AddReviewerRequest) GetNumber() int64

func (*AddReviewerRequest) GetProject Uses

func (x *AddReviewerRequest) GetProject() string

func (*AddReviewerRequest) GetReviewer Uses

func (x *AddReviewerRequest) GetReviewer() string

func (*AddReviewerRequest) GetState Uses

func (x *AddReviewerRequest) GetState() AddReviewerRequest_State

func (*AddReviewerRequest) ProtoMessage Uses

func (*AddReviewerRequest) ProtoMessage()

func (*AddReviewerRequest) ProtoReflect Uses

func (x *AddReviewerRequest) ProtoReflect() protoreflect.Message

func (*AddReviewerRequest) Reset Uses

func (x *AddReviewerRequest) Reset()

func (*AddReviewerRequest) String Uses

func (x *AddReviewerRequest) String() string

type AddReviewerRequest_State Uses

type AddReviewerRequest_State int32
const (
    AddReviewerRequest_ADD_REVIEWER_STATE_UNSPECIFIED AddReviewerRequest_State = 0
    AddReviewerRequest_ADD_REVIEWER_STATE_REVIEWER    AddReviewerRequest_State = 1
    AddReviewerRequest_ADD_REVIEWER_STATE_CC          AddReviewerRequest_State = 2
)

func (AddReviewerRequest_State) Descriptor Uses

func (AddReviewerRequest_State) Descriptor() protoreflect.EnumDescriptor

func (AddReviewerRequest_State) Enum Uses

func (x AddReviewerRequest_State) Enum() *AddReviewerRequest_State

func (AddReviewerRequest_State) EnumDescriptor Uses

func (AddReviewerRequest_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use AddReviewerRequest_State.Descriptor instead.

func (AddReviewerRequest_State) Number Uses

func (x AddReviewerRequest_State) Number() protoreflect.EnumNumber

func (AddReviewerRequest_State) String Uses

func (x AddReviewerRequest_State) String() string

func (AddReviewerRequest_State) Type Uses

func (AddReviewerRequest_State) Type() protoreflect.EnumType

type AddReviewerResult Uses

type AddReviewerResult struct {

    // The Account ID from the AddReviewerRequest.reviewer field
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-id
    Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
    // The newly added reviewers
    // If a group is added as a reviewer (or cc)
    // all group members are added.
    Reviewers []*ReviewerInfo `protobuf:"bytes,2,rep,name=reviewers,proto3" json:"reviewers,omitempty"`
    // The newly cc'd accounts
    Ccs []*ReviewerInfo `protobuf:"bytes,3,rep,name=ccs,proto3" json:"ccs,omitempty"`
    // The error message
    Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
    // Whether adding the reviewer requires confirmation
    Confirm bool `protobuf:"varint,5,opt,name=confirm,proto3" json:"confirm,omitempty"`
    // contains filtered or unexported fields
}

The result of adding a reviewer to a change

https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-reviewer https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-reviewer-result

func (*AddReviewerResult) Descriptor Uses

func (*AddReviewerResult) Descriptor() ([]byte, []int)

Deprecated: Use AddReviewerResult.ProtoReflect.Descriptor instead.

func (*AddReviewerResult) GetCcs Uses

func (x *AddReviewerResult) GetCcs() []*ReviewerInfo

func (*AddReviewerResult) GetConfirm Uses

func (x *AddReviewerResult) GetConfirm() bool

func (*AddReviewerResult) GetError Uses

func (x *AddReviewerResult) GetError() string

func (*AddReviewerResult) GetInput Uses

func (x *AddReviewerResult) GetInput() string

func (*AddReviewerResult) GetReviewers Uses

func (x *AddReviewerResult) GetReviewers() []*ReviewerInfo

func (*AddReviewerResult) ProtoMessage Uses

func (*AddReviewerResult) ProtoMessage()

func (*AddReviewerResult) ProtoReflect Uses

func (x *AddReviewerResult) ProtoReflect() protoreflect.Message

func (*AddReviewerResult) Reset Uses

func (x *AddReviewerResult) Reset()

func (*AddReviewerResult) String Uses

func (x *AddReviewerResult) String() string

type AttentionSetRequest Uses

type AttentionSetRequest struct {

    // The change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The project of this change. For example, "chromium/src".
    //
    // Optional, but recommended for better routing and faster RPC execution.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    // A unique identifier for an account.
    // See
    // 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"`
    // contains filtered or unexported fields
}

Information to add/remove a user from the attention set of a change. See https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#attention-set-input

func (*AttentionSetRequest) Descriptor Uses

func (*AttentionSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use AttentionSetRequest.ProtoReflect.Descriptor instead.

func (*AttentionSetRequest) GetNotify Uses

func (x *AttentionSetRequest) GetNotify() Notify

func (*AttentionSetRequest) GetNumber Uses

func (x *AttentionSetRequest) GetNumber() int64

func (*AttentionSetRequest) GetProject Uses

func (x *AttentionSetRequest) GetProject() string

func (*AttentionSetRequest) GetReason Uses

func (x *AttentionSetRequest) GetReason() string

func (*AttentionSetRequest) GetUser Uses

func (x *AttentionSetRequest) GetUser() string

func (*AttentionSetRequest) ProtoMessage Uses

func (*AttentionSetRequest) ProtoMessage()

func (*AttentionSetRequest) ProtoReflect Uses

func (x *AttentionSetRequest) ProtoReflect() protoreflect.Message

func (*AttentionSetRequest) Reset Uses

func (x *AttentionSetRequest) Reset()

func (*AttentionSetRequest) String Uses

func (x *AttentionSetRequest) String() string

type ChangeEditFileContentRequest Uses

type ChangeEditFileContentRequest struct {

    // The change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The project of this change. For example, "chromium/src".
    //
    // Optional, but recommended for better routing and faster RPC execution.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    // Path to the file to edit inside the project.
    FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
    // New content of the file. Overwrites existing contents entirely.
    Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
    // contains filtered or unexported fields
}

Information for changing contents of single file in a change edit.

Fields encode the path arguments of https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#put-edit-file

func (*ChangeEditFileContentRequest) Descriptor Uses

func (*ChangeEditFileContentRequest) Descriptor() ([]byte, []int)

Deprecated: Use ChangeEditFileContentRequest.ProtoReflect.Descriptor instead.

func (*ChangeEditFileContentRequest) GetContent Uses

func (x *ChangeEditFileContentRequest) GetContent() []byte

func (*ChangeEditFileContentRequest) GetFilePath Uses

func (x *ChangeEditFileContentRequest) GetFilePath() string

func (*ChangeEditFileContentRequest) GetNumber Uses

func (x *ChangeEditFileContentRequest) GetNumber() int64

func (*ChangeEditFileContentRequest) GetProject Uses

func (x *ChangeEditFileContentRequest) GetProject() string

func (*ChangeEditFileContentRequest) ProtoMessage Uses

func (*ChangeEditFileContentRequest) ProtoMessage()

func (*ChangeEditFileContentRequest) ProtoReflect Uses

func (x *ChangeEditFileContentRequest) ProtoReflect() protoreflect.Message

func (*ChangeEditFileContentRequest) Reset Uses

func (x *ChangeEditFileContentRequest) Reset()

func (*ChangeEditFileContentRequest) String Uses

func (x *ChangeEditFileContentRequest) String() string

type ChangeEditPublishRequest Uses

type ChangeEditPublishRequest struct {

    // The change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The project of this change. For example, "chromium/src".
    //
    // Optional, but recommended for better routing and faster RPC execution.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    // contains filtered or unexported fields
}

Information for publishing a change edit.

This is a placeholder to support the arguments from: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-edit https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-change-edit-input

func (*ChangeEditPublishRequest) Descriptor Uses

func (*ChangeEditPublishRequest) Descriptor() ([]byte, []int)

Deprecated: Use ChangeEditPublishRequest.ProtoReflect.Descriptor instead.

func (*ChangeEditPublishRequest) GetNumber Uses

func (x *ChangeEditPublishRequest) GetNumber() int64

func (*ChangeEditPublishRequest) GetProject Uses

func (x *ChangeEditPublishRequest) GetProject() string

func (*ChangeEditPublishRequest) ProtoMessage Uses

func (*ChangeEditPublishRequest) ProtoMessage()

func (*ChangeEditPublishRequest) ProtoReflect Uses

func (x *ChangeEditPublishRequest) ProtoReflect() protoreflect.Message

func (*ChangeEditPublishRequest) Reset Uses

func (x *ChangeEditPublishRequest) Reset()

func (*ChangeEditPublishRequest) String Uses

func (x *ChangeEditPublishRequest) String() string

type ChangeInfo Uses

type ChangeInfo struct {

    // The change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The owner of the change.
    Owner *AccountInfo `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
    // The project of this change. For example, "chromium/src".
    Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
    // Ref that this change targets, e.g.: refs/heads/master
    //
    // Note that the gerrit API may return short branch name (master instead of
    // refs/heads/master) but we convert it to a ref for consistency across the
    // API.
    Ref    string            `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
    Status ChangeInfo_Status `protobuf:"varint,5,opt,name=status,proto3,enum=gerrit.ChangeInfo_Status" 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"`
    // contains filtered or unexported fields
}

Information about a change. Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-info

func (*ChangeInfo) Descriptor Uses

func (*ChangeInfo) Descriptor() ([]byte, []int)

Deprecated: Use ChangeInfo.ProtoReflect.Descriptor instead.

func (*ChangeInfo) GetCurrentRevision Uses

func (x *ChangeInfo) GetCurrentRevision() string

func (*ChangeInfo) GetLabels Uses

func (x *ChangeInfo) GetLabels() map[string]*LabelInfo

func (*ChangeInfo) GetMessages Uses

func (x *ChangeInfo) GetMessages() []*ChangeMessageInfo

func (*ChangeInfo) GetNumber Uses

func (x *ChangeInfo) GetNumber() int64

func (*ChangeInfo) GetOwner Uses

func (x *ChangeInfo) GetOwner() *AccountInfo

func (*ChangeInfo) GetProject Uses

func (x *ChangeInfo) GetProject() string

func (*ChangeInfo) GetRef Uses

func (x *ChangeInfo) GetRef() string

func (*ChangeInfo) GetRevisions Uses

func (x *ChangeInfo) GetRevisions() map[string]*RevisionInfo

func (*ChangeInfo) GetStatus Uses

func (x *ChangeInfo) GetStatus() ChangeInfo_Status

func (*ChangeInfo) ProtoMessage Uses

func (*ChangeInfo) ProtoMessage()

func (*ChangeInfo) ProtoReflect Uses

func (x *ChangeInfo) ProtoReflect() protoreflect.Message

func (*ChangeInfo) Reset Uses

func (x *ChangeInfo) Reset()

func (*ChangeInfo) String Uses

func (x *ChangeInfo) String() string

type ChangeInfo_Status Uses

type ChangeInfo_Status int32
const (
    ChangeInfo_STATUS_INVALID ChangeInfo_Status = 0
    ChangeInfo_NEW            ChangeInfo_Status = 1
    ChangeInfo_MERGED         ChangeInfo_Status = 2
    ChangeInfo_ABANDONED      ChangeInfo_Status = 3
)

func (ChangeInfo_Status) Descriptor Uses

func (ChangeInfo_Status) Descriptor() protoreflect.EnumDescriptor

func (ChangeInfo_Status) Enum Uses

func (x ChangeInfo_Status) Enum() *ChangeInfo_Status

func (ChangeInfo_Status) EnumDescriptor Uses

func (ChangeInfo_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChangeInfo_Status.Descriptor instead.

func (ChangeInfo_Status) Number Uses

func (x ChangeInfo_Status) Number() protoreflect.EnumNumber

func (ChangeInfo_Status) String Uses

func (x ChangeInfo_Status) String() string

func (ChangeInfo_Status) Type Uses

func (ChangeInfo_Status) Type() protoreflect.EnumType

type ChangeMessageInfo Uses

type ChangeMessageInfo struct {

    // The ID of the message
    Id  string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    // Author of the message.
    //
    // Unset if written by the Gerrit system.
    Author *AccountInfo `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
    // Real author of the message.
    //
    // Set if the message was posted on behalf of another user.
    RealAuthor *AccountInfo `protobuf:"bytes,3,opt,name=real_author,json=realAuthor,proto3" json:"real_author,omitempty"`
    // The timestamp this message was posted.
    Date *timestamp.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"`
    // contains filtered or unexported fields
}

Information about a message attached to change. Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-message-info

func (*ChangeMessageInfo) Descriptor Uses

func (*ChangeMessageInfo) Descriptor() ([]byte, []int)

Deprecated: Use ChangeMessageInfo.ProtoReflect.Descriptor instead.

func (*ChangeMessageInfo) GetAuthor Uses

func (x *ChangeMessageInfo) GetAuthor() *AccountInfo

func (*ChangeMessageInfo) GetDate Uses

func (x *ChangeMessageInfo) GetDate() *timestamp.Timestamp

func (*ChangeMessageInfo) GetId Uses

func (x *ChangeMessageInfo) GetId() string

func (*ChangeMessageInfo) GetMessage Uses

func (x *ChangeMessageInfo) GetMessage() string

func (*ChangeMessageInfo) GetRealAuthor Uses

func (x *ChangeMessageInfo) GetRealAuthor() *AccountInfo

func (*ChangeMessageInfo) ProtoMessage Uses

func (*ChangeMessageInfo) ProtoMessage()

func (*ChangeMessageInfo) ProtoReflect Uses

func (x *ChangeMessageInfo) ProtoReflect() protoreflect.Message

func (*ChangeMessageInfo) Reset Uses

func (x *ChangeMessageInfo) Reset()

func (*ChangeMessageInfo) String Uses

func (x *ChangeMessageInfo) String() string

type CreateChangeRequest Uses

type CreateChangeRequest struct {
    Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
    // Ref to base the new change at. e.g. refs/heads/master
    Ref     string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
    Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
    // 40-digit hex SHA-1 of the git commit which will be the parent commit of the
    // newly created change. If set, it must be a merged commit on the destination
    // branch.
    BaseCommit string `protobuf:"bytes,4,opt,name=base_commit,json=baseCommit,proto3" json:"base_commit,omitempty"`
    // contains filtered or unexported fields
}

Information for creating a new change.

Fields are a subset of: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-input

func (*CreateChangeRequest) Descriptor Uses

func (*CreateChangeRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateChangeRequest.ProtoReflect.Descriptor instead.

func (*CreateChangeRequest) GetBaseCommit Uses

func (x *CreateChangeRequest) GetBaseCommit() string

func (*CreateChangeRequest) GetProject Uses

func (x *CreateChangeRequest) GetProject() string

func (*CreateChangeRequest) GetRef Uses

func (x *CreateChangeRequest) GetRef() string

func (*CreateChangeRequest) GetSubject Uses

func (x *CreateChangeRequest) GetSubject() string

func (*CreateChangeRequest) ProtoMessage Uses

func (*CreateChangeRequest) ProtoMessage()

func (*CreateChangeRequest) ProtoReflect Uses

func (x *CreateChangeRequest) ProtoReflect() protoreflect.Message

func (*CreateChangeRequest) Reset Uses

func (x *CreateChangeRequest) Reset()

func (*CreateChangeRequest) String Uses

func (x *CreateChangeRequest) String() string

type DeleteEditFileContentRequest Uses

type DeleteEditFileContentRequest struct {

    // The change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The project of this change. For example, "chromium/src".
    //
    // Optional, but recommended for better routing and faster RPC execution.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    // Path to the file to edit inside the project.
    FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
    // contains filtered or unexported fields
}

Information for deleting contents of single file in a change edit.

Fields encode the path arguments of https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-edit-file

func (*DeleteEditFileContentRequest) Descriptor Uses

func (*DeleteEditFileContentRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteEditFileContentRequest.ProtoReflect.Descriptor instead.

func (*DeleteEditFileContentRequest) GetFilePath Uses

func (x *DeleteEditFileContentRequest) GetFilePath() string

func (*DeleteEditFileContentRequest) GetNumber Uses

func (x *DeleteEditFileContentRequest) GetNumber() int64

func (*DeleteEditFileContentRequest) GetProject Uses

func (x *DeleteEditFileContentRequest) GetProject() string

func (*DeleteEditFileContentRequest) ProtoMessage Uses

func (*DeleteEditFileContentRequest) ProtoMessage()

func (*DeleteEditFileContentRequest) ProtoReflect Uses

func (x *DeleteEditFileContentRequest) ProtoReflect() protoreflect.Message

func (*DeleteEditFileContentRequest) Reset Uses

func (x *DeleteEditFileContentRequest) Reset()

func (*DeleteEditFileContentRequest) String Uses

func (x *DeleteEditFileContentRequest) String() string

type FileInfo Uses

type FileInfo struct {

    // Status of the file.
    Status FileInfo_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gerrit.FileInfo_Status" json:"status,omitempty"`
    // Whether the file is binary.
    Binary bool `protobuf:"varint,2,opt,name=binary,proto3" json:"binary,omitempty"`
    // The old file path; only set if renamed or copied.
    OldPath string `protobuf:"bytes,3,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"`
    // Number of lines inserted.
    LinesInserted int32 `protobuf:"varint,4,opt,name=lines_inserted,json=linesInserted,proto3" json:"lines_inserted,omitempty"`
    // Number of lines deleted.
    LinesDeleted int32 `protobuf:"varint,5,opt,name=lines_deleted,json=linesDeleted,proto3" json:"lines_deleted,omitempty"`
    // Number of bytes by which the file size increased/decreased.
    SizeDelta int64 `protobuf:"varint,6,opt,name=size_delta,json=sizeDelta,proto3" json:"size_delta,omitempty"`
    // File size in bytes.
    Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
    // contains filtered or unexported fields
}

Information about a file in a patch set. Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#file-info

func (*FileInfo) Descriptor Uses

func (*FileInfo) Descriptor() ([]byte, []int)

Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.

func (*FileInfo) GetBinary Uses

func (x *FileInfo) GetBinary() bool

func (*FileInfo) GetLinesDeleted Uses

func (x *FileInfo) GetLinesDeleted() int32

func (*FileInfo) GetLinesInserted Uses

func (x *FileInfo) GetLinesInserted() int32

func (*FileInfo) GetOldPath Uses

func (x *FileInfo) GetOldPath() string

func (*FileInfo) GetSize Uses

func (x *FileInfo) GetSize() int64

func (*FileInfo) GetSizeDelta Uses

func (x *FileInfo) GetSizeDelta() int64

func (*FileInfo) GetStatus Uses

func (x *FileInfo) GetStatus() FileInfo_Status

func (*FileInfo) ProtoMessage Uses

func (*FileInfo) ProtoMessage()

func (*FileInfo) ProtoReflect Uses

func (x *FileInfo) ProtoReflect() protoreflect.Message

func (*FileInfo) Reset Uses

func (x *FileInfo) Reset()

func (*FileInfo) String Uses

func (x *FileInfo) String() string

type FileInfo_Status Uses

type FileInfo_Status int32
const (
    FileInfo_M FileInfo_Status = 0 // Modified (default; omitted)
    FileInfo_A FileInfo_Status = 1 // Added
    FileInfo_D FileInfo_Status = 2 // Deleted
    FileInfo_R FileInfo_Status = 3 // Renamed
    FileInfo_C FileInfo_Status = 4 // Copied
    FileInfo_W FileInfo_Status = 5 // Rewritten
)

func (FileInfo_Status) Descriptor Uses

func (FileInfo_Status) Descriptor() protoreflect.EnumDescriptor

func (FileInfo_Status) Enum Uses

func (x FileInfo_Status) Enum() *FileInfo_Status

func (FileInfo_Status) EnumDescriptor Uses

func (FileInfo_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileInfo_Status.Descriptor instead.

func (FileInfo_Status) Number Uses

func (x FileInfo_Status) Number() protoreflect.EnumNumber

func (FileInfo_Status) String Uses

func (x FileInfo_Status) String() string

func (FileInfo_Status) Type Uses

func (FileInfo_Status) Type() protoreflect.EnumType

type GerritClient Uses

type GerritClient interface {
    // Lists changes that match a query.
    //
    // Note, although the Gerrit API supports multiple queries, for which
    // it can return multiple lists of changes, this is not a foreseen use-case
    // so this API just includes one query with one returned list of changes.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-changes
    ListChanges(ctx context.Context, in *ListChangesRequest, opts ...grpc.CallOption) (*ListChangesResponse, error)
    // Loads a change by id.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-change
    GetChange(ctx context.Context, in *GetChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
    // Create a new empty change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#create-change
    CreateChange(ctx context.Context, in *CreateChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
    // Edit a single file within an existing change edit.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#put-edit-file
    ChangeEditFileContent(ctx context.Context, in *ChangeEditFileContentRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    // Delete a single file within an existing change edit.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-edit-file
    DeleteEditFileContent(ctx context.Context, in *DeleteEditFileContentRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    // Publish all changes in a a change edit.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-edit
    ChangeEditPublish(ctx context.Context, in *ChangeEditPublishRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    // Add a reviewer to a change
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-reviewer
    AddReviewer(ctx context.Context, in *AddReviewerRequest, opts ...grpc.CallOption) (*AddReviewerResult, error)
    // Set various review bits on a change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#set-review
    SetReview(ctx context.Context, in *SetReviewRequest, opts ...grpc.CallOption) (*ReviewResult, error)
    // Adds a single user to the attention set of a change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-to-attention-set
    AddToAttentionSet(ctx context.Context, in *AttentionSetRequest, opts ...grpc.CallOption) (*AccountInfo, error)
    // Submit a change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-change
    SubmitChange(ctx context.Context, in *SubmitChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
    // Abandon a change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#abandon-change
    AbandonChange(ctx context.Context, in *AbandonChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)
    // Gets Mergeable status for a change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#get-mergeable-info
    GetMergeable(ctx context.Context, in *GetMergeableRequest, opts ...grpc.CallOption) (*MergeableInfo, error)
    // Lists the files that were modified, added or deleted in a revision.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files
    ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
    // Lists the projects on a Gerrit host
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#list-projects
    ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error)
    // Retrieve information about a ref of a project.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#get-branch
    GetRefInfo(ctx context.Context, in *RefInfoRequest, opts ...grpc.CallOption) (*RefInfo, error)
}

GerritClient is the client API for Gerrit service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGerritClient Uses

func NewGerritClient(cc grpc.ClientConnInterface) GerritClient

func NewGerritPRPCClient Uses

func NewGerritPRPCClient(client *prpc.Client) GerritClient

type GerritServer Uses

type GerritServer interface {
    // Lists changes that match a query.
    //
    // Note, although the Gerrit API supports multiple queries, for which
    // it can return multiple lists of changes, this is not a foreseen use-case
    // so this API just includes one query with one returned list of changes.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-changes
    ListChanges(context.Context, *ListChangesRequest) (*ListChangesResponse, error)
    // Loads a change by id.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-change
    GetChange(context.Context, *GetChangeRequest) (*ChangeInfo, error)
    // Create a new empty change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#create-change
    CreateChange(context.Context, *CreateChangeRequest) (*ChangeInfo, error)
    // Edit a single file within an existing change edit.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#put-edit-file
    ChangeEditFileContent(context.Context, *ChangeEditFileContentRequest) (*empty.Empty, error)
    // Delete a single file within an existing change edit.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-edit-file
    DeleteEditFileContent(context.Context, *DeleteEditFileContentRequest) (*empty.Empty, error)
    // Publish all changes in a a change edit.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-edit
    ChangeEditPublish(context.Context, *ChangeEditPublishRequest) (*empty.Empty, error)
    // Add a reviewer to a change
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-reviewer
    AddReviewer(context.Context, *AddReviewerRequest) (*AddReviewerResult, error)
    // Set various review bits on a change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#set-review
    SetReview(context.Context, *SetReviewRequest) (*ReviewResult, error)
    // Adds a single user to the attention set of a change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#add-to-attention-set
    AddToAttentionSet(context.Context, *AttentionSetRequest) (*AccountInfo, error)
    // Submit a change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-change
    SubmitChange(context.Context, *SubmitChangeRequest) (*ChangeInfo, error)
    // Abandon a change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#abandon-change
    AbandonChange(context.Context, *AbandonChangeRequest) (*ChangeInfo, error)
    // Gets Mergeable status for a change.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#get-mergeable-info
    GetMergeable(context.Context, *GetMergeableRequest) (*MergeableInfo, error)
    // Lists the files that were modified, added or deleted in a revision.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files
    ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
    // Lists the projects on a Gerrit host
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#list-projects
    ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
    // Retrieve information about a ref of a project.
    //
    // https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#get-branch
    GetRefInfo(context.Context, *RefInfoRequest) (*RefInfo, error)
}

GerritServer is the server API for Gerrit service.

type GetChangeRequest Uses

type GetChangeRequest struct {

    // 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"`
    // contains filtered or unexported fields
}

Request to get information for a single change.

Encodes path arguments and query options described at https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-change

func (*GetChangeRequest) Descriptor Uses

func (*GetChangeRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetChangeRequest.ProtoReflect.Descriptor instead.

func (*GetChangeRequest) GetNumber Uses

func (x *GetChangeRequest) GetNumber() int64

func (*GetChangeRequest) GetOptions Uses

func (x *GetChangeRequest) GetOptions() []QueryOption

func (*GetChangeRequest) GetProject Uses

func (x *GetChangeRequest) GetProject() string

func (*GetChangeRequest) ProtoMessage Uses

func (*GetChangeRequest) ProtoMessage()

func (*GetChangeRequest) ProtoReflect Uses

func (x *GetChangeRequest) ProtoReflect() protoreflect.Message

func (*GetChangeRequest) Reset Uses

func (x *GetChangeRequest) Reset()

func (*GetChangeRequest) String Uses

func (x *GetChangeRequest) String() string

func (*GetChangeRequest) Validate Uses

func (r *GetChangeRequest) Validate() error

Validate returns an error if r is invalid.

type GetMergeableRequest Uses

type GetMergeableRequest struct {

    // The change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The project of this change. For example, "chromium/src".
    //
    // Optional, but recommended for better routing and faster RPC execution.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    // Unique ID for the revision to query.
    // See
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revision-id
    RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
    // The source to merge from, e.g. a complete or abbreviated commit SHA-1, a
    // complete reference name, a short reference name under refs/heads,
    // refs/tags, or refs/remotes namespace, etc.
    Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
    // The strategy of the merge.
    Strategy MergeableStrategy `protobuf:"varint,5,opt,name=strategy,proto3,enum=gerrit.MergeableStrategy" json:"strategy,omitempty"`
    // contains filtered or unexported fields
}

func (*GetMergeableRequest) Descriptor Uses

func (*GetMergeableRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMergeableRequest.ProtoReflect.Descriptor instead.

func (*GetMergeableRequest) GetNumber Uses

func (x *GetMergeableRequest) GetNumber() int64

func (*GetMergeableRequest) GetProject Uses

func (x *GetMergeableRequest) GetProject() string

func (*GetMergeableRequest) GetRevisionId Uses

func (x *GetMergeableRequest) GetRevisionId() string

func (*GetMergeableRequest) GetSource Uses

func (x *GetMergeableRequest) GetSource() string

func (*GetMergeableRequest) GetStrategy Uses

func (x *GetMergeableRequest) GetStrategy() MergeableStrategy

func (*GetMergeableRequest) ProtoMessage Uses

func (*GetMergeableRequest) ProtoMessage()

func (*GetMergeableRequest) ProtoReflect Uses

func (x *GetMergeableRequest) ProtoReflect() protoreflect.Message

func (*GetMergeableRequest) Reset Uses

func (x *GetMergeableRequest) Reset()

func (*GetMergeableRequest) String Uses

func (x *GetMergeableRequest) String() string

type LabelInfo Uses

type LabelInfo struct {

    // Whether the label is optional.
    Optional bool `protobuf:"varint,1,opt,name=optional,proto3" json:"optional,omitempty"`
    // One user who approved this label on the change.
    Approved *AccountInfo `protobuf:"bytes,2,opt,name=approved,proto3" json:"approved,omitempty"`
    // One user who rejected this label on the change.
    Rejected *AccountInfo `protobuf:"bytes,3,opt,name=rejected,proto3" json:"rejected,omitempty"`
    // One user who recommended this label on the change.
    Recommended *AccountInfo `protobuf:"bytes,4,opt,name=recommended,proto3" json:"recommended,omitempty"`
    // One user who disliked this label on the change.
    Disliked *AccountInfo `protobuf:"bytes,5,opt,name=disliked,proto3" json:"disliked,omitempty"`
    // If true, the label blocks submit operation.
    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".
    Value int32 `protobuf:"varint,7,opt,name=value,proto3" json:"value,omitempty"`
    // The default voting value for the label.
    DefaultValue int32 `protobuf:"varint,8,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
    // contains filtered or unexported fields
}

Information about a Label. Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#label-info

func (*LabelInfo) Descriptor Uses

func (*LabelInfo) Descriptor() ([]byte, []int)

Deprecated: Use LabelInfo.ProtoReflect.Descriptor instead.

func (*LabelInfo) GetApproved Uses

func (x *LabelInfo) GetApproved() *AccountInfo

func (*LabelInfo) GetBlocking Uses

func (x *LabelInfo) GetBlocking() bool

func (*LabelInfo) GetDefaultValue Uses

func (x *LabelInfo) GetDefaultValue() int32

func (*LabelInfo) GetDisliked Uses

func (x *LabelInfo) GetDisliked() *AccountInfo

func (*LabelInfo) GetOptional Uses

func (x *LabelInfo) GetOptional() bool

func (*LabelInfo) GetRecommended Uses

func (x *LabelInfo) GetRecommended() *AccountInfo

func (*LabelInfo) GetRejected Uses

func (x *LabelInfo) GetRejected() *AccountInfo

func (*LabelInfo) GetValue Uses

func (x *LabelInfo) GetValue() int32

func (*LabelInfo) ProtoMessage Uses

func (*LabelInfo) ProtoMessage()

func (*LabelInfo) ProtoReflect Uses

func (x *LabelInfo) ProtoReflect() protoreflect.Message

func (*LabelInfo) Reset Uses

func (x *LabelInfo) Reset()

func (*LabelInfo) String Uses

func (x *LabelInfo) String() string

type ListChangesRequest Uses

type ListChangesRequest struct {

    // The query used to filter the changes.
    //
    // This is the same as the query that can be used in the Gerrit web UI. It is
    // space-separated and can include filters like "label:Commit-Queue" or
    // "status:open". The possible search operators are described at:
    // https://gerrit-review.googlesource.com/Documentation/user-search.html
    //
    // An empty query matches all changes.
    Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
    // What to include in the response.
    Options []QueryOption `protobuf:"varint,2,rep,packed,name=options,proto3,enum=gerrit.QueryOption" json:"options,omitempty"`
    // Caps the number of results to return. Required.
    //
    // Defaults to 25 if not provided; maximum value 1000.
    Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
    // The number of changes to skip from the start, for pagination.
    //
    // Note that without using offset, it's also possible to do paging by
    // including a "before:" time in the query, and querying for changes before
    // the earliest change in the current page. This may be preferred but is not
    // very trivial to implement correctly.
    Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
    // contains filtered or unexported fields
}

Request to list changes based on a query.

func (*ListChangesRequest) Descriptor Uses

func (*ListChangesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListChangesRequest.ProtoReflect.Descriptor instead.

func (*ListChangesRequest) GetLimit Uses

func (x *ListChangesRequest) GetLimit() int64

func (*ListChangesRequest) GetOffset Uses

func (x *ListChangesRequest) GetOffset() int64

func (*ListChangesRequest) GetOptions Uses

func (x *ListChangesRequest) GetOptions() []QueryOption

func (*ListChangesRequest) GetQuery Uses

func (x *ListChangesRequest) GetQuery() string

func (*ListChangesRequest) ProtoMessage Uses

func (*ListChangesRequest) ProtoMessage()

func (*ListChangesRequest) ProtoReflect Uses

func (x *ListChangesRequest) ProtoReflect() protoreflect.Message

func (*ListChangesRequest) Reset Uses

func (x *ListChangesRequest) Reset()

func (*ListChangesRequest) String Uses

func (x *ListChangesRequest) String() string

type ListChangesResponse Uses

type ListChangesResponse struct {

    // The changes that matched the query, with the fields requested.
    //
    // The order of the changes is expected to be decreasing by update time,
    // however the The Gerrit API doc doesn't explicitly specify the order:
    // https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html
    Changes []*ChangeInfo `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"`
    // True if there are more changes not returned.
    //
    // This will be set if the number of changes matching the query exceeds the
    // limit supplied; however, it's possible that if the number exceeds some
    // internal Gerrit maximum, this will not be set.
    //
    // Specifically (as of Dec 2018) Google's Gerrit instance will not look
    // beyond a maximum hardcoded in Gerrit backend of 10k changes in the index
    // of changes, and so if a query matches more than that many changes, Gerrit
    // backend may not know and may not set "_more_changes".
    MoreChanges bool `protobuf:"varint,2,opt,name=more_changes,json=moreChanges,proto3" json:"more_changes,omitempty"`
    // contains filtered or unexported fields
}

A list of changes that matched the query.

func (*ListChangesResponse) Descriptor Uses

func (*ListChangesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListChangesResponse.ProtoReflect.Descriptor instead.

func (*ListChangesResponse) GetChanges Uses

func (x *ListChangesResponse) GetChanges() []*ChangeInfo

func (*ListChangesResponse) GetMoreChanges Uses

func (x *ListChangesResponse) GetMoreChanges() bool

func (*ListChangesResponse) ProtoMessage Uses

func (*ListChangesResponse) ProtoMessage()

func (*ListChangesResponse) ProtoReflect Uses

func (x *ListChangesResponse) ProtoReflect() protoreflect.Message

func (*ListChangesResponse) Reset Uses

func (x *ListChangesResponse) Reset()

func (*ListChangesResponse) String Uses

func (x *ListChangesResponse) String() string

type ListFilesRequest Uses

type ListFilesRequest struct {

    // Change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The project of this change. For example, "chromium/src".
    //
    // Optional, but recommended for better routing and faster RPC execution.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    // Unique ID for the revision to query.
    // See
    // 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"`
    // contains filtered or unexported fields
}

Information for requesting the files in a change.

See https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files

func (*ListFilesRequest) Descriptor Uses

func (*ListFilesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.

func (*ListFilesRequest) GetNumber Uses

func (x *ListFilesRequest) GetNumber() int64

func (*ListFilesRequest) GetParent Uses

func (x *ListFilesRequest) GetParent() int64

func (*ListFilesRequest) GetProject Uses

func (x *ListFilesRequest) GetProject() string

func (*ListFilesRequest) GetRevisionId Uses

func (x *ListFilesRequest) GetRevisionId() string

func (*ListFilesRequest) GetSubstringQuery Uses

func (x *ListFilesRequest) GetSubstringQuery() string

func (*ListFilesRequest) ProtoMessage Uses

func (*ListFilesRequest) ProtoMessage()

func (*ListFilesRequest) ProtoReflect Uses

func (x *ListFilesRequest) ProtoReflect() protoreflect.Message

func (*ListFilesRequest) Reset Uses

func (x *ListFilesRequest) Reset()

func (*ListFilesRequest) String Uses

func (x *ListFilesRequest) String() string

type ListFilesResponse Uses

type ListFilesResponse struct {

    // 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"`
    // contains filtered or unexported fields
}

Information about the files in a change.

See https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files

func (*ListFilesResponse) Descriptor Uses

func (*ListFilesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.

func (*ListFilesResponse) GetFiles Uses

func (x *ListFilesResponse) GetFiles() map[string]*FileInfo

func (*ListFilesResponse) ProtoMessage Uses

func (*ListFilesResponse) ProtoMessage()

func (*ListFilesResponse) ProtoReflect Uses

func (x *ListFilesResponse) ProtoReflect() protoreflect.Message

func (*ListFilesResponse) Reset Uses

func (x *ListFilesResponse) Reset()

func (*ListFilesResponse) String Uses

func (x *ListFilesResponse) String() string

type ListProjectsRequest Uses

type ListProjectsRequest struct {

    // Limit results to projects with the specified ref, e.g.: refs/heads/main.
    // Ref SHA1 will be included in the results.
    Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
    // contains filtered or unexported fields
}

Information for requesting the projects on a host. See https://gerrit-review.googlesource.com/Documentation/cmd-ls-projects.html

func (*ListProjectsRequest) Descriptor Uses

func (*ListProjectsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.

func (*ListProjectsRequest) GetRef Uses

func (x *ListProjectsRequest) GetRef() string

func (*ListProjectsRequest) ProtoMessage Uses

func (*ListProjectsRequest) ProtoMessage()

func (*ListProjectsRequest) ProtoReflect Uses

func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message

func (*ListProjectsRequest) Reset Uses

func (x *ListProjectsRequest) Reset()

func (*ListProjectsRequest) String Uses

func (x *ListProjectsRequest) String() string

type ListProjectsResponse Uses

type ListProjectsResponse struct {

    // A map of project names to ProjectInfo entries, sorted by project name.
    Projects map[string]*ProjectInfo `protobuf:"bytes,1,rep,name=Projects,proto3" json:"Projects,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // contains filtered or unexported fields
}

Information about the projects on a host. See https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#project-info

func (*ListProjectsResponse) Descriptor Uses

func (*ListProjectsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProjectsResponse.ProtoReflect.Descriptor instead.

func (*ListProjectsResponse) GetProjects Uses

func (x *ListProjectsResponse) GetProjects() map[string]*ProjectInfo

func (*ListProjectsResponse) ProtoMessage Uses

func (*ListProjectsResponse) ProtoMessage()

func (*ListProjectsResponse) ProtoReflect Uses

func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message

func (*ListProjectsResponse) Reset Uses

func (x *ListProjectsResponse) Reset()

func (*ListProjectsResponse) String Uses

func (x *ListProjectsResponse) String() string

type MergeableInfo Uses

type MergeableInfo struct {

    // 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"`
    // contains filtered or unexported fields
}

Contains information about the mergeability of a change.

See https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#mergeable-info

func (*MergeableInfo) Descriptor Uses

func (*MergeableInfo) Descriptor() ([]byte, []int)

Deprecated: Use MergeableInfo.ProtoReflect.Descriptor instead.

func (*MergeableInfo) GetCommitMerged Uses

func (x *MergeableInfo) GetCommitMerged() bool

func (*MergeableInfo) GetConflicts Uses

func (x *MergeableInfo) GetConflicts() []string

func (*MergeableInfo) GetContentMerged Uses

func (x *MergeableInfo) GetContentMerged() bool

func (*MergeableInfo) GetMergeable Uses

func (x *MergeableInfo) GetMergeable() bool

func (*MergeableInfo) GetMergeableInto Uses

func (x *MergeableInfo) GetMergeableInto() []string

func (*MergeableInfo) GetStrategy Uses

func (x *MergeableInfo) GetStrategy() MergeableStrategy

func (*MergeableInfo) GetSubmitType Uses

func (x *MergeableInfo) GetSubmitType() MergeableInfo_SubmitType

func (*MergeableInfo) ProtoMessage Uses

func (*MergeableInfo) ProtoMessage()

func (*MergeableInfo) ProtoReflect Uses

func (x *MergeableInfo) ProtoReflect() protoreflect.Message

func (*MergeableInfo) Reset Uses

func (x *MergeableInfo) Reset()

func (*MergeableInfo) String Uses

func (x *MergeableInfo) String() string

type MergeableInfo_SubmitType Uses

type MergeableInfo_SubmitType int32
const (
    MergeableInfo_SUBMIT_TYPE_UNSPECIFIED MergeableInfo_SubmitType = 0
    MergeableInfo_MERGE_IF_NECESSARY      MergeableInfo_SubmitType = 1
    MergeableInfo_FAST_FORWARD_ONLY       MergeableInfo_SubmitType = 2
    MergeableInfo_REBASE_IF_NECESSARY     MergeableInfo_SubmitType = 3
    MergeableInfo_REBASE_ALWAYS           MergeableInfo_SubmitType = 4
    MergeableInfo_MERGE_ALWAYS            MergeableInfo_SubmitType = 5
    MergeableInfo_CHERRY_PICK             MergeableInfo_SubmitType = 6
)

func (MergeableInfo_SubmitType) Descriptor Uses

func (MergeableInfo_SubmitType) Descriptor() protoreflect.EnumDescriptor

func (MergeableInfo_SubmitType) Enum Uses

func (x MergeableInfo_SubmitType) Enum() *MergeableInfo_SubmitType

func (MergeableInfo_SubmitType) EnumDescriptor Uses

func (MergeableInfo_SubmitType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MergeableInfo_SubmitType.Descriptor instead.

func (MergeableInfo_SubmitType) Number Uses

func (x MergeableInfo_SubmitType) Number() protoreflect.EnumNumber

func (MergeableInfo_SubmitType) String Uses

func (x MergeableInfo_SubmitType) String() string

func (MergeableInfo_SubmitType) Type Uses

func (MergeableInfo_SubmitType) Type() protoreflect.EnumType

type MergeableStrategy Uses

type MergeableStrategy int32
const (
    MergeableStrategy_MERGEABLE_STRATEGY_UNSPECIFIED MergeableStrategy = 0
    MergeableStrategy_RECURSIVE                      MergeableStrategy = 1
    MergeableStrategy_RESOLVE                        MergeableStrategy = 2
    MergeableStrategy_SIMPLE_TWO_WAY_IN_CORE         MergeableStrategy = 3
    MergeableStrategy_OURS                           MergeableStrategy = 4
    MergeableStrategy_THEIRS                         MergeableStrategy = 5
)

func (MergeableStrategy) Descriptor Uses

func (MergeableStrategy) Descriptor() protoreflect.EnumDescriptor

func (MergeableStrategy) Enum Uses

func (x MergeableStrategy) Enum() *MergeableStrategy

func (MergeableStrategy) EnumDescriptor Uses

func (MergeableStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use MergeableStrategy.Descriptor instead.

func (MergeableStrategy) Number Uses

func (x MergeableStrategy) Number() protoreflect.EnumNumber

func (MergeableStrategy) String Uses

func (x MergeableStrategy) String() string

func (MergeableStrategy) Type Uses

func (MergeableStrategy) Type() protoreflect.EnumType

type MockGerritClient Uses

type MockGerritClient struct {
    // contains filtered or unexported fields
}

MockGerritClient is a mock of GerritClient interface.

func NewMockGerritClient Uses

func NewMockGerritClient(ctrl *gomock.Controller) *MockGerritClient

NewMockGerritClient creates a new mock instance.

func (*MockGerritClient) AbandonChange Uses

func (m *MockGerritClient) AbandonChange(ctx context.Context, in *AbandonChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)

AbandonChange mocks base method.

func (*MockGerritClient) AddReviewer Uses

func (m *MockGerritClient) AddReviewer(ctx context.Context, in *AddReviewerRequest, opts ...grpc.CallOption) (*AddReviewerResult, error)

AddReviewer mocks base method.

func (*MockGerritClient) AddToAttentionSet Uses

func (m *MockGerritClient) AddToAttentionSet(ctx context.Context, in *AttentionSetRequest, opts ...grpc.CallOption) (*AccountInfo, error)

AddToAttentionSet mocks base method.

func (*MockGerritClient) ChangeEditFileContent Uses

func (m *MockGerritClient) ChangeEditFileContent(ctx context.Context, in *ChangeEditFileContentRequest, opts ...grpc.CallOption) (*empty.Empty, error)

ChangeEditFileContent mocks base method.

func (*MockGerritClient) ChangeEditPublish Uses

func (m *MockGerritClient) ChangeEditPublish(ctx context.Context, in *ChangeEditPublishRequest, opts ...grpc.CallOption) (*empty.Empty, error)

ChangeEditPublish mocks base method.

func (*MockGerritClient) CreateChange Uses

func (m *MockGerritClient) CreateChange(ctx context.Context, in *CreateChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)

CreateChange mocks base method.

func (*MockGerritClient) DeleteEditFileContent Uses

func (m *MockGerritClient) DeleteEditFileContent(ctx context.Context, in *DeleteEditFileContentRequest, opts ...grpc.CallOption) (*empty.Empty, error)

DeleteEditFileContent mocks base method.

func (*MockGerritClient) EXPECT Uses

func (m *MockGerritClient) EXPECT() *MockGerritClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGerritClient) GetChange Uses

func (m *MockGerritClient) GetChange(ctx context.Context, in *GetChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)

GetChange mocks base method.

func (*MockGerritClient) GetMergeable Uses

func (m *MockGerritClient) GetMergeable(ctx context.Context, in *GetMergeableRequest, opts ...grpc.CallOption) (*MergeableInfo, error)

GetMergeable mocks base method.

func (*MockGerritClient) GetRefInfo Uses

func (m *MockGerritClient) GetRefInfo(ctx context.Context, in *RefInfoRequest, opts ...grpc.CallOption) (*RefInfo, error)

GetRefInfo mocks base method.

func (*MockGerritClient) ListChanges Uses

func (m *MockGerritClient) ListChanges(ctx context.Context, in *ListChangesRequest, opts ...grpc.CallOption) (*ListChangesResponse, error)

ListChanges mocks base method.

func (*MockGerritClient) ListFiles Uses

func (m *MockGerritClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)

ListFiles mocks base method.

func (*MockGerritClient) ListProjects Uses

func (m *MockGerritClient) ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error)

ListProjects mocks base method.

func (*MockGerritClient) SetReview Uses

func (m *MockGerritClient) SetReview(ctx context.Context, in *SetReviewRequest, opts ...grpc.CallOption) (*ReviewResult, error)

SetReview mocks base method.

func (*MockGerritClient) SubmitChange Uses

func (m *MockGerritClient) SubmitChange(ctx context.Context, in *SubmitChangeRequest, opts ...grpc.CallOption) (*ChangeInfo, error)

SubmitChange mocks base method.

type MockGerritClientMockRecorder Uses

type MockGerritClientMockRecorder struct {
    // contains filtered or unexported fields
}

MockGerritClientMockRecorder is the mock recorder for MockGerritClient.

func (*MockGerritClientMockRecorder) AbandonChange Uses

func (mr *MockGerritClientMockRecorder) AbandonChange(ctx, in interface{}, opts ...interface{}) *gomock.Call

AbandonChange indicates an expected call of AbandonChange.

func (*MockGerritClientMockRecorder) AddReviewer Uses

func (mr *MockGerritClientMockRecorder) AddReviewer(ctx, in interface{}, opts ...interface{}) *gomock.Call

AddReviewer indicates an expected call of AddReviewer.

func (*MockGerritClientMockRecorder) AddToAttentionSet Uses

func (mr *MockGerritClientMockRecorder) AddToAttentionSet(ctx, in interface{}, opts ...interface{}) *gomock.Call

AddToAttentionSet indicates an expected call of AddToAttentionSet.

func (*MockGerritClientMockRecorder) ChangeEditFileContent Uses

func (mr *MockGerritClientMockRecorder) ChangeEditFileContent(ctx, in interface{}, opts ...interface{}) *gomock.Call

ChangeEditFileContent indicates an expected call of ChangeEditFileContent.

func (*MockGerritClientMockRecorder) ChangeEditPublish Uses

func (mr *MockGerritClientMockRecorder) ChangeEditPublish(ctx, in interface{}, opts ...interface{}) *gomock.Call

ChangeEditPublish indicates an expected call of ChangeEditPublish.

func (*MockGerritClientMockRecorder) CreateChange Uses

func (mr *MockGerritClientMockRecorder) CreateChange(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateChange indicates an expected call of CreateChange.

func (*MockGerritClientMockRecorder) DeleteEditFileContent Uses

func (mr *MockGerritClientMockRecorder) DeleteEditFileContent(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteEditFileContent indicates an expected call of DeleteEditFileContent.

func (*MockGerritClientMockRecorder) GetChange Uses

func (mr *MockGerritClientMockRecorder) GetChange(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetChange indicates an expected call of GetChange.

func (*MockGerritClientMockRecorder) GetMergeable Uses

func (mr *MockGerritClientMockRecorder) GetMergeable(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetMergeable indicates an expected call of GetMergeable.

func (*MockGerritClientMockRecorder) GetRefInfo Uses

func (mr *MockGerritClientMockRecorder) GetRefInfo(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetRefInfo indicates an expected call of GetRefInfo.

func (*MockGerritClientMockRecorder) ListChanges Uses

func (mr *MockGerritClientMockRecorder) ListChanges(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListChanges indicates an expected call of ListChanges.

func (*MockGerritClientMockRecorder) ListFiles Uses

func (mr *MockGerritClientMockRecorder) ListFiles(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListFiles indicates an expected call of ListFiles.

func (*MockGerritClientMockRecorder) ListProjects Uses

func (mr *MockGerritClientMockRecorder) ListProjects(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListProjects indicates an expected call of ListProjects.

func (*MockGerritClientMockRecorder) SetReview Uses

func (mr *MockGerritClientMockRecorder) SetReview(ctx, in interface{}, opts ...interface{}) *gomock.Call

SetReview indicates an expected call of SetReview.

func (*MockGerritClientMockRecorder) SubmitChange Uses

func (mr *MockGerritClientMockRecorder) SubmitChange(ctx, in interface{}, opts ...interface{}) *gomock.Call

SubmitChange indicates an expected call of SubmitChange.

type MockGerritServer Uses

type MockGerritServer struct {
    // contains filtered or unexported fields
}

MockGerritServer is a mock of GerritServer interface.

func NewMockGerritServer Uses

func NewMockGerritServer(ctrl *gomock.Controller) *MockGerritServer

NewMockGerritServer creates a new mock instance.

func (*MockGerritServer) AbandonChange Uses

func (m *MockGerritServer) AbandonChange(arg0 context.Context, arg1 *AbandonChangeRequest) (*ChangeInfo, error)

AbandonChange mocks base method.

func (*MockGerritServer) AddReviewer Uses

func (m *MockGerritServer) AddReviewer(arg0 context.Context, arg1 *AddReviewerRequest) (*AddReviewerResult, error)

AddReviewer mocks base method.

func (*MockGerritServer) AddToAttentionSet Uses

func (m *MockGerritServer) AddToAttentionSet(arg0 context.Context, arg1 *AttentionSetRequest) (*AccountInfo, error)

AddToAttentionSet mocks base method.

func (*MockGerritServer) ChangeEditFileContent Uses

func (m *MockGerritServer) ChangeEditFileContent(arg0 context.Context, arg1 *ChangeEditFileContentRequest) (*empty.Empty, error)

ChangeEditFileContent mocks base method.

func (*MockGerritServer) ChangeEditPublish Uses

func (m *MockGerritServer) ChangeEditPublish(arg0 context.Context, arg1 *ChangeEditPublishRequest) (*empty.Empty, error)

ChangeEditPublish mocks base method.

func (*MockGerritServer) CreateChange Uses

func (m *MockGerritServer) CreateChange(arg0 context.Context, arg1 *CreateChangeRequest) (*ChangeInfo, error)

CreateChange mocks base method.

func (*MockGerritServer) DeleteEditFileContent Uses

func (m *MockGerritServer) DeleteEditFileContent(arg0 context.Context, arg1 *DeleteEditFileContentRequest) (*empty.Empty, error)

DeleteEditFileContent mocks base method.

func (*MockGerritServer) EXPECT Uses

func (m *MockGerritServer) EXPECT() *MockGerritServerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGerritServer) GetChange Uses

func (m *MockGerritServer) GetChange(arg0 context.Context, arg1 *GetChangeRequest) (*ChangeInfo, error)

GetChange mocks base method.

func (*MockGerritServer) GetMergeable Uses

func (m *MockGerritServer) GetMergeable(arg0 context.Context, arg1 *GetMergeableRequest) (*MergeableInfo, error)

GetMergeable mocks base method.

func (*MockGerritServer) GetRefInfo Uses

func (m *MockGerritServer) GetRefInfo(arg0 context.Context, arg1 *RefInfoRequest) (*RefInfo, error)

GetRefInfo mocks base method.

func (*MockGerritServer) ListChanges Uses

func (m *MockGerritServer) ListChanges(arg0 context.Context, arg1 *ListChangesRequest) (*ListChangesResponse, error)

ListChanges mocks base method.

func (*MockGerritServer) ListFiles Uses

func (m *MockGerritServer) ListFiles(arg0 context.Context, arg1 *ListFilesRequest) (*ListFilesResponse, error)

ListFiles mocks base method.

func (*MockGerritServer) ListProjects Uses

func (m *MockGerritServer) ListProjects(arg0 context.Context, arg1 *ListProjectsRequest) (*ListProjectsResponse, error)

ListProjects mocks base method.

func (*MockGerritServer) SetReview Uses

func (m *MockGerritServer) SetReview(arg0 context.Context, arg1 *SetReviewRequest) (*ReviewResult, error)

SetReview mocks base method.

func (*MockGerritServer) SubmitChange Uses

func (m *MockGerritServer) SubmitChange(arg0 context.Context, arg1 *SubmitChangeRequest) (*ChangeInfo, error)

SubmitChange mocks base method.

type MockGerritServerMockRecorder Uses

type MockGerritServerMockRecorder struct {
    // contains filtered or unexported fields
}

MockGerritServerMockRecorder is the mock recorder for MockGerritServer.

func (*MockGerritServerMockRecorder) AbandonChange Uses

func (mr *MockGerritServerMockRecorder) AbandonChange(arg0, arg1 interface{}) *gomock.Call

AbandonChange indicates an expected call of AbandonChange.

func (*MockGerritServerMockRecorder) AddReviewer Uses

func (mr *MockGerritServerMockRecorder) AddReviewer(arg0, arg1 interface{}) *gomock.Call

AddReviewer indicates an expected call of AddReviewer.

func (*MockGerritServerMockRecorder) AddToAttentionSet Uses

func (mr *MockGerritServerMockRecorder) AddToAttentionSet(arg0, arg1 interface{}) *gomock.Call

AddToAttentionSet indicates an expected call of AddToAttentionSet.

func (*MockGerritServerMockRecorder) ChangeEditFileContent Uses

func (mr *MockGerritServerMockRecorder) ChangeEditFileContent(arg0, arg1 interface{}) *gomock.Call

ChangeEditFileContent indicates an expected call of ChangeEditFileContent.

func (*MockGerritServerMockRecorder) ChangeEditPublish Uses

func (mr *MockGerritServerMockRecorder) ChangeEditPublish(arg0, arg1 interface{}) *gomock.Call

ChangeEditPublish indicates an expected call of ChangeEditPublish.

func (*MockGerritServerMockRecorder) CreateChange Uses

func (mr *MockGerritServerMockRecorder) CreateChange(arg0, arg1 interface{}) *gomock.Call

CreateChange indicates an expected call of CreateChange.

func (*MockGerritServerMockRecorder) DeleteEditFileContent Uses

func (mr *MockGerritServerMockRecorder) DeleteEditFileContent(arg0, arg1 interface{}) *gomock.Call

DeleteEditFileContent indicates an expected call of DeleteEditFileContent.

func (*MockGerritServerMockRecorder) GetChange Uses

func (mr *MockGerritServerMockRecorder) GetChange(arg0, arg1 interface{}) *gomock.Call

GetChange indicates an expected call of GetChange.

func (*MockGerritServerMockRecorder) GetMergeable Uses

func (mr *MockGerritServerMockRecorder) GetMergeable(arg0, arg1 interface{}) *gomock.Call

GetMergeable indicates an expected call of GetMergeable.

func (*MockGerritServerMockRecorder) GetRefInfo Uses

func (mr *MockGerritServerMockRecorder) GetRefInfo(arg0, arg1 interface{}) *gomock.Call

GetRefInfo indicates an expected call of GetRefInfo.

func (*MockGerritServerMockRecorder) ListChanges Uses

func (mr *MockGerritServerMockRecorder) ListChanges(arg0, arg1 interface{}) *gomock.Call

ListChanges indicates an expected call of ListChanges.

func (*MockGerritServerMockRecorder) ListFiles Uses

func (mr *MockGerritServerMockRecorder) ListFiles(arg0, arg1 interface{}) *gomock.Call

ListFiles indicates an expected call of ListFiles.

func (*MockGerritServerMockRecorder) ListProjects Uses

func (mr *MockGerritServerMockRecorder) ListProjects(arg0, arg1 interface{}) *gomock.Call

ListProjects indicates an expected call of ListProjects.

func (*MockGerritServerMockRecorder) SetReview Uses

func (mr *MockGerritServerMockRecorder) SetReview(arg0, arg1 interface{}) *gomock.Call

SetReview indicates an expected call of SetReview.

func (*MockGerritServerMockRecorder) SubmitChange Uses

func (mr *MockGerritServerMockRecorder) SubmitChange(arg0, arg1 interface{}) *gomock.Call

SubmitChange indicates an expected call of SubmitChange.

type Notify Uses

type Notify int32

Specify the notification options for an action. Different endpoints support different subsets of this enum.

const (
    Notify_NOTIFY_UNSPECIFIED Notify = 0
    // Do not send email notifications.
    Notify_NOTIFY_NONE Notify = 1
    // Notify all OWNERS.
    Notify_NOTIFY_OWNER Notify = 2
    // Notify OWNERS who are also reviewers
    Notify_NOTIFY_OWNER_REVIEWERS Notify = 3
    // Notify all OWNERS and reviewers
    Notify_NOTIFY_ALL Notify = 4
)

func (Notify) Descriptor Uses

func (Notify) Descriptor() protoreflect.EnumDescriptor

func (Notify) Enum Uses

func (x Notify) Enum() *Notify

func (Notify) EnumDescriptor Uses

func (Notify) EnumDescriptor() ([]byte, []int)

Deprecated: Use Notify.Descriptor instead.

func (Notify) Number Uses

func (x Notify) Number() protoreflect.EnumNumber

func (Notify) String Uses

func (x Notify) String() string

func (Notify) Type Uses

func (Notify) Type() protoreflect.EnumType

type ProjectInfo Uses

type ProjectInfo struct {

    // The project name
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The name of the parent project
    Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
    // The description of the project
    Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
    // The state of the project
    State ProjectInfo_State `protobuf:"varint,4,opt,name=state,proto3,enum=gerrit.ProjectInfo_State" json:"state,omitempty"`
    // Map of ref names to HEAD revisions
    Refs map[string]string `protobuf:"bytes,5,rep,name=refs,proto3" json:"refs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // List of links to the project in external sites
    WebLinks []*WebLinkInfo `protobuf:"bytes,6,rep,name=web_links,json=webLinks,proto3" json:"web_links,omitempty"`
    // contains filtered or unexported fields
}

Information about individual projects.

See https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#project-info

func (*ProjectInfo) Descriptor Uses

func (*ProjectInfo) Descriptor() ([]byte, []int)

Deprecated: Use ProjectInfo.ProtoReflect.Descriptor instead.

func (*ProjectInfo) GetDescription Uses

func (x *ProjectInfo) GetDescription() string

func (*ProjectInfo) GetName Uses

func (x *ProjectInfo) GetName() string

func (*ProjectInfo) GetParent Uses

func (x *ProjectInfo) GetParent() string

func (*ProjectInfo) GetRefs Uses

func (x *ProjectInfo) GetRefs() map[string]string

func (*ProjectInfo) GetState Uses

func (x *ProjectInfo) GetState() ProjectInfo_State
func (x *ProjectInfo) GetWebLinks() []*WebLinkInfo

func (*ProjectInfo) ProtoMessage Uses

func (*ProjectInfo) ProtoMessage()

func (*ProjectInfo) ProtoReflect Uses

func (x *ProjectInfo) ProtoReflect() protoreflect.Message

func (*ProjectInfo) Reset Uses

func (x *ProjectInfo) Reset()

func (*ProjectInfo) String Uses

func (x *ProjectInfo) String() string

type ProjectInfo_State Uses

type ProjectInfo_State int32
const (
    ProjectInfo_PROJECT_STATE_UNSPECIFIED ProjectInfo_State = 0
    ProjectInfo_PROJECT_STATE_ACTIVE      ProjectInfo_State = 1
    ProjectInfo_PROJECT_STATE_READ_ONLY   ProjectInfo_State = 2
    ProjectInfo_PROJECT_STATE_HIDDEN      ProjectInfo_State = 3
)

func (ProjectInfo_State) Descriptor Uses

func (ProjectInfo_State) Descriptor() protoreflect.EnumDescriptor

func (ProjectInfo_State) Enum Uses

func (x ProjectInfo_State) Enum() *ProjectInfo_State

func (ProjectInfo_State) EnumDescriptor Uses

func (ProjectInfo_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProjectInfo_State.Descriptor instead.

func (ProjectInfo_State) Number Uses

func (x ProjectInfo_State) Number() protoreflect.EnumNumber

func (ProjectInfo_State) String Uses

func (x ProjectInfo_State) String() string

func (ProjectInfo_State) Type Uses

func (ProjectInfo_State) Type() protoreflect.EnumType

type QueryOption Uses

type QueryOption int32

Specifies what extra information to include in the response.

Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#query-options

const (
    QueryOption_OPTION_UNSPECIFIED QueryOption = 0
    // A summary of each label required for submit, and approvers that have
    // granted (or rejected) with that label.
    QueryOption_LABELS QueryOption = 1
    // Detailed label information, including numeric values of all existing
    // approvals, recognized label values, values permitted to be set by the
    // current user, all reviewers by state, and reviewers that may be removed by
    // the current user.
    QueryOption_DETAILED_LABELS QueryOption = 2
    // Describe the current revision (patch set) of the change, including the
    // commit SHA-1 and URLs to fetch from.
    QueryOption_CURRENT_REVISION QueryOption = 4
    // Describe all revisions, not just current.
    QueryOption_ALL_REVISIONS QueryOption = 8
    // Parse and output all header fields from the commit object, including
    // message. Only valid when the CURRENT_REVISION or ALL_REVISIONS option is
    // selected.
    QueryOption_CURRENT_COMMIT QueryOption = 16
    // Parse and output all header fields from the output revisions. If only
    // CURRENT_REVISION was requested then only the current revision’s commit data
    // will be output.
    QueryOption_ALL_COMMITS QueryOption = 32
    // List files modified by the commit and magic files, including basic line
    // counts inserted/deleted per file. Only valid when the CURRENT_REVISION or
    // ALL_REVISIONS option is selected.
    QueryOption_CURRENT_FILES QueryOption = 64
    // List files modified by the commit and magic files, including basic line
    // counts inserted/deleted per file. If only the CURRENT_REVISION was
    // requested then only that commit’s modified files will be output.
    QueryOption_ALL_FILES QueryOption = 128
    // Include _account_id, email and username fields when referencing accounts.
    QueryOption_DETAILED_ACCOUNTS QueryOption = 256
    // Include updates to reviewers set as ReviewerUpdateInfo entities.
    QueryOption_REVIEWER_UPDATES QueryOption = 512
    // Include messages associated with the change.
    QueryOption_MESSAGES QueryOption = 1024
    // Include information on available actions for the change and its current
    // revision. Ignored if the caller is not authenticated.
    QueryOption_CURRENT_ACTIONS QueryOption = 2048
    // Include information on available change actions for the change. Ignored if
    // the caller is not authenticated.
    QueryOption_CHANGE_ACTIONS QueryOption = 4096
    // Include the reviewed field if all of the following are true:
    // - the change is open
    // - the caller is authenticated
    // - the caller has commented on the change more recently than the last update
    //   from the change owner, i.e. this change would show up in the results of
    //   reviewedby:self.
    QueryOption_REVIEWED QueryOption = 8192
    // Skip the mergeable field in ChangeInfo. For fast moving projects, this
    // field must be recomputed often, which is slow for projects with big trees.
    QueryOption_SKIP_MERGEABLE QueryOption = 16384
    // Include the submittable field in ChangeInfo, which can be used to tell if
    // the change is reviewed and ready for submit.
    QueryOption_SUBMITTABLE QueryOption = 32768
    // Include the web_links field in CommitInfo, therefore only valid in
    // combination with CURRENT_COMMIT or ALL_COMMITS.
    QueryOption_WEB_LINKS QueryOption = 65536
    // Include potential problems with the change.
    QueryOption_CHECK QueryOption = 131072
    // Include the full commit message with Gerrit-specific commit footers in the
    // RevisionInfo.
    QueryOption_COMMIT_FOOTERS QueryOption = 262144
    // Include push certificate information in the RevisionInfo. Ignored if signed
    // push is not enabled on the server.
    QueryOption_PUSH_CERTIFICATES QueryOption = 524288
    // Include references to external tracking systems as TrackingIdInfo.
    QueryOption_TRACKING_IDS QueryOption = 1048576
    // Include the commands field in the FetchInfo for revisions. Only valid when
    // the CURRENT_REVISION or ALL_REVISIONS option is selected.
    QueryOption_DOWNLOAD_COMMANDS QueryOption = 2097152
)

func (QueryOption) Descriptor Uses

func (QueryOption) Descriptor() protoreflect.EnumDescriptor

func (QueryOption) Enum Uses

func (x QueryOption) Enum() *QueryOption

func (QueryOption) EnumDescriptor Uses

func (QueryOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryOption.Descriptor instead.

func (QueryOption) Number Uses

func (x QueryOption) Number() protoreflect.EnumNumber

func (QueryOption) String Uses

func (x QueryOption) String() string

func (QueryOption) Type Uses

func (QueryOption) Type() protoreflect.EnumType

type RefInfo Uses

type RefInfo struct {

    // The ref of the branch
    Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
    // The revision the branch points to
    Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
    // contains filtered or unexported fields
}

Information about a branch. See https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#branch-info

func (*RefInfo) Descriptor Uses

func (*RefInfo) Descriptor() ([]byte, []int)

Deprecated: Use RefInfo.ProtoReflect.Descriptor instead.

func (*RefInfo) GetRef Uses

func (x *RefInfo) GetRef() string

func (*RefInfo) GetRevision Uses

func (x *RefInfo) GetRevision() string

func (*RefInfo) ProtoMessage Uses

func (*RefInfo) ProtoMessage()

func (*RefInfo) ProtoReflect Uses

func (x *RefInfo) ProtoReflect() protoreflect.Message

func (*RefInfo) Reset Uses

func (x *RefInfo) Reset()

func (*RefInfo) String Uses

func (x *RefInfo) String() string

type RefInfoRequest Uses

type RefInfoRequest struct {

    // The project name
    Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
    // The ref ID (eg: refs/heads/main).
    Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
    // contains filtered or unexported fields
}

Information to request information about a branch.

func (*RefInfoRequest) Descriptor Uses

func (*RefInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use RefInfoRequest.ProtoReflect.Descriptor instead.

func (*RefInfoRequest) GetProject Uses

func (x *RefInfoRequest) GetProject() string

func (*RefInfoRequest) GetRef Uses

func (x *RefInfoRequest) GetRef() string

func (*RefInfoRequest) ProtoMessage Uses

func (*RefInfoRequest) ProtoMessage()

func (*RefInfoRequest) ProtoReflect Uses

func (x *RefInfoRequest) ProtoReflect() protoreflect.Message

func (*RefInfoRequest) Reset Uses

func (x *RefInfoRequest) Reset()

func (*RefInfoRequest) String Uses

func (x *RefInfoRequest) String() string

type ReviewResult Uses

type ReviewResult struct {

    // 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"`
    // contains filtered or unexported fields
}

Information returned by a SetReview RPC.

Fields are a subset of: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#review-result

func (*ReviewResult) Descriptor Uses

func (*ReviewResult) Descriptor() ([]byte, []int)

Deprecated: Use ReviewResult.ProtoReflect.Descriptor instead.

func (*ReviewResult) GetLabels Uses

func (x *ReviewResult) GetLabels() map[string]int32

func (*ReviewResult) ProtoMessage Uses

func (*ReviewResult) ProtoMessage()

func (*ReviewResult) ProtoReflect Uses

func (x *ReviewResult) ProtoReflect() protoreflect.Message

func (*ReviewResult) Reset Uses

func (x *ReviewResult) Reset()

func (*ReviewResult) String Uses

func (x *ReviewResult) String() string

type ReviewerInfo Uses

type ReviewerInfo struct {

    // The detailed account information about a reviewer.
    Account *AccountInfo `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
    // The approvals as a map of label names to approval values.
    Approvals map[string]int32 `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"`
    // contains filtered or unexported fields
}

Information about a reviewer. A superset of information from AccountInfo.

Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#reviewer-info

func (*ReviewerInfo) Descriptor Uses

func (*ReviewerInfo) Descriptor() ([]byte, []int)

Deprecated: Use ReviewerInfo.ProtoReflect.Descriptor instead.

func (*ReviewerInfo) GetAccount Uses

func (x *ReviewerInfo) GetAccount() *AccountInfo

func (*ReviewerInfo) GetApprovals Uses

func (x *ReviewerInfo) GetApprovals() map[string]int32

func (*ReviewerInfo) ProtoMessage Uses

func (*ReviewerInfo) ProtoMessage()

func (*ReviewerInfo) ProtoReflect Uses

func (x *ReviewerInfo) ProtoReflect() protoreflect.Message

func (*ReviewerInfo) Reset Uses

func (x *ReviewerInfo) Reset()

func (*ReviewerInfo) String Uses

func (x *ReviewerInfo) String() string

type RevisionInfo Uses

type RevisionInfo struct {

    // The kind of this patch set.
    Kind RevisionInfo_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=gerrit.RevisionInfo_Kind" json:"kind,omitempty"`
    // The patch set number.
    Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
    // The uploader of this patch set.
    Uploader *AccountInfo `protobuf:"bytes,3,opt,name=uploader,proto3" json:"uploader,omitempty"`
    // The Git reference for the patch set.
    Ref string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
    // 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"`
    // contains filtered or unexported fields
}

Information about a patch set. Source of truth: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#revision-info

func (*RevisionInfo) Descriptor Uses

func (*RevisionInfo) Descriptor() ([]byte, []int)

Deprecated: Use RevisionInfo.ProtoReflect.Descriptor instead.

func (*RevisionInfo) GetFiles Uses

func (x *RevisionInfo) GetFiles() map[string]*FileInfo

func (*RevisionInfo) GetKind Uses

func (x *RevisionInfo) GetKind() RevisionInfo_Kind

func (*RevisionInfo) GetNumber Uses

func (x *RevisionInfo) GetNumber() int32

func (*RevisionInfo) GetRef Uses

func (x *RevisionInfo) GetRef() string

func (*RevisionInfo) GetUploader Uses

func (x *RevisionInfo) GetUploader() *AccountInfo

func (*RevisionInfo) ProtoMessage Uses

func (*RevisionInfo) ProtoMessage()

func (*RevisionInfo) ProtoReflect Uses

func (x *RevisionInfo) ProtoReflect() protoreflect.Message

func (*RevisionInfo) Reset Uses

func (x *RevisionInfo) Reset()

func (*RevisionInfo) String Uses

func (x *RevisionInfo) String() string

type RevisionInfo_Kind Uses

type RevisionInfo_Kind int32

The kind of change for this revision.

const (
    RevisionInfo_KIND_INVALID              RevisionInfo_Kind = 0
    RevisionInfo_REWORK                    RevisionInfo_Kind = 1
    RevisionInfo_TRIVIAL_REBASE            RevisionInfo_Kind = 2
    RevisionInfo_MERGE_FIRST_PARENT_UPDATE RevisionInfo_Kind = 3
    RevisionInfo_NO_CODE_CHANGE            RevisionInfo_Kind = 4
    RevisionInfo_NO_CHANGE                 RevisionInfo_Kind = 5
)

func (RevisionInfo_Kind) Descriptor Uses

func (RevisionInfo_Kind) Descriptor() protoreflect.EnumDescriptor

func (RevisionInfo_Kind) Enum Uses

func (x RevisionInfo_Kind) Enum() *RevisionInfo_Kind

func (RevisionInfo_Kind) EnumDescriptor Uses

func (RevisionInfo_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use RevisionInfo_Kind.Descriptor instead.

func (RevisionInfo_Kind) Number Uses

func (x RevisionInfo_Kind) Number() protoreflect.EnumNumber

func (RevisionInfo_Kind) String Uses

func (x RevisionInfo_Kind) String() string

func (RevisionInfo_Kind) Type Uses

func (RevisionInfo_Kind) Type() protoreflect.EnumType

type SetReviewRequest Uses

type SetReviewRequest struct {

    // The change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The project of this change. For example, "chromium/src".
    //
    // Optional, but recommended for better routing and faster RPC execution.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    // Unique ID for the revision to query.
    // See
    // 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"`
    // contains filtered or unexported fields
}

Information to set various review bits on a change

Fields are a subset of arguments from: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#set-review https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#review-input

func (*SetReviewRequest) Descriptor Uses

func (*SetReviewRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetReviewRequest.ProtoReflect.Descriptor instead.

func (*SetReviewRequest) GetLabels Uses

func (x *SetReviewRequest) GetLabels() map[string]int32

func (*SetReviewRequest) GetMessage Uses

func (x *SetReviewRequest) GetMessage() string

func (*SetReviewRequest) GetNumber Uses

func (x *SetReviewRequest) GetNumber() int64

func (*SetReviewRequest) GetProject Uses

func (x *SetReviewRequest) GetProject() string

func (*SetReviewRequest) GetRevisionId Uses

func (x *SetReviewRequest) GetRevisionId() string

func (*SetReviewRequest) ProtoMessage Uses

func (*SetReviewRequest) ProtoMessage()

func (*SetReviewRequest) ProtoReflect Uses

func (x *SetReviewRequest) ProtoReflect() protoreflect.Message

func (*SetReviewRequest) Reset Uses

func (x *SetReviewRequest) Reset()

func (*SetReviewRequest) String Uses

func (x *SetReviewRequest) String() string

type SubmitChangeRequest Uses

type SubmitChangeRequest struct {

    // The change number.
    Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
    // The project of this change. For example, "chromium/src".
    //
    // Optional, but recommended for better routing and faster RPC execution.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    // contains filtered or unexported fields
}

Information to submit a change.

This is a placeholder to support the arguments from: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-change https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#submit-input

func (*SubmitChangeRequest) Descriptor Uses

func (*SubmitChangeRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubmitChangeRequest.ProtoReflect.Descriptor instead.

func (*SubmitChangeRequest) GetNumber Uses

func (x *SubmitChangeRequest) GetNumber() int64

func (*SubmitChangeRequest) GetProject Uses

func (x *SubmitChangeRequest) GetProject() string

func (*SubmitChangeRequest) ProtoMessage Uses

func (*SubmitChangeRequest) ProtoMessage()

func (*SubmitChangeRequest) ProtoReflect Uses

func (x *SubmitChangeRequest) ProtoReflect() protoreflect.Message

func (*SubmitChangeRequest) Reset Uses

func (x *SubmitChangeRequest) Reset()

func (*SubmitChangeRequest) String Uses

func (x *SubmitChangeRequest) String() string

type UnimplementedGerritServer Uses

type UnimplementedGerritServer struct {
}

UnimplementedGerritServer can be embedded to have forward compatible implementations.

func (*UnimplementedGerritServer) AbandonChange Uses

func (*UnimplementedGerritServer) AbandonChange(context.Context, *AbandonChangeRequest) (*ChangeInfo, error)

func (*UnimplementedGerritServer) AddReviewer Uses

func (*UnimplementedGerritServer) AddReviewer(context.Context, *AddReviewerRequest) (*AddReviewerResult, error)

func (*UnimplementedGerritServer) AddToAttentionSet Uses

func (*UnimplementedGerritServer) AddToAttentionSet(context.Context, *AttentionSetRequest) (*AccountInfo, error)

func (*UnimplementedGerritServer) ChangeEditFileContent Uses

func (*UnimplementedGerritServer) ChangeEditFileContent(context.Context, *ChangeEditFileContentRequest) (*empty.Empty, error)

func (*UnimplementedGerritServer) ChangeEditPublish Uses

func (*UnimplementedGerritServer) ChangeEditPublish(context.Context, *ChangeEditPublishRequest) (*empty.Empty, error)

func (*UnimplementedGerritServer) CreateChange Uses

func (*UnimplementedGerritServer) CreateChange(context.Context, *CreateChangeRequest) (*ChangeInfo, error)

func (*UnimplementedGerritServer) DeleteEditFileContent Uses

func (*UnimplementedGerritServer) DeleteEditFileContent(context.Context, *DeleteEditFileContentRequest) (*empty.Empty, error)

func (*UnimplementedGerritServer) GetChange Uses

func (*UnimplementedGerritServer) GetChange(context.Context, *GetChangeRequest) (*ChangeInfo, error)

func (*UnimplementedGerritServer) GetMergeable Uses

func (*UnimplementedGerritServer) GetMergeable(context.Context, *GetMergeableRequest) (*MergeableInfo, error)

func (*UnimplementedGerritServer) GetRefInfo Uses

func (*UnimplementedGerritServer) GetRefInfo(context.Context, *RefInfoRequest) (*RefInfo, error)

func (*UnimplementedGerritServer) ListChanges Uses

func (*UnimplementedGerritServer) ListChanges(context.Context, *ListChangesRequest) (*ListChangesResponse, error)

func (*UnimplementedGerritServer) ListFiles Uses

func (*UnimplementedGerritServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)

func (*UnimplementedGerritServer) ListProjects Uses

func (*UnimplementedGerritServer) ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)

func (*UnimplementedGerritServer) SetReview Uses

func (*UnimplementedGerritServer) SetReview(context.Context, *SetReviewRequest) (*ReviewResult, error)

func (*UnimplementedGerritServer) SubmitChange Uses

func (*UnimplementedGerritServer) SubmitChange(context.Context, *SubmitChangeRequest) (*ChangeInfo, error)

type WebLinkInfo Uses

type WebLinkInfo struct {

    // The link name
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Link URL
    Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
    // URL to link icon
    ImageUrl string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
    // contains filtered or unexported fields
}

Describes a link to an external site See https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#web-link-info

func (*WebLinkInfo) Descriptor Uses

func (*WebLinkInfo) Descriptor() ([]byte, []int)

Deprecated: Use WebLinkInfo.ProtoReflect.Descriptor instead.

func (*WebLinkInfo) GetImageUrl Uses

func (x *WebLinkInfo) GetImageUrl() string

func (*WebLinkInfo) GetName Uses

func (x *WebLinkInfo) GetName() string

func (*WebLinkInfo) GetUrl Uses

func (x *WebLinkInfo) GetUrl() string

func (*WebLinkInfo) ProtoMessage Uses

func (*WebLinkInfo) ProtoMessage()

func (*WebLinkInfo) ProtoReflect Uses

func (x *WebLinkInfo) ProtoReflect() protoreflect.Message

func (*WebLinkInfo) Reset Uses

func (x *WebLinkInfo) Reset()

func (*WebLinkInfo) String Uses

func (x *WebLinkInfo) String() string

Package gerrit imports 16 packages (graph) and is imported by 12 packages. Updated 2020-09-29. Refresh now. Tools for package owners.