codehost

package
v0.0.0-...-177fe25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2023 License: LGPL-3.0 Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserReviewStatus_name = map[int32]string{
		0: "USER_REQUESTED_CHANGES",
		1: "USER_APPROVED",
		2: "USER_COMMENTED",
		3: "PENDING",
		4: "DISMISSED",
	}
	UserReviewStatus_value = map[string]int32{
		"USER_REQUESTED_CHANGES": 0,
		"USER_APPROVED":          1,
		"USER_COMMENTED":         2,
		"PENDING":                3,
		"DISMISSED":              4,
	}
)

Enum value maps for UserReviewStatus.

View Source
var (
	ReviewEvent_name = map[int32]string{
		0: "APPROVE",
		1: "REQUEST_CHANGES",
		2: "COMMENT",
		3: "UNAPPROVE",
	}
	ReviewEvent_value = map[string]int32{
		"APPROVE":         0,
		"REQUEST_CHANGES": 1,
		"COMMENT":         2,
		"UNAPPROVE":       3,
	}
)

Enum value maps for ReviewEvent.

View Source
var (
	CommentSeverity_name = map[int32]string{
		0: "LOW",
		1: "MEDIUM",
		2: "HIGH",
	}
	CommentSeverity_value = map[string]int32{
		"LOW":    0,
		"MEDIUM": 1,
		"HIGH":   2,
	}
)

Enum value maps for CommentSeverity.

View Source
var (
	CommentType_name = map[int32]string{
		0: "UNKNOWN",
		1: "DIFF",
		2: "GENERAL",
	}
	CommentType_value = map[string]int32{
		"UNKNOWN": 0,
		"DIFF":    1,
		"GENERAL": 2,
	}
)

Enum value maps for CommentType.

View Source
var (
	CommentLineType_name = map[int32]string{
		0: "LINE_ADDED",
		1: "LINE_REMOVED",
		2: "CONTEXT_LINE",
	}
	CommentLineType_value = map[string]int32{
		"LINE_ADDED":   0,
		"LINE_REMOVED": 1,
		"CONTEXT_LINE": 2,
	}
)

Enum value maps for CommentLineType.

View Source
var (
	File_FileStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "ADDED",
		2: "REMOVED",
		3: "MODIFIED",
		4: "RENAMED",
		5: "COPIED",
		6: "CHANGED",
		7: "UNCHANGED",
	}
	File_FileStatus_value = map[string]int32{
		"UNKNOWN":   0,
		"ADDED":     1,
		"REMOVED":   2,
		"MODIFIED":  3,
		"RENAMED":   4,
		"COPIED":    5,
		"CHANGED":   6,
		"UNCHANGED": 7,
	}
)

Enum value maps for File_FileStatus.

View Source
var (
	MergeMethod_name = map[int32]string{
		0: "MERGE",
		1: "REBASE",
		2: "SQUASH",
		3: "FAST_FORWARD",
		4: "FAST_FORWARD_ONLY",
		5: "REBASE_AND_MERGE",
		6: "SQUASH_FAST_FORWARD_ONLY",
	}
	MergeMethod_value = map[string]int32{
		"MERGE":                    0,
		"REBASE":                   1,
		"SQUASH":                   2,
		"FAST_FORWARD":             3,
		"FAST_FORWARD_ONLY":        4,
		"REBASE_AND_MERGE":         5,
		"SQUASH_FAST_FORWARD_ONLY": 6,
	}
)

Enum value maps for MergeMethod.

View Source
var (
	DeleteHeadOption_name = map[int32]string{
		0: "PRESERVE",
		1: "DELETE",
	}
	DeleteHeadOption_value = map[string]int32{
		"PRESERVE": 0,
		"DELETE":   1,
	}
)

Enum value maps for DeleteHeadOption.

View Source
var (
	PullRequestStatus_name = map[int32]string{
		0: "OPEN",
		1: "CLOSED",
		2: "MERGED",
		3: "LOCKED",
	}
	PullRequestStatus_value = map[string]int32{
		"OPEN":   0,
		"CLOSED": 1,
		"MERGED": 2,
		"LOCKED": 3,
	}
)

Enum value maps for PullRequestStatus.

View Source
var File_codehost_branch_proto protoreflect.FileDescriptor
View Source
var File_codehost_code_review_proto protoreflect.FileDescriptor
View Source
var File_codehost_comment_proto protoreflect.FileDescriptor
View Source
var File_codehost_file_proto protoreflect.FileDescriptor
View Source
var File_codehost_label_proto protoreflect.FileDescriptor
View Source
var File_codehost_merge_proto protoreflect.FileDescriptor
View Source
var File_codehost_milestone_proto protoreflect.FileDescriptor
View Source
var File_codehost_pull_request_proto protoreflect.FileDescriptor
View Source
var File_codehost_repository_proto protoreflect.FileDescriptor
View Source
var File_codehost_team_proto protoreflect.FileDescriptor
View Source
var File_codehost_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Name string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Sha  string      `protobuf:"bytes,2,opt,name=sha,proto3" json:"sha,omitempty"`
	Repo *Repository `protobuf:"bytes,3,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*Branch) Descriptor deprecated

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

Deprecated: Use Branch.ProtoReflect.Descriptor instead.

func (*Branch) GetName

func (x *Branch) GetName() string

func (*Branch) GetRepo

func (x *Branch) GetRepo() *Repository

func (*Branch) GetSha

func (x *Branch) GetSha() string

func (*Branch) ProtoMessage

func (*Branch) ProtoMessage()

func (*Branch) ProtoReflect

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

func (*Branch) Reset

func (x *Branch) Reset()

func (*Branch) String

func (x *Branch) String() string

type CommentLineType

type CommentLineType int32
const (
	CommentLineType_LINE_ADDED   CommentLineType = 0
	CommentLineType_LINE_REMOVED CommentLineType = 1
	CommentLineType_CONTEXT_LINE CommentLineType = 2
)

func (CommentLineType) Descriptor

func (CommentLineType) Enum

func (x CommentLineType) Enum() *CommentLineType

func (CommentLineType) EnumDescriptor deprecated

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

Deprecated: Use CommentLineType.Descriptor instead.

func (CommentLineType) Number

func (CommentLineType) String

func (x CommentLineType) String() string

func (CommentLineType) Type

type CommentSeverity

type CommentSeverity int32
const (
	CommentSeverity_LOW    CommentSeverity = 0
	CommentSeverity_MEDIUM CommentSeverity = 1
	CommentSeverity_HIGH   CommentSeverity = 2
)

func (CommentSeverity) Descriptor

func (CommentSeverity) Enum

func (x CommentSeverity) Enum() *CommentSeverity

func (CommentSeverity) EnumDescriptor deprecated

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

Deprecated: Use CommentSeverity.Descriptor instead.

func (CommentSeverity) Number

func (CommentSeverity) String

func (x CommentSeverity) String() string

func (CommentSeverity) Type

type CommentType

type CommentType int32
const (
	CommentType_UNKNOWN CommentType = 0
	CommentType_DIFF    CommentType = 1
	CommentType_GENERAL CommentType = 2
)

func (CommentType) Descriptor

func (CommentType) Enum

func (x CommentType) Enum() *CommentType

func (CommentType) EnumDescriptor deprecated

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

Deprecated: Use CommentType.Descriptor instead.

func (CommentType) Number

func (x CommentType) Number() protoreflect.EnumNumber

func (CommentType) String

func (x CommentType) String() string

func (CommentType) Type

type DeleteHeadOption

type DeleteHeadOption int32
const (
	DeleteHeadOption_PRESERVE DeleteHeadOption = 0
	DeleteHeadOption_DELETE   DeleteHeadOption = 1
)

func (DeleteHeadOption) Descriptor

func (DeleteHeadOption) Enum

func (DeleteHeadOption) EnumDescriptor deprecated

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

Deprecated: Use DeleteHeadOption.Descriptor instead.

func (DeleteHeadOption) Number

func (DeleteHeadOption) String

func (x DeleteHeadOption) String() string

func (DeleteHeadOption) Type

type File

type File struct {
	Sha              string          `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"`
	Filename         string          `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	PreviousFileName string          `protobuf:"bytes,3,opt,name=previous_file_name,json=previousFileName,proto3" json:"previous_file_name,omitempty"`
	AdditionsCount   int64           `protobuf:"varint,4,opt,name=additions_count,json=additionsCount,proto3" json:"additions_count,omitempty"`
	DeletionsCount   int64           `protobuf:"varint,5,opt,name=deletions_count,json=deletionsCount,proto3" json:"deletions_count,omitempty"`
	ChangesCount     int64           `protobuf:"varint,6,opt,name=changes_count,json=changesCount,proto3" json:"changes_count,omitempty"`
	Patch            string          `protobuf:"bytes,7,opt,name=patch,proto3" json:"patch,omitempty"`
	Status           File_FileStatus `protobuf:"varint,8,opt,name=status,proto3,enum=codehost.File_FileStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*File) Descriptor deprecated

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetAdditionsCount

func (x *File) GetAdditionsCount() int64

func (*File) GetChangesCount

func (x *File) GetChangesCount() int64

func (*File) GetDeletionsCount

func (x *File) GetDeletionsCount() int64

func (*File) GetFilename

func (x *File) GetFilename() string

func (*File) GetPatch

func (x *File) GetPatch() string

func (*File) GetPreviousFileName

func (x *File) GetPreviousFileName() string

func (*File) GetSha

func (x *File) GetSha() string

func (*File) GetStatus

func (x *File) GetStatus() File_FileStatus

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

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

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

type File_FileStatus

type File_FileStatus int32
const (
	File_UNKNOWN   File_FileStatus = 0
	File_ADDED     File_FileStatus = 1
	File_REMOVED   File_FileStatus = 2
	File_MODIFIED  File_FileStatus = 3
	File_RENAMED   File_FileStatus = 4
	File_COPIED    File_FileStatus = 5
	File_CHANGED   File_FileStatus = 6
	File_UNCHANGED File_FileStatus = 7
)

func (File_FileStatus) Descriptor

func (File_FileStatus) Enum

func (x File_FileStatus) Enum() *File_FileStatus

func (File_FileStatus) EnumDescriptor deprecated

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

Deprecated: Use File_FileStatus.Descriptor instead.

func (File_FileStatus) Number

func (File_FileStatus) String

func (x File_FileStatus) String() string

func (File_FileStatus) Type

type Label

type Label struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Color       string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func (*Label) Descriptor deprecated

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

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetColor

func (x *Label) GetColor() string

func (*Label) GetDescription

func (x *Label) GetDescription() string

func (*Label) GetId

func (x *Label) GetId() string

func (*Label) GetName

func (x *Label) GetName() string

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

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

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

type MergeMethod

type MergeMethod int32
const (
	MergeMethod_MERGE                    MergeMethod = 0 // Creates merge commit; blocks operation if there are conflicts
	MergeMethod_REBASE                   MergeMethod = 1 // Tries to rebase source branch into target branch; blocks operation if there are (intermediate) conflicts
	MergeMethod_SQUASH                   MergeMethod = 2 // Creates single squash commit; blocks operation if there are conflicts
	MergeMethod_FAST_FORWARD             MergeMethod = 3 // Tries to fast-forward target branch to source branch; creates merge commit otherwise if there are no conflicts
	MergeMethod_FAST_FORWARD_ONLY        MergeMethod = 4 // Tries to fast-forward target branch to source branch if up-to-date; blocks operation if outdated
	MergeMethod_REBASE_AND_MERGE         MergeMethod = 5 // Same as REBASE but with a merge commit in the end
	MergeMethod_SQUASH_FAST_FORWARD_ONLY MergeMethod = 6 // Same as SQUASH, except operation is blocked if source branch is outdated
)

func (MergeMethod) Descriptor

func (MergeMethod) Enum

func (x MergeMethod) Enum() *MergeMethod

func (MergeMethod) EnumDescriptor deprecated

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

Deprecated: Use MergeMethod.Descriptor instead.

func (MergeMethod) Number

func (x MergeMethod) Number() protoreflect.EnumNumber

func (MergeMethod) String

func (x MergeMethod) String() string

func (MergeMethod) Type

type MergeMethodOptions

type MergeMethodOptions struct {
	MergeMethod     MergeMethod `protobuf:"varint,1,opt,name=merge_method,json=mergeMethod,proto3,enum=codehost.MergeMethod" json:"merge_method,omitempty"`
	RequiresMessage bool        `protobuf:"varint,2,opt,name=requires_message,json=requiresMessage,proto3" json:"requires_message,omitempty"`
	// contains filtered or unexported fields
}

func (*MergeMethodOptions) Descriptor deprecated

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

Deprecated: Use MergeMethodOptions.ProtoReflect.Descriptor instead.

func (*MergeMethodOptions) GetMergeMethod

func (x *MergeMethodOptions) GetMergeMethod() MergeMethod

func (*MergeMethodOptions) GetRequiresMessage

func (x *MergeMethodOptions) GetRequiresMessage() bool

func (*MergeMethodOptions) ProtoMessage

func (*MergeMethodOptions) ProtoMessage()

func (*MergeMethodOptions) ProtoReflect

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

func (*MergeMethodOptions) Reset

func (x *MergeMethodOptions) Reset()

func (*MergeMethodOptions) String

func (x *MergeMethodOptions) String() string

type Milestone

type Milestone struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

func (*Milestone) Descriptor deprecated

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

Deprecated: Use Milestone.ProtoReflect.Descriptor instead.

func (*Milestone) GetId

func (x *Milestone) GetId() string

func (*Milestone) GetTitle

func (x *Milestone) GetTitle() string

func (*Milestone) ProtoMessage

func (*Milestone) ProtoMessage()

func (*Milestone) ProtoReflect

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

func (*Milestone) Reset

func (x *Milestone) Reset()

func (*Milestone) String

func (x *Milestone) String() string

type PullRequest

type PullRequest struct {

	// The unique identifier of the code review. usually the id of the object we get for the GraphQL API
	Id                 string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Number             int64                  `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	Title              string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Description        string                 `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Status             PullRequestStatus      `protobuf:"varint,5,opt,name=status,proto3,enum=codehost.PullRequestStatus" json:"status,omitempty"`
	IsDraft            bool                   `protobuf:"varint,6,opt,name=is_draft,json=isDraft,proto3" json:"is_draft,omitempty"`
	IsMerged           bool                   `protobuf:"varint,7,opt,name=is_merged,json=isMerged,proto3" json:"is_merged,omitempty"`
	IsClosed           bool                   `protobuf:"varint,8,opt,name=is_closed,json=isClosed,proto3" json:"is_closed,omitempty"`
	IsRebaseable       bool                   `protobuf:"varint,9,opt,name=is_rebaseable,json=isRebaseable,proto3" json:"is_rebaseable,omitempty"`
	CommentsCount      int64                  `protobuf:"varint,10,opt,name=comments_count,json=commentsCount,proto3" json:"comments_count,omitempty"`
	CommitsCount       int64                  `protobuf:"varint,11,opt,name=commits_count,json=commitsCount,proto3" json:"commits_count,omitempty"`
	AdditionsCount     int64                  `protobuf:"varint,12,opt,name=additions_count,json=additionsCount,proto3" json:"additions_count,omitempty"`
	DeletionsCount     int64                  `protobuf:"varint,13,opt,name=deletions_count,json=deletionsCount,proto3" json:"deletions_count,omitempty"`
	ChangedFilesCount  int64                  `protobuf:"varint,14,opt,name=changed_files_count,json=changedFilesCount,proto3" json:"changed_files_count,omitempty"`
	Url                string                 `protobuf:"bytes,15,opt,name=url,proto3" json:"url,omitempty"`
	ClosedAt           *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=closed_at,json=closedAt,proto3" json:"closed_at,omitempty"`
	MergedAt           *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=merged_at,json=mergedAt,proto3" json:"merged_at,omitempty"`
	CreatedAt          *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt          *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Base               *Branch                `protobuf:"bytes,20,opt,name=base,proto3" json:"base,omitempty"`
	Head               *Branch                `protobuf:"bytes,21,opt,name=head,proto3" json:"head,omitempty"`
	Author             *User                  `protobuf:"bytes,22,opt,name=author,proto3" json:"author,omitempty"`
	Assignees          []*User                `protobuf:"bytes,23,rep,name=assignees,proto3" json:"assignees,omitempty"`
	Labels             []*Label               `protobuf:"bytes,24,rep,name=labels,proto3" json:"labels,omitempty"`
	Milestone          *Milestone             `protobuf:"bytes,25,opt,name=milestone,proto3" json:"milestone,omitempty"`
	RequestedReviewers *RequestedReviewers    `protobuf:"bytes,26,opt,name=requested_reviewers,json=requestedReviewers,proto3" json:"requested_reviewers,omitempty"`
	// A JSON encoded presentation of the raw pull request / merge request object
	// usually the response we get from the REST API of the provider
	RawRestResponse string `protobuf:"bytes,27,opt,name=raw_rest_response,json=rawRestResponse,proto3" json:"raw_rest_response,omitempty"`
	// contains filtered or unexported fields
}

func (*PullRequest) Descriptor deprecated

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

Deprecated: Use PullRequest.ProtoReflect.Descriptor instead.

func (*PullRequest) GetAdditionsCount

func (x *PullRequest) GetAdditionsCount() int64

func (*PullRequest) GetAssignees

func (x *PullRequest) GetAssignees() []*User

func (*PullRequest) GetAuthor

func (x *PullRequest) GetAuthor() *User

func (*PullRequest) GetBase

func (x *PullRequest) GetBase() *Branch

func (*PullRequest) GetChangedFilesCount

func (x *PullRequest) GetChangedFilesCount() int64

func (*PullRequest) GetClosedAt

func (x *PullRequest) GetClosedAt() *timestamppb.Timestamp

func (*PullRequest) GetCommentsCount

func (x *PullRequest) GetCommentsCount() int64

func (*PullRequest) GetCommitsCount

func (x *PullRequest) GetCommitsCount() int64

func (*PullRequest) GetCreatedAt

func (x *PullRequest) GetCreatedAt() *timestamppb.Timestamp

func (*PullRequest) GetDeletionsCount

func (x *PullRequest) GetDeletionsCount() int64

func (*PullRequest) GetDescription

func (x *PullRequest) GetDescription() string

func (*PullRequest) GetHead

func (x *PullRequest) GetHead() *Branch

func (*PullRequest) GetId

func (x *PullRequest) GetId() string

func (*PullRequest) GetIsClosed

func (x *PullRequest) GetIsClosed() bool

func (*PullRequest) GetIsDraft

func (x *PullRequest) GetIsDraft() bool

func (*PullRequest) GetIsMerged

func (x *PullRequest) GetIsMerged() bool

func (*PullRequest) GetIsRebaseable

func (x *PullRequest) GetIsRebaseable() bool

func (*PullRequest) GetLabels

func (x *PullRequest) GetLabels() []*Label

func (*PullRequest) GetMergedAt

func (x *PullRequest) GetMergedAt() *timestamppb.Timestamp

func (*PullRequest) GetMilestone

func (x *PullRequest) GetMilestone() *Milestone

func (*PullRequest) GetNumber

func (x *PullRequest) GetNumber() int64

func (*PullRequest) GetRawRestResponse

func (x *PullRequest) GetRawRestResponse() string

func (*PullRequest) GetRequestedReviewers

func (x *PullRequest) GetRequestedReviewers() *RequestedReviewers

func (*PullRequest) GetStatus

func (x *PullRequest) GetStatus() PullRequestStatus

func (*PullRequest) GetTitle

func (x *PullRequest) GetTitle() string

func (*PullRequest) GetUpdatedAt

func (x *PullRequest) GetUpdatedAt() *timestamppb.Timestamp

func (*PullRequest) GetUrl

func (x *PullRequest) GetUrl() string

func (*PullRequest) ProtoMessage

func (*PullRequest) ProtoMessage()

func (*PullRequest) ProtoReflect

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

func (*PullRequest) Reset

func (x *PullRequest) Reset()

func (*PullRequest) String

func (x *PullRequest) String() string

type PullRequestStatus

type PullRequestStatus int32
const (
	PullRequestStatus_OPEN   PullRequestStatus = 0
	PullRequestStatus_CLOSED PullRequestStatus = 1
	PullRequestStatus_MERGED PullRequestStatus = 2
	PullRequestStatus_LOCKED PullRequestStatus = 3
)

func (PullRequestStatus) Descriptor

func (PullRequestStatus) Enum

func (PullRequestStatus) EnumDescriptor deprecated

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

Deprecated: Use PullRequestStatus.Descriptor instead.

func (PullRequestStatus) Number

func (PullRequestStatus) String

func (x PullRequestStatus) String() string

func (PullRequestStatus) Type

type Ref

type Ref struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	UpdatedAt int64  `protobuf:"varint,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Ref) Descriptor deprecated

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

Deprecated: Use Ref.ProtoReflect.Descriptor instead.

func (*Ref) GetName

func (x *Ref) GetName() string

func (*Ref) GetUpdatedAt

func (x *Ref) GetUpdatedAt() int64

func (*Ref) ProtoMessage

func (*Ref) ProtoMessage()

func (*Ref) ProtoReflect

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

func (*Ref) Reset

func (x *Ref) Reset()

func (*Ref) String

func (x *Ref) String() string

type Repository

type Repository struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FullName    string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Uri         string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	Name        string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	IsFork      bool   `protobuf:"varint,6,opt,name=is_fork,json=isFork,proto3" json:"is_fork,omitempty"`
	Owner       string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

func (*Repository) Descriptor deprecated

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

Deprecated: Use Repository.ProtoReflect.Descriptor instead.

func (*Repository) GetDescription

func (x *Repository) GetDescription() string

func (*Repository) GetFullName

func (x *Repository) GetFullName() string

func (*Repository) GetId

func (x *Repository) GetId() string

func (*Repository) GetIsFork

func (x *Repository) GetIsFork() bool

func (*Repository) GetName

func (x *Repository) GetName() string

func (*Repository) GetOwner

func (x *Repository) GetOwner() string

func (*Repository) GetUri

func (x *Repository) GetUri() string

func (*Repository) ProtoMessage

func (*Repository) ProtoMessage()

func (*Repository) ProtoReflect

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

func (*Repository) Reset

func (x *Repository) Reset()

func (*Repository) String

func (x *Repository) String() string

type RequestedReviewers

type RequestedReviewers struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Teams []*Team `protobuf:"bytes,2,rep,name=teams,proto3" json:"teams,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestedReviewers) Descriptor deprecated

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

Deprecated: Use RequestedReviewers.ProtoReflect.Descriptor instead.

func (*RequestedReviewers) GetTeams

func (x *RequestedReviewers) GetTeams() []*Team

func (*RequestedReviewers) GetUsers

func (x *RequestedReviewers) GetUsers() []*User

func (*RequestedReviewers) ProtoMessage

func (*RequestedReviewers) ProtoMessage()

func (*RequestedReviewers) ProtoReflect

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

func (*RequestedReviewers) Reset

func (x *RequestedReviewers) Reset()

func (*RequestedReviewers) String

func (x *RequestedReviewers) String() string

type ReviewComment

type ReviewComment struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// In GitLab / Bitbucket, you can have threads in the general comments
	ReplyTo      string                 `protobuf:"bytes,2,opt,name=reply_to,json=replyTo,proto3" json:"reply_to,omitempty"`
	Author       *User                  `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	Severity     CommentSeverity        `protobuf:"varint,4,opt,name=severity,proto3,enum=codehost.CommentSeverity" json:"severity,omitempty"`
	Body         string                 `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	CodeReviewId string                 `protobuf:"bytes,6,opt,name=code_review_id,json=codeReviewId,proto3" json:"code_review_id,omitempty"`
	UserId       string                 `protobuf:"bytes,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserReviewId string                 `protobuf:"bytes,8,opt,name=user_review_id,json=userReviewId,proto3" json:"user_review_id,omitempty"`
	Location     *ReviewCommentLocation `protobuf:"bytes,9,opt,name=location,proto3" json:"location,omitempty"`
	Resolved     *bool                  `protobuf:"varint,10,opt,name=resolved,proto3,oneof" json:"resolved,omitempty"`
	Type         CommentType            `protobuf:"varint,11,opt,name=type,proto3,enum=codehost.CommentType" json:"type,omitempty"`
	IsOutdated   bool                   `protobuf:"varint,12,opt,name=is_outdated,json=isOutdated,proto3" json:"is_outdated,omitempty"`
	Context      *entities.ChangesBlock `protobuf:"bytes,13,opt,name=context,proto3" json:"context,omitempty"`
	FileInfoDiff *entities.FileInfoDiff `protobuf:"bytes,14,opt,name=file_info_diff,json=fileInfoDiff,proto3" json:"file_info_diff,omitempty"`
	LineType     CommentLineType        `protobuf:"varint,15,opt,name=line_type,json=lineType,proto3,enum=codehost.CommentLineType" json:"line_type,omitempty"`
	// Original information
	OriginalLocation     *ReviewCommentLocation    `protobuf:"bytes,16,opt,name=original_location,json=originalLocation,proto3" json:"original_location,omitempty"`
	ExternalId           string                    `protobuf:"bytes,17,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	ExternalNodeId       string                    `protobuf:"bytes,18,opt,name=external_node_id,json=externalNodeId,proto3" json:"external_node_id,omitempty"`
	ExternalReplyTo      string                    `protobuf:"bytes,19,opt,name=external_reply_to,json=externalReplyTo,proto3" json:"external_reply_to,omitempty"`
	ExternalReplyToNode  string                    `protobuf:"bytes,20,opt,name=external_reply_to_node,json=externalReplyToNode,proto3" json:"external_reply_to_node,omitempty"`
	ExternalDiscussionId string                    `protobuf:"bytes,21,opt,name=external_discussion_id,json=externalDiscussionId,proto3" json:"external_discussion_id,omitempty"`
	ExternalCreatedAt    int64                     `protobuf:"varint,22,opt,name=external_created_at,json=externalCreatedAt,proto3" json:"external_created_at,omitempty"`
	ExternalUpdatedAt    int64                     `protobuf:"varint,23,opt,name=external_updated_at,json=externalUpdatedAt,proto3" json:"external_updated_at,omitempty"`
	ExternalReviewId     string                    `protobuf:"bytes,24,opt,name=external_review_id,json=externalReviewId,proto3" json:"external_review_id,omitempty"`
	CreatedAt            int64                     `protobuf:"varint,25,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            int64                     `protobuf:"varint,26,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Diff                 *entities.StaticFileDiffs `protobuf:"bytes,27,opt,name=diff,proto3" json:"diff,omitempty"`
	RelatedCommentsId    []string                  `protobuf:"bytes,28,rep,name=related_comments_id,json=relatedCommentsId,proto3" json:"related_comments_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ReviewComment) Descriptor deprecated

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

Deprecated: Use ReviewComment.ProtoReflect.Descriptor instead.

func (*ReviewComment) GetAuthor

func (x *ReviewComment) GetAuthor() *User

func (*ReviewComment) GetBody

func (x *ReviewComment) GetBody() string

func (*ReviewComment) GetCodeReviewId

func (x *ReviewComment) GetCodeReviewId() string

func (*ReviewComment) GetContext

func (x *ReviewComment) GetContext() *entities.ChangesBlock

func (*ReviewComment) GetCreatedAt

func (x *ReviewComment) GetCreatedAt() int64

func (*ReviewComment) GetDiff

func (x *ReviewComment) GetDiff() *entities.StaticFileDiffs

func (*ReviewComment) GetExternalCreatedAt

func (x *ReviewComment) GetExternalCreatedAt() int64

func (*ReviewComment) GetExternalDiscussionId

func (x *ReviewComment) GetExternalDiscussionId() string

func (*ReviewComment) GetExternalId

func (x *ReviewComment) GetExternalId() string

func (*ReviewComment) GetExternalNodeId

func (x *ReviewComment) GetExternalNodeId() string

func (*ReviewComment) GetExternalReplyTo

func (x *ReviewComment) GetExternalReplyTo() string

func (*ReviewComment) GetExternalReplyToNode

func (x *ReviewComment) GetExternalReplyToNode() string

func (*ReviewComment) GetExternalReviewId

func (x *ReviewComment) GetExternalReviewId() string

func (*ReviewComment) GetExternalUpdatedAt

func (x *ReviewComment) GetExternalUpdatedAt() int64

func (*ReviewComment) GetFileInfoDiff

func (x *ReviewComment) GetFileInfoDiff() *entities.FileInfoDiff

func (*ReviewComment) GetId

func (x *ReviewComment) GetId() string

func (*ReviewComment) GetIsOutdated

func (x *ReviewComment) GetIsOutdated() bool

func (*ReviewComment) GetLineType

func (x *ReviewComment) GetLineType() CommentLineType

func (*ReviewComment) GetLocation

func (x *ReviewComment) GetLocation() *ReviewCommentLocation

func (*ReviewComment) GetOriginalLocation

func (x *ReviewComment) GetOriginalLocation() *ReviewCommentLocation

func (*ReviewComment) GetRelatedCommentsId

func (x *ReviewComment) GetRelatedCommentsId() []string

func (*ReviewComment) GetReplyTo

func (x *ReviewComment) GetReplyTo() string

func (*ReviewComment) GetResolved

func (x *ReviewComment) GetResolved() bool

func (*ReviewComment) GetSeverity

func (x *ReviewComment) GetSeverity() CommentSeverity

func (*ReviewComment) GetType

func (x *ReviewComment) GetType() CommentType

func (*ReviewComment) GetUpdatedAt

func (x *ReviewComment) GetUpdatedAt() int64

func (*ReviewComment) GetUserId

func (x *ReviewComment) GetUserId() string

func (*ReviewComment) GetUserReviewId

func (x *ReviewComment) GetUserReviewId() string

func (*ReviewComment) ProtoMessage

func (*ReviewComment) ProtoMessage()

func (*ReviewComment) ProtoReflect

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

func (*ReviewComment) Reset

func (x *ReviewComment) Reset()

func (*ReviewComment) String

func (x *ReviewComment) String() string

type ReviewCommentLocation

type ReviewCommentLocation struct {
	NewPath      string `protobuf:"bytes,1,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"`
	OldPath      string `protobuf:"bytes,2,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"`
	BaseCommitId string `protobuf:"bytes,3,opt,name=base_commit_id,json=baseCommitId,proto3" json:"base_commit_id,omitempty"`
	HeadCommitId string `protobuf:"bytes,4,opt,name=head_commit_id,json=headCommitId,proto3" json:"head_commit_id,omitempty"`
	NewLine      int32  `protobuf:"varint,5,opt,name=new_line,json=newLine,proto3" json:"new_line,omitempty"`
	OldLine      int32  `protobuf:"varint,6,opt,name=old_line,json=oldLine,proto3" json:"old_line,omitempty"`
	// contains filtered or unexported fields
}

func (*ReviewCommentLocation) Descriptor deprecated

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

Deprecated: Use ReviewCommentLocation.ProtoReflect.Descriptor instead.

func (*ReviewCommentLocation) GetBaseCommitId

func (x *ReviewCommentLocation) GetBaseCommitId() string

func (*ReviewCommentLocation) GetHeadCommitId

func (x *ReviewCommentLocation) GetHeadCommitId() string

func (*ReviewCommentLocation) GetNewLine

func (x *ReviewCommentLocation) GetNewLine() int32

func (*ReviewCommentLocation) GetNewPath

func (x *ReviewCommentLocation) GetNewPath() string

func (*ReviewCommentLocation) GetOldLine

func (x *ReviewCommentLocation) GetOldLine() int32

func (*ReviewCommentLocation) GetOldPath

func (x *ReviewCommentLocation) GetOldPath() string

func (*ReviewCommentLocation) ProtoMessage

func (*ReviewCommentLocation) ProtoMessage()

func (*ReviewCommentLocation) ProtoReflect

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

func (*ReviewCommentLocation) Reset

func (x *ReviewCommentLocation) Reset()

func (*ReviewCommentLocation) String

func (x *ReviewCommentLocation) String() string

type ReviewDiscussionCount

type ReviewDiscussionCount struct {
	Total    int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Resolved int32 `protobuf:"varint,2,opt,name=resolved,proto3" json:"resolved,omitempty"`
	// contains filtered or unexported fields
}

func (*ReviewDiscussionCount) Descriptor deprecated

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

Deprecated: Use ReviewDiscussionCount.ProtoReflect.Descriptor instead.

func (*ReviewDiscussionCount) GetResolved

func (x *ReviewDiscussionCount) GetResolved() int32

func (*ReviewDiscussionCount) GetTotal

func (x *ReviewDiscussionCount) GetTotal() int32

func (*ReviewDiscussionCount) ProtoMessage

func (*ReviewDiscussionCount) ProtoMessage()

func (*ReviewDiscussionCount) ProtoReflect

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

func (*ReviewDiscussionCount) Reset

func (x *ReviewDiscussionCount) Reset()

func (*ReviewDiscussionCount) String

func (x *ReviewDiscussionCount) String() string

type ReviewDiscussionCountBySeverity

type ReviewDiscussionCountBySeverity struct {
	BySeverity map[string]*ReviewDiscussionCount `` /* 179-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ReviewDiscussionCountBySeverity) Descriptor deprecated

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

Deprecated: Use ReviewDiscussionCountBySeverity.ProtoReflect.Descriptor instead.

func (*ReviewDiscussionCountBySeverity) GetBySeverity

func (*ReviewDiscussionCountBySeverity) ProtoMessage

func (*ReviewDiscussionCountBySeverity) ProtoMessage()

func (*ReviewDiscussionCountBySeverity) ProtoReflect

func (*ReviewDiscussionCountBySeverity) Reset

func (*ReviewDiscussionCountBySeverity) String

type ReviewEvent

type ReviewEvent int32
const (
	ReviewEvent_APPROVE         ReviewEvent = 0
	ReviewEvent_REQUEST_CHANGES ReviewEvent = 1
	ReviewEvent_COMMENT         ReviewEvent = 2
	ReviewEvent_UNAPPROVE       ReviewEvent = 3
)

func (ReviewEvent) Descriptor

func (ReviewEvent) Enum

func (x ReviewEvent) Enum() *ReviewEvent

func (ReviewEvent) EnumDescriptor deprecated

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

Deprecated: Use ReviewEvent.Descriptor instead.

func (ReviewEvent) Number

func (x ReviewEvent) Number() protoreflect.EnumNumber

func (ReviewEvent) String

func (x ReviewEvent) String() string

func (ReviewEvent) Type

type ReviewFileComments

type ReviewFileComments struct {
	Comments []*ReviewComment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`
	// contains filtered or unexported fields
}

func (*ReviewFileComments) Descriptor deprecated

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

Deprecated: Use ReviewFileComments.ProtoReflect.Descriptor instead.

func (*ReviewFileComments) GetComments

func (x *ReviewFileComments) GetComments() []*ReviewComment

func (*ReviewFileComments) ProtoMessage

func (*ReviewFileComments) ProtoMessage()

func (*ReviewFileComments) ProtoReflect

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

func (*ReviewFileComments) Reset

func (x *ReviewFileComments) Reset()

func (*ReviewFileComments) String

func (x *ReviewFileComments) String() string

type Team

type Team struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Slug string `protobuf:"bytes,3,opt,name=slug,proto3" json:"slug,omitempty"`
	// contains filtered or unexported fields
}

func (*Team) Descriptor deprecated

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

Deprecated: Use Team.ProtoReflect.Descriptor instead.

func (*Team) GetId

func (x *Team) GetId() string

func (*Team) GetName

func (x *Team) GetName() string

func (*Team) GetSlug

func (x *Team) GetSlug() string

func (*Team) ProtoMessage

func (*Team) ProtoMessage()

func (*Team) ProtoReflect

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

func (*Team) Reset

func (x *Team) Reset()

func (*Team) String

func (x *Team) String() string

type User

type User struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Login string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetId

func (x *User) GetId() string

func (*User) GetLogin

func (x *User) GetLogin() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserReview

type UserReview struct {
	Id           string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ReviewerId   string           `protobuf:"bytes,2,opt,name=reviewer_id,json=reviewerId,proto3" json:"reviewer_id,omitempty"`
	BaseCommitId string           `protobuf:"bytes,3,opt,name=base_commit_id,json=baseCommitId,proto3" json:"base_commit_id,omitempty"`
	HeadCommitId string           `protobuf:"bytes,4,opt,name=head_commit_id,json=headCommitId,proto3" json:"head_commit_id,omitempty"`
	Body         string           `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	Status       UserReviewStatus `protobuf:"varint,6,opt,name=status,proto3,enum=codehost.UserReviewStatus" json:"status,omitempty"`
	CreatedAt    int64            `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt    int64            `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	ExternalId   string           `protobuf:"bytes,9,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserReview) Descriptor deprecated

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

Deprecated: Use UserReview.ProtoReflect.Descriptor instead.

func (*UserReview) GetBaseCommitId

func (x *UserReview) GetBaseCommitId() string

func (*UserReview) GetBody

func (x *UserReview) GetBody() string

func (*UserReview) GetCreatedAt

func (x *UserReview) GetCreatedAt() int64

func (*UserReview) GetExternalId

func (x *UserReview) GetExternalId() string

func (*UserReview) GetHeadCommitId

func (x *UserReview) GetHeadCommitId() string

func (*UserReview) GetId

func (x *UserReview) GetId() string

func (*UserReview) GetReviewerId

func (x *UserReview) GetReviewerId() string

func (*UserReview) GetStatus

func (x *UserReview) GetStatus() UserReviewStatus

func (*UserReview) GetUpdatedAt

func (x *UserReview) GetUpdatedAt() int64

func (*UserReview) ProtoMessage

func (*UserReview) ProtoMessage()

func (*UserReview) ProtoReflect

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

func (*UserReview) Reset

func (x *UserReview) Reset()

func (*UserReview) String

func (x *UserReview) String() string

type UserReviewStatus

type UserReviewStatus int32
const (
	UserReviewStatus_USER_REQUESTED_CHANGES UserReviewStatus = 0
	UserReviewStatus_USER_APPROVED          UserReviewStatus = 1
	UserReviewStatus_USER_COMMENTED         UserReviewStatus = 2
	UserReviewStatus_PENDING                UserReviewStatus = 3
	UserReviewStatus_DISMISSED              UserReviewStatus = 4
)

func (UserReviewStatus) Descriptor

func (UserReviewStatus) Enum

func (UserReviewStatus) EnumDescriptor deprecated

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

Deprecated: Use UserReviewStatus.Descriptor instead.

func (UserReviewStatus) Number

func (UserReviewStatus) String

func (x UserReviewStatus) String() string

func (UserReviewStatus) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL