Skip to content

Git designed for AI agents.

55.7 KB
Raw Blame
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.12
// 	protoc        v6.30.2
// source: review.proto

package gitalypb

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// State is the lifecycle state.
type Review_State int32

const (
	// STATE_OPEN_UNSPECIFIED is an open review.
	Review_STATE_OPEN_UNSPECIFIED Review_State = 0
	// STATE_LANDED means the reviewed change landed.
	Review_STATE_LANDED Review_State = 1
	// STATE_CLOSED means the review was closed without landing.
	Review_STATE_CLOSED Review_State = 2
)

// Enum value maps for Review_State.
var (
	Review_State_name = map[int32]string{
		0: "STATE_OPEN_UNSPECIFIED",
		1: "STATE_LANDED",
		2: "STATE_CLOSED",
	}
	Review_State_value = map[string]int32{
		"STATE_OPEN_UNSPECIFIED": 0,
		"STATE_LANDED":           1,
		"STATE_CLOSED":           2,
	}
)

func (x Review_State) Enum() *Review_State {
	p := new(Review_State)
	*p = x
	return p
}

func (x Review_State) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Review_State) Descriptor() protoreflect.EnumDescriptor {
	return file_review_proto_enumTypes[0].Descriptor()
}

func (Review_State) Type() protoreflect.EnumType {
	return &file_review_proto_enumTypes[0]
}

func (x Review_State) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Review_State.Descriptor instead.
func (Review_State) EnumDescriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{0, 0}
}

// ChangeClass is the semantic class of a file change.
type ReviewFile_ChangeClass int32

const (
	// CHANGE_CLASS_CODE_UNSPECIFIED is a change to code or anything not
	// recognised as a narrower class (the most demanding class).
	ReviewFile_CHANGE_CLASS_CODE_UNSPECIFIED ReviewFile_ChangeClass = 0
	// CHANGE_CLASS_COMMENT_ONLY changes only comments or whitespace of a
	// source file whose language the classifier understands.
	ReviewFile_CHANGE_CLASS_COMMENT_ONLY ReviewFile_ChangeClass = 1
	// CHANGE_CLASS_DOCS changes documentation.
	ReviewFile_CHANGE_CLASS_DOCS ReviewFile_ChangeClass = 2
	// CHANGE_CLASS_TESTS changes tests.
	ReviewFile_CHANGE_CLASS_TESTS ReviewFile_ChangeClass = 3
	// CHANGE_CLASS_GENERATED changes generated files.
	ReviewFile_CHANGE_CLASS_GENERATED ReviewFile_ChangeClass = 4
	// CHANGE_CLASS_CONFIG changes configuration files.
	ReviewFile_CHANGE_CLASS_CONFIG ReviewFile_ChangeClass = 5
)

// Enum value maps for ReviewFile_ChangeClass.
var (
	ReviewFile_ChangeClass_name = map[int32]string{
		0: "CHANGE_CLASS_CODE_UNSPECIFIED",
		1: "CHANGE_CLASS_COMMENT_ONLY",
		2: "CHANGE_CLASS_DOCS",
		3: "CHANGE_CLASS_TESTS",
		4: "CHANGE_CLASS_GENERATED",
		5: "CHANGE_CLASS_CONFIG",
	}
	ReviewFile_ChangeClass_value = map[string]int32{
		"CHANGE_CLASS_CODE_UNSPECIFIED": 0,
		"CHANGE_CLASS_COMMENT_ONLY":     1,
		"CHANGE_CLASS_DOCS":             2,
		"CHANGE_CLASS_TESTS":            3,
		"CHANGE_CLASS_GENERATED":        4,
		"CHANGE_CLASS_CONFIG":           5,
	}
)

func (x ReviewFile_ChangeClass) Enum() *ReviewFile_ChangeClass {
	p := new(ReviewFile_ChangeClass)
	*p = x
	return p
}

func (x ReviewFile_ChangeClass) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ReviewFile_ChangeClass) Descriptor() protoreflect.EnumDescriptor {
	return file_review_proto_enumTypes[1].Descriptor()
}

func (ReviewFile_ChangeClass) Type() protoreflect.EnumType {
	return &file_review_proto_enumTypes[1]
}

func (x ReviewFile_ChangeClass) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ReviewFile_ChangeClass.Descriptor instead.
func (ReviewFile_ChangeClass) EnumDescriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{1, 0}
}

// Kind is the verdict kind.
type ReviewVerdict_Kind int32

const (
	// KIND_APPROVE_UNSPECIFIED approves the change.
	ReviewVerdict_KIND_APPROVE_UNSPECIFIED ReviewVerdict_Kind = 0
	// KIND_REQUEST_CHANGES requests changes.
	ReviewVerdict_KIND_REQUEST_CHANGES ReviewVerdict_Kind = 1
)

// Enum value maps for ReviewVerdict_Kind.
var (
	ReviewVerdict_Kind_name = map[int32]string{
		0: "KIND_APPROVE_UNSPECIFIED",
		1: "KIND_REQUEST_CHANGES",
	}
	ReviewVerdict_Kind_value = map[string]int32{
		"KIND_APPROVE_UNSPECIFIED": 0,
		"KIND_REQUEST_CHANGES":     1,
	}
)

func (x ReviewVerdict_Kind) Enum() *ReviewVerdict_Kind {
	p := new(ReviewVerdict_Kind)
	*p = x
	return p
}

func (x ReviewVerdict_Kind) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ReviewVerdict_Kind) Descriptor() protoreflect.EnumDescriptor {
	return file_review_proto_enumTypes[2].Descriptor()
}

func (ReviewVerdict_Kind) Type() protoreflect.EnumType {
	return &file_review_proto_enumTypes[2]
}

func (x ReviewVerdict_Kind) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ReviewVerdict_Kind.Descriptor instead.
func (ReviewVerdict_Kind) EnumDescriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{2, 0}
}

// Review is one code review.
type Review struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// id identifies the review within the repository.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// target_branch is the branch the change is meant to land on.
	TargetBranch []byte `protobuf:"bytes,2,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"`
	// base_commit_id is the commit the change is based on.
	BaseCommitId string `protobuf:"bytes,3,opt,name=base_commit_id,json=baseCommitId,proto3" json:"base_commit_id,omitempty"`
	// head_commit_id is the current head of the change.
	HeadCommitId string `protobuf:"bytes,4,opt,name=head_commit_id,json=headCommitId,proto3" json:"head_commit_id,omitempty"`
	// author is the identity that created the review.
	Author string `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty"`
	// title is a one-line summary.
	Title []byte `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`
	// description is free text.
	Description []byte `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	// state is the lifecycle state.
	State Review_State `protobuf:"varint,8,opt,name=state,proto3,enum=gitaly.Review_State" json:"state,omitempty"`
	// files classifies every file changed between base and head.
	Files []*ReviewFile `protobuf:"bytes,9,rep,name=files,proto3" json:"files,omitempty"`
	// verdicts are all verdicts ever given, oldest first.
	Verdicts []*ReviewVerdict `protobuf:"bytes,10,rep,name=verdicts,proto3" json:"verdicts,omitempty"`
	// comments are all comments, oldest first.
	Comments []*ReviewComment `protobuf:"bytes,11,rep,name=comments,proto3" json:"comments,omitempty"`
	// requirements is the evaluation of the approval rules for the current head.
	Requirements []*ReviewRequirement `protobuf:"bytes,12,rep,name=requirements,proto3" json:"requirements,omitempty"`
	// approved is true when every requirement is satisfied and no current
	// change request is pending.
	Approved bool `protobuf:"varint,13,opt,name=approved,proto3" json:"approved,omitempty"`
	// created_at is when the review was created.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// updated_at is when the review last changed.
	UpdatedAt     *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Review) Reset() {
	*x = Review{}
	mi := &file_review_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Review) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Review) ProtoMessage() {}

func (x *Review) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Review.ProtoReflect.Descriptor instead.
func (*Review) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{0}
}

func (x *Review) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *Review) GetTargetBranch() []byte {
	if x != nil {
		return x.TargetBranch
	}
	return nil
}

func (x *Review) GetBaseCommitId() string {
	if x != nil {
		return x.BaseCommitId
	}
	return ""
}

func (x *Review) GetHeadCommitId() string {
	if x != nil {
		return x.HeadCommitId
	}
	return ""
}

func (x *Review) GetAuthor() string {
	if x != nil {
		return x.Author
	}
	return ""
}

func (x *Review) GetTitle() []byte {
	if x != nil {
		return x.Title
	}
	return nil
}

func (x *Review) GetDescription() []byte {
	if x != nil {
		return x.Description
	}
	return nil
}

func (x *Review) GetState() Review_State {
	if x != nil {
		return x.State
	}
	return Review_STATE_OPEN_UNSPECIFIED
}

func (x *Review) GetFiles() []*ReviewFile {
	if x != nil {
		return x.Files
	}
	return nil
}

func (x *Review) GetVerdicts() []*ReviewVerdict {
	if x != nil {
		return x.Verdicts
	}
	return nil
}

func (x *Review) GetComments() []*ReviewComment {
	if x != nil {
		return x.Comments
	}
	return nil
}

func (x *Review) GetRequirements() []*ReviewRequirement {
	if x != nil {
		return x.Requirements
	}
	return nil
}

func (x *Review) GetApproved() bool {
	if x != nil {
		return x.Approved
	}
	return false
}

func (x *Review) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *Review) GetUpdatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdatedAt
	}
	return nil
}

// ReviewFile is the classification of one changed file.
type ReviewFile struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// path is the file path.
	Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// class is the semantic class of the change.
	Class ReviewFile_ChangeClass `protobuf:"varint,2,opt,name=class,proto3,enum=gitaly.ReviewFile_ChangeClass" json:"class,omitempty"`
	// reason explains the classification (for humans and agents).
	Reason        string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ReviewFile) Reset() {
	*x = ReviewFile{}
	mi := &file_review_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ReviewFile) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ReviewFile) ProtoMessage() {}

func (x *ReviewFile) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ReviewFile.ProtoReflect.Descriptor instead.
func (*ReviewFile) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{1}
}

func (x *ReviewFile) GetPath() []byte {
	if x != nil {
		return x.Path
	}
	return nil
}

func (x *ReviewFile) GetClass() ReviewFile_ChangeClass {
	if x != nil {
		return x.Class
	}
	return ReviewFile_CHANGE_CLASS_CODE_UNSPECIFIED
}

func (x *ReviewFile) GetReason() string {
	if x != nil {
		return x.Reason
	}
	return ""
}

// ReviewVerdict is one verdict.
type ReviewVerdict struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// actor gave the verdict.
	Actor string `protobuf:"bytes,1,opt,name=actor,proto3" json:"actor,omitempty"`
	// kind is the verdict kind.
	Kind ReviewVerdict_Kind `protobuf:"varint,2,opt,name=kind,proto3,enum=gitaly.ReviewVerdict_Kind" json:"kind,omitempty"`
	// commit_id is the head the verdict was given on.
	CommitId string `protobuf:"bytes,3,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	// body is an optional message.
	Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	// created_at is when the verdict was given.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// current is true when the verdict counts for the current head.
	Current       bool `protobuf:"varint,6,opt,name=current,proto3" json:"current,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ReviewVerdict) Reset() {
	*x = ReviewVerdict{}
	mi := &file_review_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ReviewVerdict) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ReviewVerdict) ProtoMessage() {}

func (x *ReviewVerdict) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ReviewVerdict.ProtoReflect.Descriptor instead.
func (*ReviewVerdict) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{2}
}

func (x *ReviewVerdict) GetActor() string {
	if x != nil {
		return x.Actor
	}
	return ""
}

func (x *ReviewVerdict) GetKind() ReviewVerdict_Kind {
	if x != nil {
		return x.Kind
	}
	return ReviewVerdict_KIND_APPROVE_UNSPECIFIED
}

func (x *ReviewVerdict) GetCommitId() string {
	if x != nil {
		return x.CommitId
	}
	return ""
}

func (x *ReviewVerdict) GetBody() []byte {
	if x != nil {
		return x.Body
	}
	return nil
}

func (x *ReviewVerdict) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *ReviewVerdict) GetCurrent() bool {
	if x != nil {
		return x.Current
	}
	return false
}

// ReviewComment is one comment.
type ReviewComment struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// id identifies the comment within the review.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// actor wrote the comment.
	Actor string `protobuf:"bytes,2,opt,name=actor,proto3" json:"actor,omitempty"`
	// body is the comment text.
	Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// path anchors the comment to a file (optional).
	Path []byte `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// line anchors the comment to a 1-based line of path at commit_id (0: none).
	Line int32 `protobuf:"varint,5,opt,name=line,proto3" json:"line,omitempty"`
	// commit_id is the head the comment was written on.
	CommitId string `protobuf:"bytes,6,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	// created_at is when the comment was written.
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ReviewComment) Reset() {
	*x = ReviewComment{}
	mi := &file_review_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ReviewComment) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ReviewComment) ProtoMessage() {}

func (x *ReviewComment) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ReviewComment.ProtoReflect.Descriptor instead.
func (*ReviewComment) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{3}
}

func (x *ReviewComment) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *ReviewComment) GetActor() string {
	if x != nil {
		return x.Actor
	}
	return ""
}

func (x *ReviewComment) GetBody() []byte {
	if x != nil {
		return x.Body
	}
	return nil
}

func (x *ReviewComment) GetPath() []byte {
	if x != nil {
		return x.Path
	}
	return nil
}

func (x *ReviewComment) GetLine() int32 {
	if x != nil {
		return x.Line
	}
	return 0
}

func (x *ReviewComment) GetCommitId() string {
	if x != nil {
		return x.CommitId
	}
	return ""
}

func (x *ReviewComment) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

// ReviewRequirement is the evaluation of one approval rule.
type ReviewRequirement struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// rule names the rule (from configuration).
	Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	// description explains what the rule requires.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// required_approvals is the number of current approvals needed.
	RequiredApprovals int32 `protobuf:"varint,3,opt,name=required_approvals,json=requiredApprovals,proto3" json:"required_approvals,omitempty"`
	// approvals is the number of current approvals that count for the rule.
	Approvals int32 `protobuf:"varint,4,opt,name=approvals,proto3" json:"approvals,omitempty"`
	// satisfied is true when approvals >= required_approvals.
	Satisfied bool `protobuf:"varint,5,opt,name=satisfied,proto3" json:"satisfied,omitempty"`
	// paths are the files the rule applies to.
	Paths         [][]byte `protobuf:"bytes,6,rep,name=paths,proto3" json:"paths,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ReviewRequirement) Reset() {
	*x = ReviewRequirement{}
	mi := &file_review_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ReviewRequirement) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ReviewRequirement) ProtoMessage() {}

func (x *ReviewRequirement) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ReviewRequirement.ProtoReflect.Descriptor instead.
func (*ReviewRequirement) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{4}
}

func (x *ReviewRequirement) GetRule() string {
	if x != nil {
		return x.Rule
	}
	return ""
}

func (x *ReviewRequirement) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *ReviewRequirement) GetRequiredApprovals() int32 {
	if x != nil {
		return x.RequiredApprovals
	}
	return 0
}

func (x *ReviewRequirement) GetApprovals() int32 {
	if x != nil {
		return x.Approvals
	}
	return 0
}

func (x *ReviewRequirement) GetSatisfied() bool {
	if x != nil {
		return x.Satisfied
	}
	return false
}

func (x *ReviewRequirement) GetPaths() [][]byte {
	if x != nil {
		return x.Paths
	}
	return nil
}

// CreateReviewRequest is a request for CreateReview.
type CreateReviewRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// repository is the repository of the review.
	Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	// target_branch is the branch to land on (name, not fully qualified).
	TargetBranch []byte `protobuf:"bytes,2,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"`
	// head_commit_id is the head of the change.
	HeadCommitId string `protobuf:"bytes,3,opt,name=head_commit_id,json=headCommitId,proto3" json:"head_commit_id,omitempty"`
	// base_commit_id is the base; empty means the merge base of the head and
	// the target branch tip.
	BaseCommitId string `protobuf:"bytes,4,opt,name=base_commit_id,json=baseCommitId,proto3" json:"base_commit_id,omitempty"`
	// title is a one-line summary.
	Title []byte `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	// description is free text.
	Description   []byte `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateReviewRequest) Reset() {
	*x = CreateReviewRequest{}
	mi := &file_review_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CreateReviewRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateReviewRequest) ProtoMessage() {}

func (x *CreateReviewRequest) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateReviewRequest.ProtoReflect.Descriptor instead.
func (*CreateReviewRequest) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{5}
}

func (x *CreateReviewRequest) GetRepository() *Repository {
	if x != nil {
		return x.Repository
	}
	return nil
}

func (x *CreateReviewRequest) GetTargetBranch() []byte {
	if x != nil {
		return x.TargetBranch
	}
	return nil
}

func (x *CreateReviewRequest) GetHeadCommitId() string {
	if x != nil {
		return x.HeadCommitId
	}
	return ""
}

func (x *CreateReviewRequest) GetBaseCommitId() string {
	if x != nil {
		return x.BaseCommitId
	}
	return ""
}

func (x *CreateReviewRequest) GetTitle() []byte {
	if x != nil {
		return x.Title
	}
	return nil
}

func (x *CreateReviewRequest) GetDescription() []byte {
	if x != nil {
		return x.Description
	}
	return nil
}

// CreateReviewResponse is a response for CreateReview.
type CreateReviewResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// review is the created review.
	Review        *Review `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateReviewResponse) Reset() {
	*x = CreateReviewResponse{}
	mi := &file_review_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CreateReviewResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateReviewResponse) ProtoMessage() {}

func (x *CreateReviewResponse) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateReviewResponse.ProtoReflect.Descriptor instead.
func (*CreateReviewResponse) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{6}
}

func (x *CreateReviewResponse) GetReview() *Review {
	if x != nil {
		return x.Review
	}
	return nil
}

// GetReviewRequest is a request for GetReview.
type GetReviewRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// repository is the repository of the review.
	Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	// id identifies the review.
	Id            string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetReviewRequest) Reset() {
	*x = GetReviewRequest{}
	mi := &file_review_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetReviewRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetReviewRequest) ProtoMessage() {}

func (x *GetReviewRequest) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[7]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetReviewRequest.ProtoReflect.Descriptor instead.
func (*GetReviewRequest) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{7}
}

func (x *GetReviewRequest) GetRepository() *Repository {
	if x != nil {
		return x.Repository
	}
	return nil
}

func (x *GetReviewRequest) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

// GetReviewResponse is a response for GetReview.
type GetReviewResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// review is the review.
	Review        *Review `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetReviewResponse) Reset() {
	*x = GetReviewResponse{}
	mi := &file_review_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetReviewResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetReviewResponse) ProtoMessage() {}

func (x *GetReviewResponse) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[8]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetReviewResponse.ProtoReflect.Descriptor instead.
func (*GetReviewResponse) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{8}
}

func (x *GetReviewResponse) GetReview() *Review {
	if x != nil {
		return x.Review
	}
	return nil
}

// ListReviewsRequest is a request for ListReviews.
type ListReviewsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// repository is the repository of the reviews.
	Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	// target_branch filters by target branch (empty: all).
	TargetBranch []byte `protobuf:"bytes,2,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"`
	// include_closed also lists landed and closed reviews.
	IncludeClosed bool `protobuf:"varint,3,opt,name=include_closed,json=includeClosed,proto3" json:"include_closed,omitempty"`
	// limit bounds the number of reviews; 0 means 100.
	Limit         uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListReviewsRequest) Reset() {
	*x = ListReviewsRequest{}
	mi := &file_review_proto_msgTypes[9]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListReviewsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListReviewsRequest) ProtoMessage() {}

func (x *ListReviewsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[9]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListReviewsRequest.ProtoReflect.Descriptor instead.
func (*ListReviewsRequest) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{9}
}

func (x *ListReviewsRequest) GetRepository() *Repository {
	if x != nil {
		return x.Repository
	}
	return nil
}

func (x *ListReviewsRequest) GetTargetBranch() []byte {
	if x != nil {
		return x.TargetBranch
	}
	return nil
}

func (x *ListReviewsRequest) GetIncludeClosed() bool {
	if x != nil {
		return x.IncludeClosed
	}
	return false
}

func (x *ListReviewsRequest) GetLimit() uint32 {
	if x != nil {
		return x.Limit
	}
	return 0
}

// ListReviewsResponse is a batch of reviews (without comments and verdict
// bodies, to keep listings small).
type ListReviewsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// reviews is a batch of reviews, newest first.
	Reviews       []*Review `protobuf:"bytes,1,rep,name=reviews,proto3" json:"reviews,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListReviewsResponse) Reset() {
	*x = ListReviewsResponse{}
	mi := &file_review_proto_msgTypes[10]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListReviewsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListReviewsResponse) ProtoMessage() {}

func (x *ListReviewsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[10]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListReviewsResponse.ProtoReflect.Descriptor instead.
func (*ListReviewsResponse) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{10}
}

func (x *ListReviewsResponse) GetReviews() []*Review {
	if x != nil {
		return x.Reviews
	}
	return nil
}

// UpdateReviewRequest is a request for UpdateReview.
type UpdateReviewRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// repository is the repository of the review.
	Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	// id identifies the review.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// head_commit_id is the new head.
	HeadCommitId string `protobuf:"bytes,3,opt,name=head_commit_id,json=headCommitId,proto3" json:"head_commit_id,omitempty"`
	// expected_head_commit_id, if set, must equal the current head
	// (compare-and-swap); otherwise FailedPrecondition.
	ExpectedHeadCommitId string `protobuf:"bytes,4,opt,name=expected_head_commit_id,json=expectedHeadCommitId,proto3" json:"expected_head_commit_id,omitempty"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

func (x *UpdateReviewRequest) Reset() {
	*x = UpdateReviewRequest{}
	mi := &file_review_proto_msgTypes[11]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UpdateReviewRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UpdateReviewRequest) ProtoMessage() {}

func (x *UpdateReviewRequest) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[11]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UpdateReviewRequest.ProtoReflect.Descriptor instead.
func (*UpdateReviewRequest) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{11}
}

func (x *UpdateReviewRequest) GetRepository() *Repository {
	if x != nil {
		return x.Repository
	}
	return nil
}

func (x *UpdateReviewRequest) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *UpdateReviewRequest) GetHeadCommitId() string {
	if x != nil {
		return x.HeadCommitId
	}
	return ""
}

func (x *UpdateReviewRequest) GetExpectedHeadCommitId() string {
	if x != nil {
		return x.ExpectedHeadCommitId
	}
	return ""
}

// UpdateReviewResponse is a response for UpdateReview.
type UpdateReviewResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// review is the updated review.
	Review        *Review `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UpdateReviewResponse) Reset() {
	*x = UpdateReviewResponse{}
	mi := &file_review_proto_msgTypes[12]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UpdateReviewResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UpdateReviewResponse) ProtoMessage() {}

func (x *UpdateReviewResponse) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[12]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UpdateReviewResponse.ProtoReflect.Descriptor instead.
func (*UpdateReviewResponse) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{12}
}

func (x *UpdateReviewResponse) GetReview() *Review {
	if x != nil {
		return x.Review
	}
	return nil
}

// AddReviewCommentRequest is a request for AddReviewComment.
type AddReviewCommentRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// repository is the repository of the review.
	Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	// id identifies the review.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// body is the comment text.
	Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// path anchors the comment to a file (optional).
	Path []byte `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// line anchors the comment to a line of path (0: none).
	Line          int32 `protobuf:"varint,5,opt,name=line,proto3" json:"line,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *AddReviewCommentRequest) Reset() {
	*x = AddReviewCommentRequest{}
	mi := &file_review_proto_msgTypes[13]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *AddReviewCommentRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*AddReviewCommentRequest) ProtoMessage() {}

func (x *AddReviewCommentRequest) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[13]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use AddReviewCommentRequest.ProtoReflect.Descriptor instead.
func (*AddReviewCommentRequest) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{13}
}

func (x *AddReviewCommentRequest) GetRepository() *Repository {
	if x != nil {
		return x.Repository
	}
	return nil
}

func (x *AddReviewCommentRequest) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *AddReviewCommentRequest) GetBody() []byte {
	if x != nil {
		return x.Body
	}
	return nil
}

func (x *AddReviewCommentRequest) GetPath() []byte {
	if x != nil {
		return x.Path
	}
	return nil
}

func (x *AddReviewCommentRequest) GetLine() int32 {
	if x != nil {
		return x.Line
	}
	return 0
}

// AddReviewCommentResponse is a response for AddReviewComment.
type AddReviewCommentResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// comment is the stored comment.
	Comment       *ReviewComment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *AddReviewCommentResponse) Reset() {
	*x = AddReviewCommentResponse{}
	mi := &file_review_proto_msgTypes[14]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *AddReviewCommentResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*AddReviewCommentResponse) ProtoMessage() {}

func (x *AddReviewCommentResponse) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[14]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use AddReviewCommentResponse.ProtoReflect.Descriptor instead.
func (*AddReviewCommentResponse) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{14}
}

func (x *AddReviewCommentResponse) GetComment() *ReviewComment {
	if x != nil {
		return x.Comment
	}
	return nil
}

// SubmitReviewVerdictRequest is a request for SubmitReviewVerdict.
type SubmitReviewVerdictRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// repository is the repository of the review.
	Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	// id identifies the review.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// kind is the verdict.
	Kind ReviewVerdict_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=gitaly.ReviewVerdict_Kind" json:"kind,omitempty"`
	// body is an optional message.
	Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	// head_commit_id must equal the review's current head, so a verdict is
	// never applied to a head the reviewer has not seen.
	HeadCommitId  string `protobuf:"bytes,5,opt,name=head_commit_id,json=headCommitId,proto3" json:"head_commit_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SubmitReviewVerdictRequest) Reset() {
	*x = SubmitReviewVerdictRequest{}
	mi := &file_review_proto_msgTypes[15]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *SubmitReviewVerdictRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SubmitReviewVerdictRequest) ProtoMessage() {}

func (x *SubmitReviewVerdictRequest) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[15]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SubmitReviewVerdictRequest.ProtoReflect.Descriptor instead.
func (*SubmitReviewVerdictRequest) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{15}
}

func (x *SubmitReviewVerdictRequest) GetRepository() *Repository {
	if x != nil {
		return x.Repository
	}
	return nil
}

func (x *SubmitReviewVerdictRequest) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *SubmitReviewVerdictRequest) GetKind() ReviewVerdict_Kind {
	if x != nil {
		return x.Kind
	}
	return ReviewVerdict_KIND_APPROVE_UNSPECIFIED
}

func (x *SubmitReviewVerdictRequest) GetBody() []byte {
	if x != nil {
		return x.Body
	}
	return nil
}

func (x *SubmitReviewVerdictRequest) GetHeadCommitId() string {
	if x != nil {
		return x.HeadCommitId
	}
	return ""
}

// SubmitReviewVerdictResponse is a response for SubmitReviewVerdict.
type SubmitReviewVerdictResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// review is the review after the verdict.
	Review        *Review `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SubmitReviewVerdictResponse) Reset() {
	*x = SubmitReviewVerdictResponse{}
	mi := &file_review_proto_msgTypes[16]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *SubmitReviewVerdictResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SubmitReviewVerdictResponse) ProtoMessage() {}

func (x *SubmitReviewVerdictResponse) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[16]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SubmitReviewVerdictResponse.ProtoReflect.Descriptor instead.
func (*SubmitReviewVerdictResponse) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{16}
}

func (x *SubmitReviewVerdictResponse) GetReview() *Review {
	if x != nil {
		return x.Review
	}
	return nil
}

// CloseReviewRequest is a request for CloseReview.
type CloseReviewRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// repository is the repository of the review.
	Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	// id identifies the review.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// landed marks the review landed instead of closed.
	Landed        bool `protobuf:"varint,3,opt,name=landed,proto3" json:"landed,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CloseReviewRequest) Reset() {
	*x = CloseReviewRequest{}
	mi := &file_review_proto_msgTypes[17]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CloseReviewRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CloseReviewRequest) ProtoMessage() {}

func (x *CloseReviewRequest) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[17]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CloseReviewRequest.ProtoReflect.Descriptor instead.
func (*CloseReviewRequest) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{17}
}

func (x *CloseReviewRequest) GetRepository() *Repository {
	if x != nil {
		return x.Repository
	}
	return nil
}

func (x *CloseReviewRequest) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *CloseReviewRequest) GetLanded() bool {
	if x != nil {
		return x.Landed
	}
	return false
}

// CloseReviewResponse is a response for CloseReview.
type CloseReviewResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// review is the closed review.
	Review        *Review `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CloseReviewResponse) Reset() {
	*x = CloseReviewResponse{}
	mi := &file_review_proto_msgTypes[18]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CloseReviewResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CloseReviewResponse) ProtoMessage() {}

func (x *CloseReviewResponse) ProtoReflect() protoreflect.Message {
	mi := &file_review_proto_msgTypes[18]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CloseReviewResponse.ProtoReflect.Descriptor instead.
func (*CloseReviewResponse) Descriptor() ([]byte, []int) {
	return file_review_proto_rawDescGZIP(), []int{18}
}

func (x *CloseReviewResponse) GetReview() *Review {
	if x != nil {
		return x.Review
	}
	return nil
}

var File_review_proto protoreflect.FileDescriptor

const file_review_proto_rawDesc = "" +
	"\n" +
	"\freview.proto\x12\x06gitaly\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\n" +
	"lint.proto\x1a\fshared.proto\"\xaf\x05\n" +
	"\x06Review\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12#\n" +
	"\rtarget_branch\x18\x02 \x01(\fR\ftargetBranch\x12$\n" +
	"\x0ebase_commit_id\x18\x03 \x01(\tR\fbaseCommitId\x12$\n" +
	"\x0ehead_commit_id\x18\x04 \x01(\tR\fheadCommitId\x12\x16\n" +
	"\x06author\x18\x05 \x01(\tR\x06author\x12\x14\n" +
	"\x05title\x18\x06 \x01(\fR\x05title\x12 \n" +
	"\vdescription\x18\a \x01(\fR\vdescription\x12*\n" +
	"\x05state\x18\b \x01(\x0e2\x14.gitaly.Review.StateR\x05state\x12(\n" +
	"\x05files\x18\t \x03(\v2\x12.gitaly.ReviewFileR\x05files\x121\n" +
	"\bverdicts\x18\n" +
	" \x03(\v2\x15.gitaly.ReviewVerdictR\bverdicts\x121\n" +
	"\bcomments\x18\v \x03(\v2\x15.gitaly.ReviewCommentR\bcomments\x12=\n" +
	"\frequirements\x18\f \x03(\v2\x19.gitaly.ReviewRequirementR\frequirements\x12\x1a\n" +
	"\bapproved\x18\r \x01(\bR\bapproved\x129\n" +
	"\n" +
	"created_at\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18\x0f \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"G\n" +
	"\x05State\x12\x1a\n" +
	"\x16STATE_OPEN_UNSPECIFIED\x10\x00\x12\x10\n" +
	"\fSTATE_LANDED\x10\x01\x12\x10\n" +
	"\fSTATE_CLOSED\x10\x02\"\xa4\x02\n" +
	"\n" +
	"ReviewFile\x12\x12\n" +
	"\x04path\x18\x01 \x01(\fR\x04path\x124\n" +
	"\x05class\x18\x02 \x01(\x0e2\x1e.gitaly.ReviewFile.ChangeClassR\x05class\x12\x16\n" +
	"\x06reason\x18\x03 \x01(\tR\x06reason\"\xb3\x01\n" +
	"\vChangeClass\x12!\n" +
	"\x1dCHANGE_CLASS_CODE_UNSPECIFIED\x10\x00\x12\x1d\n" +
	"\x19CHANGE_CLASS_COMMENT_ONLY\x10\x01\x12\x15\n" +
	"\x11CHANGE_CLASS_DOCS\x10\x02\x12\x16\n" +
	"\x12CHANGE_CLASS_TESTS\x10\x03\x12\x1a\n" +
	"\x16CHANGE_CLASS_GENERATED\x10\x04\x12\x17\n" +
	"\x13CHANGE_CLASS_CONFIG\x10\x05\"\x9b\x02\n" +
	"\rReviewVerdict\x12\x14\n" +
	"\x05actor\x18\x01 \x01(\tR\x05actor\x12.\n" +
	"\x04kind\x18\x02 \x01(\x0e2\x1a.gitaly.ReviewVerdict.KindR\x04kind\x12\x1b\n" +
	"\tcommit_id\x18\x03 \x01(\tR\bcommitId\x12\x12\n" +
	"\x04body\x18\x04 \x01(\fR\x04body\x129\n" +
	"\n" +
	"created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x18\n" +
	"\acurrent\x18\x06 \x01(\bR\acurrent\">\n" +
	"\x04Kind\x12\x1c\n" +
	"\x18KIND_APPROVE_UNSPECIFIED\x10\x00\x12\x18\n" +
	"\x14KIND_REQUEST_CHANGES\x10\x01\"\xc9\x01\n" +
	"\rReviewComment\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
	"\x05actor\x18\x02 \x01(\tR\x05actor\x12\x12\n" +
	"\x04body\x18\x03 \x01(\fR\x04body\x12\x12\n" +
	"\x04path\x18\x04 \x01(\fR\x04path\x12\x12\n" +
	"\x04line\x18\x05 \x01(\x05R\x04line\x12\x1b\n" +
	"\tcommit_id\x18\x06 \x01(\tR\bcommitId\x129\n" +
	"\n" +
	"created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\xca\x01\n" +
	"\x11ReviewRequirement\x12\x12\n" +
	"\x04rule\x18\x01 \x01(\tR\x04rule\x12 \n" +
	"\vdescription\x18\x02 \x01(\tR\vdescription\x12-\n" +
	"\x12required_approvals\x18\x03 \x01(\x05R\x11requiredApprovals\x12\x1c\n" +
	"\tapprovals\x18\x04 \x01(\x05R\tapprovals\x12\x1c\n" +
	"\tsatisfied\x18\x05 \x01(\bR\tsatisfied\x12\x14\n" +
	"\x05paths\x18\x06 \x03(\fR\x05paths\"\xf8\x01\n" +
	"\x13CreateReviewRequest\x128\n" +
	"\n" +
	"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
	"repository\x12#\n" +
	"\rtarget_branch\x18\x02 \x01(\fR\ftargetBranch\x12$\n" +
	"\x0ehead_commit_id\x18\x03 \x01(\tR\fheadCommitId\x12$\n" +
	"\x0ebase_commit_id\x18\x04 \x01(\tR\fbaseCommitId\x12\x14\n" +
	"\x05title\x18\x05 \x01(\fR\x05title\x12 \n" +
	"\vdescription\x18\x06 \x01(\fR\vdescription\">\n" +
	"\x14CreateReviewResponse\x12&\n" +
	"\x06review\x18\x01 \x01(\v2\x0e.gitaly.ReviewR\x06review\"\\\n" +
	"\x10GetReviewRequest\x128\n" +
	"\n" +
	"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
	"repository\x12\x0e\n" +
	"\x02id\x18\x02 \x01(\tR\x02id\";\n" +
	"\x11GetReviewResponse\x12&\n" +
	"\x06review\x18\x01 \x01(\v2\x0e.gitaly.ReviewR\x06review\"\xb0\x01\n" +
	"\x12ListReviewsRequest\x128\n" +
	"\n" +
	"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
	"repository\x12#\n" +
	"\rtarget_branch\x18\x02 \x01(\fR\ftargetBranch\x12%\n" +
	"\x0einclude_closed\x18\x03 \x01(\bR\rincludeClosed\x12\x14\n" +
	"\x05limit\x18\x04 \x01(\rR\x05limit\"?\n" +
	"\x13ListReviewsResponse\x12(\n" +
	"\areviews\x18\x01 \x03(\v2\x0e.gitaly.ReviewR\areviews\"\xbc\x01\n" +
	"\x13UpdateReviewRequest\x128\n" +
	"\n" +
	"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
	"repository\x12\x0e\n" +
	"\x02id\x18\x02 \x01(\tR\x02id\x12$\n" +
	"\x0ehead_commit_id\x18\x03 \x01(\tR\fheadCommitId\x125\n" +
	"\x17expected_head_commit_id\x18\x04 \x01(\tR\x14expectedHeadCommitId\">\n" +
	"\x14UpdateReviewResponse\x12&\n" +
	"\x06review\x18\x01 \x01(\v2\x0e.gitaly.ReviewR\x06review\"\x9f\x01\n" +
	"\x17AddReviewCommentRequest\x128\n" +
	"\n" +
	"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
	"repository\x12\x0e\n" +
	"\x02id\x18\x02 \x01(\tR\x02id\x12\x12\n" +
	"\x04body\x18\x03 \x01(\fR\x04body\x12\x12\n" +
	"\x04path\x18\x04 \x01(\fR\x04path\x12\x12\n" +
	"\x04line\x18\x05 \x01(\x05R\x04line\"K\n" +
	"\x18AddReviewCommentResponse\x12/\n" +
	"\acomment\x18\x01 \x01(\v2\x15.gitaly.ReviewCommentR\acomment\"\xd0\x01\n" +
	"\x1aSubmitReviewVerdictRequest\x128\n" +
	"\n" +
	"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
	"repository\x12\x0e\n" +
	"\x02id\x18\x02 \x01(\tR\x02id\x12.\n" +
	"\x04kind\x18\x03 \x01(\x0e2\x1a.gitaly.ReviewVerdict.KindR\x04kind\x12\x12\n" +
	"\x04body\x18\x04 \x01(\fR\x04body\x12$\n" +
	"\x0ehead_commit_id\x18\x05 \x01(\tR\fheadCommitId\"E\n" +
	"\x1bSubmitReviewVerdictResponse\x12&\n" +
	"\x06review\x18\x01 \x01(\v2\x0e.gitaly.ReviewR\x06review\"v\n" +
	"\x12CloseReviewRequest\x128\n" +
	"\n" +
	"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
	"repository\x12\x0e\n" +
	"\x02id\x18\x02 \x01(\tR\x02id\x12\x16\n" +
	"\x06landed\x18\x03 \x01(\bR\x06landed\"=\n" +
	"\x13CloseReviewResponse\x12&\n" +
	"\x06review\x18\x01 \x01(\v2\x0e.gitaly.ReviewR\x06review2\xe8\x04\n" +
	"\rReviewService\x12Q\n" +
	"\fCreateReview\x12\x1b.gitaly.CreateReviewRequest\x1a\x1c.gitaly.CreateReviewResponse\"\x06\xfa\x97(\x02\b\x01\x12H\n" +
	"\tGetReview\x12\x18.gitaly.GetReviewRequest\x1a\x19.gitaly.GetReviewResponse\"\x06\xfa\x97(\x02\b\x02\x12P\n" +
	"\vListReviews\x12\x1a.gitaly.ListReviewsRequest\x1a\x1b.gitaly.ListReviewsResponse\"\x06\xfa\x97(\x02\b\x020\x01\x12Q\n" +
	"\fUpdateReview\x12\x1b.gitaly.UpdateReviewRequest\x1a\x1c.gitaly.UpdateReviewResponse\"\x06\xfa\x97(\x02\b\x01\x12]\n" +
	"\x10AddReviewComment\x12\x1f.gitaly.AddReviewCommentRequest\x1a .gitaly.AddReviewCommentResponse\"\x06\xfa\x97(\x02\b\x01\x12f\n" +
	"\x13SubmitReviewVerdict\x12\".gitaly.SubmitReviewVerdictRequest\x1a#.gitaly.SubmitReviewVerdictResponse\"\x06\xfa\x97(\x02\b\x01\x12N\n" +
	"\vCloseReview\x12\x1a.gitaly.CloseReviewRequest\x1a\x1b.gitaly.CloseReviewResponse\"\x06\xfa\x97(\x02\b\x01B.Z,github.com/feder-cr/git-ai/proto/go/gitalypbb\x06proto3"

var (
	file_review_proto_rawDescOnce sync.Once
	file_review_proto_rawDescData []byte
)

func file_review_proto_rawDescGZIP() []byte {
	file_review_proto_rawDescOnce.Do(func() {
		file_review_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_review_proto_rawDesc), len(file_review_proto_rawDesc)))
	})
	return file_review_proto_rawDescData
}

var file_review_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_review_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
var file_review_proto_goTypes = []any{
	(Review_State)(0),                   // 0: gitaly.Review.State
	(ReviewFile_ChangeClass)(0),         // 1: gitaly.ReviewFile.ChangeClass
	(ReviewVerdict_Kind)(0),             // 2: gitaly.ReviewVerdict.Kind
	(*Review)(nil),                      // 3: gitaly.Review
	(*ReviewFile)(nil),                  // 4: gitaly.ReviewFile
	(*ReviewVerdict)(nil),               // 5: gitaly.ReviewVerdict
	(*ReviewComment)(nil),               // 6: gitaly.ReviewComment
	(*ReviewRequirement)(nil),           // 7: gitaly.ReviewRequirement
	(*CreateReviewRequest)(nil),         // 8: gitaly.CreateReviewRequest
	(*CreateReviewResponse)(nil),        // 9: gitaly.CreateReviewResponse
	(*GetReviewRequest)(nil),            // 10: gitaly.GetReviewRequest
	(*GetReviewResponse)(nil),           // 11: gitaly.GetReviewResponse
	(*ListReviewsRequest)(nil),          // 12: gitaly.ListReviewsRequest
	(*ListReviewsResponse)(nil),         // 13: gitaly.ListReviewsResponse
	(*UpdateReviewRequest)(nil),         // 14: gitaly.UpdateReviewRequest
	(*UpdateReviewResponse)(nil),        // 15: gitaly.UpdateReviewResponse
	(*AddReviewCommentRequest)(nil),     // 16: gitaly.AddReviewCommentRequest
	(*AddReviewCommentResponse)(nil),    // 17: gitaly.AddReviewCommentResponse
	(*SubmitReviewVerdictRequest)(nil),  // 18: gitaly.SubmitReviewVerdictRequest
	(*SubmitReviewVerdictResponse)(nil), // 19: gitaly.SubmitReviewVerdictResponse
	(*CloseReviewRequest)(nil),          // 20: gitaly.CloseReviewRequest
	(*CloseReviewResponse)(nil),         // 21: gitaly.CloseReviewResponse
	(*timestamppb.Timestamp)(nil),       // 22: google.protobuf.Timestamp
	(*Repository)(nil),                  // 23: gitaly.Repository
}
var file_review_proto_depIdxs = []int32{
	0,  // 0: gitaly.Review.state:type_name -> gitaly.Review.State
	4,  // 1: gitaly.Review.files:type_name -> gitaly.ReviewFile
	5,  // 2: gitaly.Review.verdicts:type_name -> gitaly.ReviewVerdict
	6,  // 3: gitaly.Review.comments:type_name -> gitaly.ReviewComment
	7,  // 4: gitaly.Review.requirements:type_name -> gitaly.ReviewRequirement
	22, // 5: gitaly.Review.created_at:type_name -> google.protobuf.Timestamp
	22, // 6: gitaly.Review.updated_at:type_name -> google.protobuf.Timestamp
	1,  // 7: gitaly.ReviewFile.class:type_name -> gitaly.ReviewFile.ChangeClass
	2,  // 8: gitaly.ReviewVerdict.kind:type_name -> gitaly.ReviewVerdict.Kind
	22, // 9: gitaly.ReviewVerdict.created_at:type_name -> google.protobuf.Timestamp
	22, // 10: gitaly.ReviewComment.created_at:type_name -> google.protobuf.Timestamp
	23, // 11: gitaly.CreateReviewRequest.repository:type_name -> gitaly.Repository
	3,  // 12: gitaly.CreateReviewResponse.review:type_name -> gitaly.Review
	23, // 13: gitaly.GetReviewRequest.repository:type_name -> gitaly.Repository
	3,  // 14: gitaly.GetReviewResponse.review:type_name -> gitaly.Review
	23, // 15: gitaly.ListReviewsRequest.repository:type_name -> gitaly.Repository
	3,  // 16: gitaly.ListReviewsResponse.reviews:type_name -> gitaly.Review
	23, // 17: gitaly.UpdateReviewRequest.repository:type_name -> gitaly.Repository
	3,  // 18: gitaly.UpdateReviewResponse.review:type_name -> gitaly.Review
	23, // 19: gitaly.AddReviewCommentRequest.repository:type_name -> gitaly.Repository
	6,  // 20: gitaly.AddReviewCommentResponse.comment:type_name -> gitaly.ReviewComment
	23, // 21: gitaly.SubmitReviewVerdictRequest.repository:type_name -> gitaly.Repository
	2,  // 22: gitaly.SubmitReviewVerdictRequest.kind:type_name -> gitaly.ReviewVerdict.Kind
	3,  // 23: gitaly.SubmitReviewVerdictResponse.review:type_name -> gitaly.Review
	23, // 24: gitaly.CloseReviewRequest.repository:type_name -> gitaly.Repository
	3,  // 25: gitaly.CloseReviewResponse.review:type_name -> gitaly.Review
	8,  // 26: gitaly.ReviewService.CreateReview:input_type -> gitaly.CreateReviewRequest
	10, // 27: gitaly.ReviewService.GetReview:input_type -> gitaly.GetReviewRequest
	12, // 28: gitaly.ReviewService.ListReviews:input_type -> gitaly.ListReviewsRequest
	14, // 29: gitaly.ReviewService.UpdateReview:input_type -> gitaly.UpdateReviewRequest
	16, // 30: gitaly.ReviewService.AddReviewComment:input_type -> gitaly.AddReviewCommentRequest
	18, // 31: gitaly.ReviewService.SubmitReviewVerdict:input_type -> gitaly.SubmitReviewVerdictRequest
	20, // 32: gitaly.ReviewService.CloseReview:input_type -> gitaly.CloseReviewRequest
	9,  // 33: gitaly.ReviewService.CreateReview:output_type -> gitaly.CreateReviewResponse
	11, // 34: gitaly.ReviewService.GetReview:output_type -> gitaly.GetReviewResponse
	13, // 35: gitaly.ReviewService.ListReviews:output_type -> gitaly.ListReviewsResponse
	15, // 36: gitaly.ReviewService.UpdateReview:output_type -> gitaly.UpdateReviewResponse
	17, // 37: gitaly.ReviewService.AddReviewComment:output_type -> gitaly.AddReviewCommentResponse
	19, // 38: gitaly.ReviewService.SubmitReviewVerdict:output_type -> gitaly.SubmitReviewVerdictResponse
	21, // 39: gitaly.ReviewService.CloseReview:output_type -> gitaly.CloseReviewResponse
	33, // [33:40] is the sub-list for method output_type
	26, // [26:33] is the sub-list for method input_type
	26, // [26:26] is the sub-list for extension type_name
	26, // [26:26] is the sub-list for extension extendee
	0,  // [0:26] is the sub-list for field type_name
}

func init() { file_review_proto_init() }
func file_review_proto_init() {
	if File_review_proto != nil {
		return
	}
	file_lint_proto_init()
	file_shared_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_review_proto_rawDesc), len(file_review_proto_rawDesc)),
			NumEnums:      3,
			NumMessages:   19,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_review_proto_goTypes,
		DependencyIndexes: file_review_proto_depIdxs,
		EnumInfos:         file_review_proto_enumTypes,
		MessageInfos:      file_review_proto_msgTypes,
	}.Build()
	File_review_proto = out.File
	file_review_proto_goTypes = nil
	file_review_proto_depIdxs = nil
}