Back to godoc.org

Package gerrit

v0.0.0-...-d4769a7
Latest Go to latest

The latest major version is .

Published: Aug 1, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package gerrit contains Gerrit service definition.

Package gerrit is a generated GoMock package.

Index

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 ChangeInfo_Status_name = map[int32]string{
	0: "STATUS_INVALID",
	1: "NEW",
	2: "MERGED",
	3: "ABANDONED",
}
var ChangeInfo_Status_value = map[string]int32{
	"STATUS_INVALID": 0,
	"NEW":            1,
	"MERGED":         2,
	"ABANDONED":      3,
}
var FileInfo_Status_name = map[int32]string{
	0: "M",
	1: "A",
	2: "D",
	3: "R",
	4: "C",
	5: "W",
}
var FileInfo_Status_value = map[string]int32{
	"M": 0,
	"A": 1,
	"D": 2,
	"R": 3,
	"C": 4,
	"W": 5,
}
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",
}
var 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,
}
var MergeableStrategy_name = map[int32]string{
	0: "MERGEABLE_STRATEGY_UNSPECIFIED",
	1: "RECURSIVE",
	2: "RESOLVE",
	3: "SIMPLE_TWO_WAY_IN_CORE",
	4: "OURS",
	5: "THEIRS",
}
var MergeableStrategy_value = map[string]int32{
	"MERGEABLE_STRATEGY_UNSPECIFIED": 0,
	"RECURSIVE":                      1,
	"RESOLVE":                        2,
	"SIMPLE_TWO_WAY_IN_CORE":         3,
	"OURS":                           4,
	"THEIRS":                         5,
}
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",
}
var 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,
}
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",
}
var RevisionInfo_Kind_value = map[string]int32{
	"KIND_INVALID":              0,
	"REWORK":                    1,
	"TRIVIAL_REBASE":            2,
	"MERGE_FIRST_PARENT_UPDATE": 3,
	"NO_CODE_CHANGE":            4,
	"NO_CHANGE":                 5,
}

func FileDescriptorSet

func FileDescriptorSet() *descriptor.FileDescriptorSet

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

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterGerritServer

func RegisterGerritServer(s prpc.Registrar, srv GerritServer)

type AbandonChangeRequest

type AbandonChangeRequest struct {
	// The change number.
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// The project of this change. For example, "chromium/src".
	//
	// Optional, but recommended for better routing and faster RPC execution.
	Project              string   `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	Message              string   `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

func (*AbandonChangeRequest) GetMessage

func (m *AbandonChangeRequest) GetMessage() string

func (*AbandonChangeRequest) GetNumber

func (m *AbandonChangeRequest) GetNumber() int64

func (*AbandonChangeRequest) GetProject

func (m *AbandonChangeRequest) GetProject() string

func (*AbandonChangeRequest) ProtoMessage

func (*AbandonChangeRequest) ProtoMessage()

func (*AbandonChangeRequest) Reset

func (m *AbandonChangeRequest) Reset()

func (*AbandonChangeRequest) String

func (m *AbandonChangeRequest) String() string

func (*AbandonChangeRequest) XXX_DiscardUnknown

func (m *AbandonChangeRequest) XXX_DiscardUnknown()

func (*AbandonChangeRequest) XXX_Marshal

func (m *AbandonChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AbandonChangeRequest) XXX_Merge

func (m *AbandonChangeRequest) XXX_Merge(src proto.Message)

func (*AbandonChangeRequest) XXX_Size

func (m *AbandonChangeRequest) XXX_Size() int

func (*AbandonChangeRequest) XXX_Unmarshal

func (m *AbandonChangeRequest) XXX_Unmarshal(b []byte) error

type AccountInfo

type AccountInfo struct {
	// The full name of the user.
	// Only set if detailed account information is requested.
	// See option DETAILED_ACCOUNTS for change queries
	// and option DETAILS for account queries.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The email address the user prefers to be contacted through.
	// Only set if detailed account information is requested.
	// See option DETAILED_ACCOUNTS for change queries
	// and options DETAILS and ALL_EMAILS for account queries.
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// A list of the secondary email addresses of the user.
	// Only set for account queries when the ALL_EMAILS option or the suggest
	// parameter is set. Secondary emails are only included if the calling user
	// has the Modify Account, and hence is allowed to see secondary emails of
	// other users.
	SecondaryEmails []string `protobuf:"bytes,3,rep,name=secondary_emails,json=secondaryEmails,proto3" json:"secondary_emails,omitempty"`
	// The username of the user.
	// Only set if detailed account information is requested.
	// See option DETAILED_ACCOUNTS for change queries
	// and option DETAILS for account queries.
	Username             string   `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*AccountInfo) Descriptor

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

func (*AccountInfo) GetEmail

func (m *AccountInfo) GetEmail() string

func (*AccountInfo) GetName

func (m *AccountInfo) GetName() string

func (*AccountInfo) GetSecondaryEmails

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

func (*AccountInfo) GetUsername

func (m *AccountInfo) GetUsername() string

func (*AccountInfo) ProtoMessage

func (*AccountInfo) ProtoMessage()

func (*AccountInfo) Reset

func (m *AccountInfo) Reset()

func (*AccountInfo) String

func (m *AccountInfo) String() string

func (*AccountInfo) XXX_DiscardUnknown

func (m *AccountInfo) XXX_DiscardUnknown()

func (*AccountInfo) XXX_Marshal

func (m *AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountInfo) XXX_Merge

func (m *AccountInfo) XXX_Merge(src proto.Message)

func (*AccountInfo) XXX_Size

func (m *AccountInfo) XXX_Size() int

func (*AccountInfo) XXX_Unmarshal

func (m *AccountInfo) XXX_Unmarshal(b []byte) error

type ChangeEditFileContentRequest

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

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

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

func (*ChangeEditFileContentRequest) GetContent

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

func (*ChangeEditFileContentRequest) GetFilePath

func (m *ChangeEditFileContentRequest) GetFilePath() string

func (*ChangeEditFileContentRequest) GetNumber

func (m *ChangeEditFileContentRequest) GetNumber() int64

func (*ChangeEditFileContentRequest) GetProject

func (m *ChangeEditFileContentRequest) GetProject() string

func (*ChangeEditFileContentRequest) ProtoMessage

func (*ChangeEditFileContentRequest) ProtoMessage()

func (*ChangeEditFileContentRequest) Reset

func (m *ChangeEditFileContentRequest) Reset()

func (*ChangeEditFileContentRequest) String

func (m *ChangeEditFileContentRequest) String() string

func (*ChangeEditFileContentRequest) XXX_DiscardUnknown

func (m *ChangeEditFileContentRequest) XXX_DiscardUnknown()

func (*ChangeEditFileContentRequest) XXX_Marshal

func (m *ChangeEditFileContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChangeEditFileContentRequest) XXX_Merge

func (m *ChangeEditFileContentRequest) XXX_Merge(src proto.Message)

func (*ChangeEditFileContentRequest) XXX_Size

func (m *ChangeEditFileContentRequest) XXX_Size() int

func (*ChangeEditFileContentRequest) XXX_Unmarshal

func (m *ChangeEditFileContentRequest) XXX_Unmarshal(b []byte) error

type ChangeEditPublishRequest

type ChangeEditPublishRequest struct {
	// The change number.
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// The project of this change. For example, "chromium/src".
	//
	// Optional, but recommended for better routing and faster RPC execution.
	Project              string   `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

func (*ChangeEditPublishRequest) GetNumber

func (m *ChangeEditPublishRequest) GetNumber() int64

func (*ChangeEditPublishRequest) GetProject

func (m *ChangeEditPublishRequest) GetProject() string

func (*ChangeEditPublishRequest) ProtoMessage

func (*ChangeEditPublishRequest) ProtoMessage()

func (*ChangeEditPublishRequest) Reset

func (m *ChangeEditPublishRequest) Reset()

func (*ChangeEditPublishRequest) String

func (m *ChangeEditPublishRequest) String() string

func (*ChangeEditPublishRequest) XXX_DiscardUnknown

func (m *ChangeEditPublishRequest) XXX_DiscardUnknown()

func (*ChangeEditPublishRequest) XXX_Marshal

func (m *ChangeEditPublishRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChangeEditPublishRequest) XXX_Merge

func (m *ChangeEditPublishRequest) XXX_Merge(src proto.Message)

func (*ChangeEditPublishRequest) XXX_Size

func (m *ChangeEditPublishRequest) XXX_Size() int

func (*ChangeEditPublishRequest) XXX_Unmarshal

func (m *ChangeEditPublishRequest) XXX_Unmarshal(b []byte) error

type ChangeInfo

type ChangeInfo struct {
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`

	Owner *AccountInfo `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`

	Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`

	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"`

	CurrentRevision string `protobuf:"bytes,6,opt,name=current_revision,json=currentRevision,proto3" json:"current_revision,omitempty"`

	Revisions map[string]*RevisionInfo "" /* 159 byte string literal not displayed */

	Labels               map[string]*LabelInfo "" /* 153 byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

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

func (*ChangeInfo) Descriptor

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

func (*ChangeInfo) GetCurrentRevision

func (m *ChangeInfo) GetCurrentRevision() string

func (*ChangeInfo) GetLabels

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

func (*ChangeInfo) GetNumber

func (m *ChangeInfo) GetNumber() int64

func (*ChangeInfo) GetOwner

func (m *ChangeInfo) GetOwner() *AccountInfo

func (*ChangeInfo) GetProject

func (m *ChangeInfo) GetProject() string

func (*ChangeInfo) GetRef

func (m *ChangeInfo) GetRef() string

func (*ChangeInfo) GetRevisions

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

func (*ChangeInfo) GetStatus

func (m *ChangeInfo) GetStatus() ChangeInfo_Status

func (*ChangeInfo) ProtoMessage

func (*ChangeInfo) ProtoMessage()

func (*ChangeInfo) Reset

func (m *ChangeInfo) Reset()

func (*ChangeInfo) String

func (m *ChangeInfo) String() string

func (*ChangeInfo) XXX_DiscardUnknown

func (m *ChangeInfo) XXX_DiscardUnknown()

func (*ChangeInfo) XXX_Marshal

func (m *ChangeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChangeInfo) XXX_Merge

func (m *ChangeInfo) XXX_Merge(src proto.Message)

func (*ChangeInfo) XXX_Size

func (m *ChangeInfo) XXX_Size() int

func (*ChangeInfo) XXX_Unmarshal

func (m *ChangeInfo) XXX_Unmarshal(b []byte) error

type ChangeInfo_Status

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) EnumDescriptor

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

func (ChangeInfo_Status) String

func (x ChangeInfo_Status) String() string

type CreateChangeRequest

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

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

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

func (*CreateChangeRequest) GetBaseCommit

func (m *CreateChangeRequest) GetBaseCommit() string

func (*CreateChangeRequest) GetProject

func (m *CreateChangeRequest) GetProject() string

func (*CreateChangeRequest) GetRef

func (m *CreateChangeRequest) GetRef() string

func (*CreateChangeRequest) GetSubject

func (m *CreateChangeRequest) GetSubject() string

func (*CreateChangeRequest) ProtoMessage

func (*CreateChangeRequest) ProtoMessage()

func (*CreateChangeRequest) Reset

func (m *CreateChangeRequest) Reset()

func (*CreateChangeRequest) String

func (m *CreateChangeRequest) String() string

func (*CreateChangeRequest) XXX_DiscardUnknown

func (m *CreateChangeRequest) XXX_DiscardUnknown()

func (*CreateChangeRequest) XXX_Marshal

func (m *CreateChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateChangeRequest) XXX_Merge

func (m *CreateChangeRequest) XXX_Merge(src proto.Message)

func (*CreateChangeRequest) XXX_Size

func (m *CreateChangeRequest) XXX_Size() int

func (*CreateChangeRequest) XXX_Unmarshal

func (m *CreateChangeRequest) XXX_Unmarshal(b []byte) error

type DeleteEditFileContentRequest

type DeleteEditFileContentRequest struct {
	// The change number.
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// The project of this change. For example, "chromium/src".
	//
	// Optional, but recommended for better routing and faster RPC execution.
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// Path to the file to edit inside the project.
	FilePath             string   `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

func (*DeleteEditFileContentRequest) GetFilePath

func (m *DeleteEditFileContentRequest) GetFilePath() string

func (*DeleteEditFileContentRequest) GetNumber

func (m *DeleteEditFileContentRequest) GetNumber() int64

func (*DeleteEditFileContentRequest) GetProject

func (m *DeleteEditFileContentRequest) GetProject() string

func (*DeleteEditFileContentRequest) ProtoMessage

func (*DeleteEditFileContentRequest) ProtoMessage()

func (*DeleteEditFileContentRequest) Reset

func (m *DeleteEditFileContentRequest) Reset()

func (*DeleteEditFileContentRequest) String

func (m *DeleteEditFileContentRequest) String() string

func (*DeleteEditFileContentRequest) XXX_DiscardUnknown

func (m *DeleteEditFileContentRequest) XXX_DiscardUnknown()

func (*DeleteEditFileContentRequest) XXX_Marshal

func (m *DeleteEditFileContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteEditFileContentRequest) XXX_Merge

func (m *DeleteEditFileContentRequest) XXX_Merge(src proto.Message)

func (*DeleteEditFileContentRequest) XXX_Size

func (m *DeleteEditFileContentRequest) XXX_Size() int

func (*DeleteEditFileContentRequest) XXX_Unmarshal

func (m *DeleteEditFileContentRequest) XXX_Unmarshal(b []byte) error

type FileInfo

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

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

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

func (*FileInfo) GetBinary

func (m *FileInfo) GetBinary() bool

func (*FileInfo) GetLinesDeleted

func (m *FileInfo) GetLinesDeleted() int32

func (*FileInfo) GetLinesInserted

func (m *FileInfo) GetLinesInserted() int32

func (*FileInfo) GetOldPath

func (m *FileInfo) GetOldPath() string

func (*FileInfo) GetSize

func (m *FileInfo) GetSize() int64

func (*FileInfo) GetSizeDelta

func (m *FileInfo) GetSizeDelta() int64

func (*FileInfo) GetStatus

func (m *FileInfo) GetStatus() FileInfo_Status

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) Reset

func (m *FileInfo) Reset()

func (*FileInfo) String

func (m *FileInfo) String() string

func (*FileInfo) XXX_DiscardUnknown

func (m *FileInfo) XXX_DiscardUnknown()

func (*FileInfo) XXX_Marshal

func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileInfo) XXX_Merge

func (m *FileInfo) XXX_Merge(src proto.Message)

func (*FileInfo) XXX_Size

func (m *FileInfo) XXX_Size() int

func (*FileInfo) XXX_Unmarshal

func (m *FileInfo) XXX_Unmarshal(b []byte) error

type FileInfo_Status

type FileInfo_Status int32
const (
	FileInfo_M FileInfo_Status = 0
	FileInfo_A FileInfo_Status = 1
	FileInfo_D FileInfo_Status = 2
	FileInfo_R FileInfo_Status = 3
	FileInfo_C FileInfo_Status = 4
	FileInfo_W FileInfo_Status = 5
)

func (FileInfo_Status) EnumDescriptor

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

func (FileInfo_Status) String

func (x FileInfo_Status) String() string

type GerritClient

type GerritClient interface {
	// 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)
	// 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)
	// 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)
}

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

func NewGerritClient(cc grpc.ClientConnInterface) GerritClient

func NewGerritPRPCClient

func NewGerritPRPCClient(client *prpc.Client) GerritClient

type GerritServer

type GerritServer interface {
	// 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)
	// 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)
	// 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)
}

GerritServer is the server API for Gerrit service.

type GetChangeRequest

type GetChangeRequest struct {
	// Change number.
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// What to include in the response.
	Options              []QueryOption `protobuf:"varint,2,rep,packed,name=options,proto3,enum=gerrit.QueryOption" json:"options,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

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

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

func (*GetChangeRequest) GetNumber

func (m *GetChangeRequest) GetNumber() int64

func (*GetChangeRequest) GetOptions

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

func (*GetChangeRequest) ProtoMessage

func (*GetChangeRequest) ProtoMessage()

func (*GetChangeRequest) Reset

func (m *GetChangeRequest) Reset()

func (*GetChangeRequest) String

func (m *GetChangeRequest) String() string

func (*GetChangeRequest) Validate

func (r *GetChangeRequest) Validate() error

Validate returns an error if r is invalid.

func (*GetChangeRequest) XXX_DiscardUnknown

func (m *GetChangeRequest) XXX_DiscardUnknown()

func (*GetChangeRequest) XXX_Marshal

func (m *GetChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetChangeRequest) XXX_Merge

func (m *GetChangeRequest) XXX_Merge(src proto.Message)

func (*GetChangeRequest) XXX_Size

func (m *GetChangeRequest) XXX_Size() int

func (*GetChangeRequest) XXX_Unmarshal

func (m *GetChangeRequest) XXX_Unmarshal(b []byte) error

type GetMergeableRequest

type GetMergeableRequest struct {
	// The change number.
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// The project of this change. For example, "chromium/src".
	//
	// Optional, but recommended for better routing and faster RPC execution.
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// Unique ID for the revision to query.
	// 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"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*GetMergeableRequest) Descriptor

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

func (*GetMergeableRequest) GetNumber

func (m *GetMergeableRequest) GetNumber() int64

func (*GetMergeableRequest) GetProject

func (m *GetMergeableRequest) GetProject() string

func (*GetMergeableRequest) GetRevisionId

func (m *GetMergeableRequest) GetRevisionId() string

func (*GetMergeableRequest) GetSource

func (m *GetMergeableRequest) GetSource() string

func (*GetMergeableRequest) GetStrategy

func (m *GetMergeableRequest) GetStrategy() MergeableStrategy

func (*GetMergeableRequest) ProtoMessage

func (*GetMergeableRequest) ProtoMessage()

func (*GetMergeableRequest) Reset

func (m *GetMergeableRequest) Reset()

func (*GetMergeableRequest) String

func (m *GetMergeableRequest) String() string

func (*GetMergeableRequest) XXX_DiscardUnknown

func (m *GetMergeableRequest) XXX_DiscardUnknown()

func (*GetMergeableRequest) XXX_Marshal

func (m *GetMergeableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetMergeableRequest) XXX_Merge

func (m *GetMergeableRequest) XXX_Merge(src proto.Message)

func (*GetMergeableRequest) XXX_Size

func (m *GetMergeableRequest) XXX_Size() int

func (*GetMergeableRequest) XXX_Unmarshal

func (m *GetMergeableRequest) XXX_Unmarshal(b []byte) error

type LabelInfo

type LabelInfo struct {
	// Whether the label is optional.
	Optional bool `protobuf:"varint,1,opt,name=optional,proto3" json:"optional,omitempty"`
	// One user who approved this label on the change.
	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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*LabelInfo) Descriptor

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

func (*LabelInfo) GetApproved

func (m *LabelInfo) GetApproved() *AccountInfo

func (*LabelInfo) GetBlocking

func (m *LabelInfo) GetBlocking() bool

func (*LabelInfo) GetDefaultValue

func (m *LabelInfo) GetDefaultValue() int32

func (*LabelInfo) GetDisliked

func (m *LabelInfo) GetDisliked() *AccountInfo

func (*LabelInfo) GetOptional

func (m *LabelInfo) GetOptional() bool

func (*LabelInfo) GetRecommended

func (m *LabelInfo) GetRecommended() *AccountInfo

func (*LabelInfo) GetRejected

func (m *LabelInfo) GetRejected() *AccountInfo

func (*LabelInfo) GetValue

func (m *LabelInfo) GetValue() int32

func (*LabelInfo) ProtoMessage

func (*LabelInfo) ProtoMessage()

func (*LabelInfo) Reset

func (m *LabelInfo) Reset()

func (*LabelInfo) String

func (m *LabelInfo) String() string

func (*LabelInfo) XXX_DiscardUnknown

func (m *LabelInfo) XXX_DiscardUnknown()

func (*LabelInfo) XXX_Marshal

func (m *LabelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LabelInfo) XXX_Merge

func (m *LabelInfo) XXX_Merge(src proto.Message)

func (*LabelInfo) XXX_Size

func (m *LabelInfo) XXX_Size() int

func (*LabelInfo) XXX_Unmarshal

func (m *LabelInfo) XXX_Unmarshal(b []byte) error

type ListFilesRequest

type ListFilesRequest struct {
	// Change number.
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// The project of this change. For example, "chromium/src".
	//
	// Optional, but recommended for better routing and faster RPC execution.
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// Unique ID for the revision to query.
	// 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Information for requesting the files in a change.

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

func (*ListFilesRequest) Descriptor

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

func (*ListFilesRequest) GetNumber

func (m *ListFilesRequest) GetNumber() int64

func (*ListFilesRequest) GetParent

func (m *ListFilesRequest) GetParent() int64

func (*ListFilesRequest) GetProject

func (m *ListFilesRequest) GetProject() string

func (*ListFilesRequest) GetRevisionId

func (m *ListFilesRequest) GetRevisionId() string

func (*ListFilesRequest) GetSubstringQuery

func (m *ListFilesRequest) GetSubstringQuery() string

func (*ListFilesRequest) ProtoMessage

func (*ListFilesRequest) ProtoMessage()

func (*ListFilesRequest) Reset

func (m *ListFilesRequest) Reset()

func (*ListFilesRequest) String

func (m *ListFilesRequest) String() string

func (*ListFilesRequest) XXX_DiscardUnknown

func (m *ListFilesRequest) XXX_DiscardUnknown()

func (*ListFilesRequest) XXX_Marshal

func (m *ListFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFilesRequest) XXX_Merge

func (m *ListFilesRequest) XXX_Merge(src proto.Message)

func (*ListFilesRequest) XXX_Size

func (m *ListFilesRequest) XXX_Size() int

func (*ListFilesRequest) XXX_Unmarshal

func (m *ListFilesRequest) XXX_Unmarshal(b []byte) error

type ListFilesResponse

type ListFilesResponse struct {
	Files                map[string]*FileInfo "" /* 151 byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Information about the files in a change.

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

func (*ListFilesResponse) Descriptor

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

func (*ListFilesResponse) GetFiles

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

func (*ListFilesResponse) ProtoMessage

func (*ListFilesResponse) ProtoMessage()

func (*ListFilesResponse) Reset

func (m *ListFilesResponse) Reset()

func (*ListFilesResponse) String

func (m *ListFilesResponse) String() string

func (*ListFilesResponse) XXX_DiscardUnknown

func (m *ListFilesResponse) XXX_DiscardUnknown()

func (*ListFilesResponse) XXX_Marshal

func (m *ListFilesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFilesResponse) XXX_Merge

func (m *ListFilesResponse) XXX_Merge(src proto.Message)

func (*ListFilesResponse) XXX_Size

func (m *ListFilesResponse) XXX_Size() int

func (*ListFilesResponse) XXX_Unmarshal

func (m *ListFilesResponse) XXX_Unmarshal(b []byte) error

type MergeableInfo

type MergeableInfo struct {
	SubmitType MergeableInfo_SubmitType "" /* 129 byte string literal not displayed */

	Strategy MergeableStrategy `protobuf:"varint,2,opt,name=strategy,proto3,enum=gerrit.MergeableStrategy" json:"strategy,omitempty"`

	Mergeable bool `protobuf:"varint,3,opt,name=mergeable,proto3" json:"mergeable,omitempty"`

	CommitMerged bool `protobuf:"varint,4,opt,name=commit_merged,json=commitMerged,proto3" json:"commit_merged,omitempty"`

	ContentMerged bool `protobuf:"varint,5,opt,name=content_merged,json=contentMerged,proto3" json:"content_merged,omitempty"`

	Conflicts []string `protobuf:"bytes,6,rep,name=conflicts,proto3" json:"conflicts,omitempty"`

	MergeableInto        []string `protobuf:"bytes,7,rep,name=mergeable_into,json=mergeableInto,proto3" json:"mergeable_into,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Contains information about the mergeability of a change.

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

func (*MergeableInfo) Descriptor

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

func (*MergeableInfo) GetCommitMerged

func (m *MergeableInfo) GetCommitMerged() bool

func (*MergeableInfo) GetConflicts

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

func (*MergeableInfo) GetContentMerged

func (m *MergeableInfo) GetContentMerged() bool

func (*MergeableInfo) GetMergeable

func (m *MergeableInfo) GetMergeable() bool

func (*MergeableInfo) GetMergeableInto

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

func (*MergeableInfo) GetStrategy

func (m *MergeableInfo) GetStrategy() MergeableStrategy

func (*MergeableInfo) GetSubmitType

func (m *MergeableInfo) GetSubmitType() MergeableInfo_SubmitType

func (*MergeableInfo) ProtoMessage

func (*MergeableInfo) ProtoMessage()

func (*MergeableInfo) Reset

func (m *MergeableInfo) Reset()

func (*MergeableInfo) String

func (m *MergeableInfo) String() string

func (*MergeableInfo) XXX_DiscardUnknown

func (m *MergeableInfo) XXX_DiscardUnknown()

func (*MergeableInfo) XXX_Marshal

func (m *MergeableInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MergeableInfo) XXX_Merge

func (m *MergeableInfo) XXX_Merge(src proto.Message)

func (*MergeableInfo) XXX_Size

func (m *MergeableInfo) XXX_Size() int

func (*MergeableInfo) XXX_Unmarshal

func (m *MergeableInfo) XXX_Unmarshal(b []byte) error

type MergeableInfo_SubmitType

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

func (MergeableInfo_SubmitType) EnumDescriptor

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

func (MergeableInfo_SubmitType) String

func (x MergeableInfo_SubmitType) String() string

type MergeableStrategy

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

func (MergeableStrategy) EnumDescriptor

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

func (MergeableStrategy) String

func (x MergeableStrategy) String() string

type MockGerritClient

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

MockGerritClient is a mock of GerritClient interface

func NewMockGerritClient

func NewMockGerritClient(ctrl *gomock.Controller) *MockGerritClient

NewMockGerritClient creates a new mock instance

func (*MockGerritClient) AbandonChange

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

AbandonChange mocks base method

func (*MockGerritClient) ChangeEditFileContent

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

ChangeEditFileContent mocks base method

func (*MockGerritClient) ChangeEditPublish

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

ChangeEditPublish mocks base method

func (*MockGerritClient) CreateChange

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

CreateChange mocks base method

func (*MockGerritClient) DeleteEditFileContent

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

DeleteEditFileContent mocks base method

func (*MockGerritClient) EXPECT

func (m *MockGerritClient) EXPECT() *MockGerritClientMockRecorder

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

func (*MockGerritClient) GetChange

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

GetChange mocks base method

func (*MockGerritClient) GetMergeable

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

GetMergeable mocks base method

func (*MockGerritClient) ListFiles

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

ListFiles mocks base method

func (*MockGerritClient) SetReview

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

SetReview mocks base method

func (*MockGerritClient) SubmitChange

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

SubmitChange mocks base method

type MockGerritClientMockRecorder

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

MockGerritClientMockRecorder is the mock recorder for MockGerritClient

func (*MockGerritClientMockRecorder) AbandonChange

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

AbandonChange indicates an expected call of AbandonChange

func (*MockGerritClientMockRecorder) ChangeEditFileContent

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

ChangeEditFileContent indicates an expected call of ChangeEditFileContent

func (*MockGerritClientMockRecorder) ChangeEditPublish

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

ChangeEditPublish indicates an expected call of ChangeEditPublish

func (*MockGerritClientMockRecorder) CreateChange

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

CreateChange indicates an expected call of CreateChange

func (*MockGerritClientMockRecorder) DeleteEditFileContent

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

DeleteEditFileContent indicates an expected call of DeleteEditFileContent

func (*MockGerritClientMockRecorder) GetChange

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

GetChange indicates an expected call of GetChange

func (*MockGerritClientMockRecorder) GetMergeable

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

GetMergeable indicates an expected call of GetMergeable

func (*MockGerritClientMockRecorder) ListFiles

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

ListFiles indicates an expected call of ListFiles

func (*MockGerritClientMockRecorder) SetReview

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

SetReview indicates an expected call of SetReview

func (*MockGerritClientMockRecorder) SubmitChange

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

SubmitChange indicates an expected call of SubmitChange

type MockGerritServer

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

MockGerritServer is a mock of GerritServer interface

func NewMockGerritServer

func NewMockGerritServer(ctrl *gomock.Controller) *MockGerritServer

NewMockGerritServer creates a new mock instance

func (*MockGerritServer) AbandonChange

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

AbandonChange mocks base method

func (*MockGerritServer) ChangeEditFileContent

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

ChangeEditFileContent mocks base method

func (*MockGerritServer) ChangeEditPublish

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

ChangeEditPublish mocks base method

func (*MockGerritServer) CreateChange

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

CreateChange mocks base method

func (*MockGerritServer) DeleteEditFileContent

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

DeleteEditFileContent mocks base method

func (*MockGerritServer) EXPECT

func (m *MockGerritServer) EXPECT() *MockGerritServerMockRecorder

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

func (*MockGerritServer) GetChange

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

GetChange mocks base method

func (*MockGerritServer) GetMergeable

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

GetMergeable mocks base method

func (*MockGerritServer) ListFiles

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

ListFiles mocks base method

func (*MockGerritServer) SetReview

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

SetReview mocks base method

func (*MockGerritServer) SubmitChange

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

SubmitChange mocks base method

type MockGerritServerMockRecorder

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

MockGerritServerMockRecorder is the mock recorder for MockGerritServer

func (*MockGerritServerMockRecorder) AbandonChange

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

AbandonChange indicates an expected call of AbandonChange

func (*MockGerritServerMockRecorder) ChangeEditFileContent

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

ChangeEditFileContent indicates an expected call of ChangeEditFileContent

func (*MockGerritServerMockRecorder) ChangeEditPublish

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

ChangeEditPublish indicates an expected call of ChangeEditPublish

func (*MockGerritServerMockRecorder) CreateChange

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

CreateChange indicates an expected call of CreateChange

func (*MockGerritServerMockRecorder) DeleteEditFileContent

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

DeleteEditFileContent indicates an expected call of DeleteEditFileContent

func (*MockGerritServerMockRecorder) GetChange

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

GetChange indicates an expected call of GetChange

func (*MockGerritServerMockRecorder) GetMergeable

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

GetMergeable indicates an expected call of GetMergeable

func (*MockGerritServerMockRecorder) ListFiles

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

ListFiles indicates an expected call of ListFiles

func (*MockGerritServerMockRecorder) SetReview

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

SetReview indicates an expected call of SetReview

func (*MockGerritServerMockRecorder) SubmitChange

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

SubmitChange indicates an expected call of SubmitChange

type QueryOption

type QueryOption int32

Specifies what extra information to include in the response.

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

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

func (QueryOption) EnumDescriptor

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

func (QueryOption) String

func (x QueryOption) String() string

type ReviewResult

type ReviewResult struct {
	Labels               map[string]int32 "" /* 154 byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

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

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

func (*ReviewResult) GetLabels

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

func (*ReviewResult) ProtoMessage

func (*ReviewResult) ProtoMessage()

func (*ReviewResult) Reset

func (m *ReviewResult) Reset()

func (*ReviewResult) String

func (m *ReviewResult) String() string

func (*ReviewResult) XXX_DiscardUnknown

func (m *ReviewResult) XXX_DiscardUnknown()

func (*ReviewResult) XXX_Marshal

func (m *ReviewResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReviewResult) XXX_Merge

func (m *ReviewResult) XXX_Merge(src proto.Message)

func (*ReviewResult) XXX_Size

func (m *ReviewResult) XXX_Size() int

func (*ReviewResult) XXX_Unmarshal

func (m *ReviewResult) XXX_Unmarshal(b []byte) error

type RevisionInfo

type RevisionInfo struct {
	Kind RevisionInfo_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=gerrit.RevisionInfo_Kind" json:"kind,omitempty"`

	Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`

	Uploader *AccountInfo `protobuf:"bytes,3,opt,name=uploader,proto3" json:"uploader,omitempty"`

	Ref string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`

	Files                map[string]*FileInfo "" /* 151 byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

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

func (*RevisionInfo) Descriptor

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

func (*RevisionInfo) GetFiles

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

func (*RevisionInfo) GetKind

func (m *RevisionInfo) GetKind() RevisionInfo_Kind

func (*RevisionInfo) GetNumber

func (m *RevisionInfo) GetNumber() int32

func (*RevisionInfo) GetRef

func (m *RevisionInfo) GetRef() string

func (*RevisionInfo) GetUploader

func (m *RevisionInfo) GetUploader() *AccountInfo

func (*RevisionInfo) ProtoMessage

func (*RevisionInfo) ProtoMessage()

func (*RevisionInfo) Reset

func (m *RevisionInfo) Reset()

func (*RevisionInfo) String

func (m *RevisionInfo) String() string

func (*RevisionInfo) XXX_DiscardUnknown

func (m *RevisionInfo) XXX_DiscardUnknown()

func (*RevisionInfo) XXX_Marshal

func (m *RevisionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RevisionInfo) XXX_Merge

func (m *RevisionInfo) XXX_Merge(src proto.Message)

func (*RevisionInfo) XXX_Size

func (m *RevisionInfo) XXX_Size() int

func (*RevisionInfo) XXX_Unmarshal

func (m *RevisionInfo) XXX_Unmarshal(b []byte) error

type RevisionInfo_Kind

type RevisionInfo_Kind int32

The kind of change for this revision.

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

func (RevisionInfo_Kind) EnumDescriptor

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

func (RevisionInfo_Kind) String

func (x RevisionInfo_Kind) String() string

type SetReviewRequest

type SetReviewRequest struct {
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`

	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`

	RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`

	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`

	Labels               map[string]int32 "" /* 154 byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

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

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

func (*SetReviewRequest) GetLabels

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

func (*SetReviewRequest) GetMessage

func (m *SetReviewRequest) GetMessage() string

func (*SetReviewRequest) GetNumber

func (m *SetReviewRequest) GetNumber() int64

func (*SetReviewRequest) GetProject

func (m *SetReviewRequest) GetProject() string

func (*SetReviewRequest) GetRevisionId

func (m *SetReviewRequest) GetRevisionId() string

func (*SetReviewRequest) ProtoMessage

func (*SetReviewRequest) ProtoMessage()

func (*SetReviewRequest) Reset

func (m *SetReviewRequest) Reset()

func (*SetReviewRequest) String

func (m *SetReviewRequest) String() string

func (*SetReviewRequest) XXX_DiscardUnknown

func (m *SetReviewRequest) XXX_DiscardUnknown()

func (*SetReviewRequest) XXX_Marshal

func (m *SetReviewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetReviewRequest) XXX_Merge

func (m *SetReviewRequest) XXX_Merge(src proto.Message)

func (*SetReviewRequest) XXX_Size

func (m *SetReviewRequest) XXX_Size() int

func (*SetReviewRequest) XXX_Unmarshal

func (m *SetReviewRequest) XXX_Unmarshal(b []byte) error

type SubmitChangeRequest

type SubmitChangeRequest struct {
	// The change number.
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// The project of this change. For example, "chromium/src".
	//
	// Optional, but recommended for better routing and faster RPC execution.
	Project              string   `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

func (*SubmitChangeRequest) GetNumber

func (m *SubmitChangeRequest) GetNumber() int64

func (*SubmitChangeRequest) GetProject

func (m *SubmitChangeRequest) GetProject() string

func (*SubmitChangeRequest) ProtoMessage

func (*SubmitChangeRequest) ProtoMessage()

func (*SubmitChangeRequest) Reset

func (m *SubmitChangeRequest) Reset()

func (*SubmitChangeRequest) String

func (m *SubmitChangeRequest) String() string

func (*SubmitChangeRequest) XXX_DiscardUnknown

func (m *SubmitChangeRequest) XXX_DiscardUnknown()

func (*SubmitChangeRequest) XXX_Marshal

func (m *SubmitChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubmitChangeRequest) XXX_Merge

func (m *SubmitChangeRequest) XXX_Merge(src proto.Message)

func (*SubmitChangeRequest) XXX_Size

func (m *SubmitChangeRequest) XXX_Size() int

func (*SubmitChangeRequest) XXX_Unmarshal

func (m *SubmitChangeRequest) XXX_Unmarshal(b []byte) error

type UnimplementedGerritServer

type UnimplementedGerritServer struct {
}

UnimplementedGerritServer can be embedded to have forward compatible implementations.

func (*UnimplementedGerritServer) AbandonChange

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

func (*UnimplementedGerritServer) ChangeEditFileContent

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

func (*UnimplementedGerritServer) ChangeEditPublish

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

func (*UnimplementedGerritServer) CreateChange

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

func (*UnimplementedGerritServer) DeleteEditFileContent

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

func (*UnimplementedGerritServer) GetChange

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

func (*UnimplementedGerritServer) GetMergeable

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

func (*UnimplementedGerritServer) ListFiles

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

func (*UnimplementedGerritServer) SetReview

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

func (*UnimplementedGerritServer) SubmitChange

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier