mirror of https://github.com/harness/drone.git
1510 lines
52 KiB
Go
1510 lines
52 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.1
|
|
// protoc v3.21.11
|
|
// source: diff.proto
|
|
|
|
package rpc
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
// A list of different file statuses
|
|
type DiffResponse_FileStatus int32
|
|
|
|
const (
|
|
// undefined
|
|
DiffResponse_UNDEFINED DiffResponse_FileStatus = 0
|
|
// file has been added
|
|
DiffResponse_ADDED DiffResponse_FileStatus = 1
|
|
// file has been changed
|
|
DiffResponse_MODIFIED DiffResponse_FileStatus = 2
|
|
// file has been deleted
|
|
DiffResponse_DELETED DiffResponse_FileStatus = 3
|
|
// the file has been renamed
|
|
DiffResponse_RENAMED DiffResponse_FileStatus = 4
|
|
)
|
|
|
|
// Enum value maps for DiffResponse_FileStatus.
|
|
var (
|
|
DiffResponse_FileStatus_name = map[int32]string{
|
|
0: "UNDEFINED",
|
|
1: "ADDED",
|
|
2: "MODIFIED",
|
|
3: "DELETED",
|
|
4: "RENAMED",
|
|
}
|
|
DiffResponse_FileStatus_value = map[string]int32{
|
|
"UNDEFINED": 0,
|
|
"ADDED": 1,
|
|
"MODIFIED": 2,
|
|
"DELETED": 3,
|
|
"RENAMED": 4,
|
|
}
|
|
)
|
|
|
|
func (x DiffResponse_FileStatus) Enum() *DiffResponse_FileStatus {
|
|
p := new(DiffResponse_FileStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x DiffResponse_FileStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (DiffResponse_FileStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_diff_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (DiffResponse_FileStatus) Type() protoreflect.EnumType {
|
|
return &file_diff_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x DiffResponse_FileStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use DiffResponse_FileStatus.Descriptor instead.
|
|
func (DiffResponse_FileStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{10, 0}
|
|
}
|
|
|
|
type DiffRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Base *ReadRequest `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
// base_ref is left side of compare and can be branch, commit and tag
|
|
BaseRef string `protobuf:"bytes,2,opt,name=base_ref,json=baseRef,proto3" json:"base_ref,omitempty"`
|
|
// head_ref is right side of compare and can be branch, commit and tag
|
|
HeadRef string `protobuf:"bytes,3,opt,name=head_ref,json=headRef,proto3" json:"head_ref,omitempty"`
|
|
// merge_base used only in branch comparison, if merge_base is true
|
|
// it will show diff from the commit where branch is created and head branch
|
|
MergeBase bool `protobuf:"varint,4,opt,name=merge_base,json=mergeBase,proto3" json:"merge_base,omitempty"`
|
|
// include_patch
|
|
IncludePatch bool `protobuf:"varint,5,opt,name=include_patch,json=includePatch,proto3" json:"include_patch,omitempty"`
|
|
}
|
|
|
|
func (x *DiffRequest) Reset() {
|
|
*x = DiffRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DiffRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DiffRequest) ProtoMessage() {}
|
|
|
|
func (x *DiffRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DiffRequest.ProtoReflect.Descriptor instead.
|
|
func (*DiffRequest) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DiffRequest) GetBase() *ReadRequest {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DiffRequest) GetBaseRef() string {
|
|
if x != nil {
|
|
return x.BaseRef
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffRequest) GetHeadRef() string {
|
|
if x != nil {
|
|
return x.HeadRef
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffRequest) GetMergeBase() bool {
|
|
if x != nil {
|
|
return x.MergeBase
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DiffRequest) GetIncludePatch() bool {
|
|
if x != nil {
|
|
return x.IncludePatch
|
|
}
|
|
return false
|
|
}
|
|
|
|
type RawDiffResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
}
|
|
|
|
func (x *RawDiffResponse) Reset() {
|
|
*x = RawDiffResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *RawDiffResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RawDiffResponse) ProtoMessage() {}
|
|
|
|
func (x *RawDiffResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RawDiffResponse.ProtoReflect.Descriptor instead.
|
|
func (*RawDiffResponse) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *RawDiffResponse) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DiffShortStatResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Files int32 `protobuf:"varint,1,opt,name=files,proto3" json:"files,omitempty"`
|
|
Additions int32 `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"`
|
|
Deletions int32 `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"`
|
|
}
|
|
|
|
func (x *DiffShortStatResponse) Reset() {
|
|
*x = DiffShortStatResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DiffShortStatResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DiffShortStatResponse) ProtoMessage() {}
|
|
|
|
func (x *DiffShortStatResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DiffShortStatResponse.ProtoReflect.Descriptor instead.
|
|
func (*DiffShortStatResponse) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *DiffShortStatResponse) GetFiles() int32 {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DiffShortStatResponse) GetAdditions() int32 {
|
|
if x != nil {
|
|
return x.Additions
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DiffShortStatResponse) GetDeletions() int32 {
|
|
if x != nil {
|
|
return x.Deletions
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HunkHeader struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
OldLine int32 `protobuf:"varint,1,opt,name=old_line,json=oldLine,proto3" json:"old_line,omitempty"`
|
|
OldSpan int32 `protobuf:"varint,2,opt,name=old_span,json=oldSpan,proto3" json:"old_span,omitempty"`
|
|
NewLine int32 `protobuf:"varint,3,opt,name=new_line,json=newLine,proto3" json:"new_line,omitempty"`
|
|
NewSpan int32 `protobuf:"varint,4,opt,name=new_span,json=newSpan,proto3" json:"new_span,omitempty"`
|
|
Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"`
|
|
}
|
|
|
|
func (x *HunkHeader) Reset() {
|
|
*x = HunkHeader{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *HunkHeader) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HunkHeader) ProtoMessage() {}
|
|
|
|
func (x *HunkHeader) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use HunkHeader.ProtoReflect.Descriptor instead.
|
|
func (*HunkHeader) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *HunkHeader) GetOldLine() int32 {
|
|
if x != nil {
|
|
return x.OldLine
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HunkHeader) GetOldSpan() int32 {
|
|
if x != nil {
|
|
return x.OldSpan
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HunkHeader) GetNewLine() int32 {
|
|
if x != nil {
|
|
return x.NewLine
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HunkHeader) GetNewSpan() int32 {
|
|
if x != nil {
|
|
return x.NewSpan
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HunkHeader) GetText() string {
|
|
if x != nil {
|
|
return x.Text
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DiffFileHeader struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
OldFileName string `protobuf:"bytes,1,opt,name=old_file_name,json=oldFileName,proto3" json:"old_file_name,omitempty"`
|
|
NewFileName string `protobuf:"bytes,2,opt,name=new_file_name,json=newFileName,proto3" json:"new_file_name,omitempty"`
|
|
Extensions map[string]string `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (x *DiffFileHeader) Reset() {
|
|
*x = DiffFileHeader{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DiffFileHeader) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DiffFileHeader) ProtoMessage() {}
|
|
|
|
func (x *DiffFileHeader) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DiffFileHeader.ProtoReflect.Descriptor instead.
|
|
func (*DiffFileHeader) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *DiffFileHeader) GetOldFileName() string {
|
|
if x != nil {
|
|
return x.OldFileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffFileHeader) GetNewFileName() string {
|
|
if x != nil {
|
|
return x.NewFileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffFileHeader) GetExtensions() map[string]string {
|
|
if x != nil {
|
|
return x.Extensions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DiffFileHunkHeaders struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
FileHeader *DiffFileHeader `protobuf:"bytes,1,opt,name=file_header,json=fileHeader,proto3" json:"file_header,omitempty"`
|
|
HunkHeaders []*HunkHeader `protobuf:"bytes,2,rep,name=hunk_headers,json=hunkHeaders,proto3" json:"hunk_headers,omitempty"`
|
|
}
|
|
|
|
func (x *DiffFileHunkHeaders) Reset() {
|
|
*x = DiffFileHunkHeaders{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DiffFileHunkHeaders) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DiffFileHunkHeaders) ProtoMessage() {}
|
|
|
|
func (x *DiffFileHunkHeaders) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DiffFileHunkHeaders.ProtoReflect.Descriptor instead.
|
|
func (*DiffFileHunkHeaders) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *DiffFileHunkHeaders) GetFileHeader() *DiffFileHeader {
|
|
if x != nil {
|
|
return x.FileHeader
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DiffFileHunkHeaders) GetHunkHeaders() []*HunkHeader {
|
|
if x != nil {
|
|
return x.HunkHeaders
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetDiffHunkHeadersRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Base *ReadRequest `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
SourceCommitSha string `protobuf:"bytes,2,opt,name=source_commit_sha,json=sourceCommitSha,proto3" json:"source_commit_sha,omitempty"`
|
|
TargetCommitSha string `protobuf:"bytes,4,opt,name=target_commit_sha,json=targetCommitSha,proto3" json:"target_commit_sha,omitempty"`
|
|
}
|
|
|
|
func (x *GetDiffHunkHeadersRequest) Reset() {
|
|
*x = GetDiffHunkHeadersRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetDiffHunkHeadersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetDiffHunkHeadersRequest) ProtoMessage() {}
|
|
|
|
func (x *GetDiffHunkHeadersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[6]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetDiffHunkHeadersRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetDiffHunkHeadersRequest) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *GetDiffHunkHeadersRequest) GetBase() *ReadRequest {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetDiffHunkHeadersRequest) GetSourceCommitSha() string {
|
|
if x != nil {
|
|
return x.SourceCommitSha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetDiffHunkHeadersRequest) GetTargetCommitSha() string {
|
|
if x != nil {
|
|
return x.TargetCommitSha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetDiffHunkHeadersResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Files []*DiffFileHunkHeaders `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
|
}
|
|
|
|
func (x *GetDiffHunkHeadersResponse) Reset() {
|
|
*x = GetDiffHunkHeadersResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetDiffHunkHeadersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetDiffHunkHeadersResponse) ProtoMessage() {}
|
|
|
|
func (x *GetDiffHunkHeadersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[7]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetDiffHunkHeadersResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetDiffHunkHeadersResponse) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *GetDiffHunkHeadersResponse) GetFiles() []*DiffFileHunkHeaders {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DiffCutRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Base *ReadRequest `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
SourceCommitSha string `protobuf:"bytes,2,opt,name=source_commit_sha,json=sourceCommitSha,proto3" json:"source_commit_sha,omitempty"`
|
|
SourceBranch string `protobuf:"bytes,3,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`
|
|
TargetCommitSha string `protobuf:"bytes,4,opt,name=target_commit_sha,json=targetCommitSha,proto3" json:"target_commit_sha,omitempty"`
|
|
TargetBranch string `protobuf:"bytes,5,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"`
|
|
Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"`
|
|
LineStart int32 `protobuf:"varint,7,opt,name=line_start,json=lineStart,proto3" json:"line_start,omitempty"`
|
|
LineStartNew bool `protobuf:"varint,8,opt,name=line_start_new,json=lineStartNew,proto3" json:"line_start_new,omitempty"`
|
|
LineEnd int32 `protobuf:"varint,9,opt,name=line_end,json=lineEnd,proto3" json:"line_end,omitempty"`
|
|
LineEndNew bool `protobuf:"varint,10,opt,name=line_end_new,json=lineEndNew,proto3" json:"line_end_new,omitempty"`
|
|
}
|
|
|
|
func (x *DiffCutRequest) Reset() {
|
|
*x = DiffCutRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DiffCutRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DiffCutRequest) ProtoMessage() {}
|
|
|
|
func (x *DiffCutRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[8]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DiffCutRequest.ProtoReflect.Descriptor instead.
|
|
func (*DiffCutRequest) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *DiffCutRequest) GetBase() *ReadRequest {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DiffCutRequest) GetSourceCommitSha() string {
|
|
if x != nil {
|
|
return x.SourceCommitSha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffCutRequest) GetSourceBranch() string {
|
|
if x != nil {
|
|
return x.SourceBranch
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffCutRequest) GetTargetCommitSha() string {
|
|
if x != nil {
|
|
return x.TargetCommitSha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffCutRequest) GetTargetBranch() string {
|
|
if x != nil {
|
|
return x.TargetBranch
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffCutRequest) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffCutRequest) GetLineStart() int32 {
|
|
if x != nil {
|
|
return x.LineStart
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DiffCutRequest) GetLineStartNew() bool {
|
|
if x != nil {
|
|
return x.LineStartNew
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DiffCutRequest) GetLineEnd() int32 {
|
|
if x != nil {
|
|
return x.LineEnd
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DiffCutRequest) GetLineEndNew() bool {
|
|
if x != nil {
|
|
return x.LineEndNew
|
|
}
|
|
return false
|
|
}
|
|
|
|
type DiffCutResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
HunkHeader *HunkHeader `protobuf:"bytes,1,opt,name=hunk_header,json=hunkHeader,proto3" json:"hunk_header,omitempty"`
|
|
LinesHeader string `protobuf:"bytes,2,opt,name=lines_header,json=linesHeader,proto3" json:"lines_header,omitempty"`
|
|
Lines []string `protobuf:"bytes,3,rep,name=lines,proto3" json:"lines,omitempty"`
|
|
MergeBaseSha string `protobuf:"bytes,4,opt,name=merge_base_sha,json=mergeBaseSha,proto3" json:"merge_base_sha,omitempty"`
|
|
LatestSourceSha string `protobuf:"bytes,5,opt,name=latest_source_sha,json=latestSourceSha,proto3" json:"latest_source_sha,omitempty"`
|
|
}
|
|
|
|
func (x *DiffCutResponse) Reset() {
|
|
*x = DiffCutResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DiffCutResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DiffCutResponse) ProtoMessage() {}
|
|
|
|
func (x *DiffCutResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[9]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DiffCutResponse.ProtoReflect.Descriptor instead.
|
|
func (*DiffCutResponse) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *DiffCutResponse) GetHunkHeader() *HunkHeader {
|
|
if x != nil {
|
|
return x.HunkHeader
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DiffCutResponse) GetLinesHeader() string {
|
|
if x != nil {
|
|
return x.LinesHeader
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffCutResponse) GetLines() []string {
|
|
if x != nil {
|
|
return x.Lines
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DiffCutResponse) GetMergeBaseSha() string {
|
|
if x != nil {
|
|
return x.MergeBaseSha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffCutResponse) GetLatestSourceSha() string {
|
|
if x != nil {
|
|
return x.LatestSourceSha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DiffResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// The path and name of the file
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
// The old path and name of the file
|
|
OldPath string `protobuf:"bytes,2,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"`
|
|
// sha (SHA1 hash) of the file. For a changed/new file, it is the new SHA,
|
|
// and for a deleted file it becomes "000000".
|
|
Sha string `protobuf:"bytes,3,opt,name=sha,proto3" json:"sha,omitempty"`
|
|
// old_sha is the old index (SHA1 hash) of the file.
|
|
OldSha string `protobuf:"bytes,4,opt,name=old_sha,json=oldSha,proto3" json:"old_sha,omitempty"`
|
|
// status of the file.
|
|
Status DiffResponse_FileStatus `protobuf:"varint,5,opt,name=status,proto3,enum=rpc.DiffResponse_FileStatus" json:"status,omitempty"`
|
|
// total number of additions in the file
|
|
Additions int32 `protobuf:"varint,6,opt,name=additions,proto3" json:"additions,omitempty"`
|
|
// total number of deletions in the file
|
|
Deletions int32 `protobuf:"varint,7,opt,name=deletions,proto3" json:"deletions,omitempty"`
|
|
// number of changes in the file
|
|
Changes int32 `protobuf:"varint,8,opt,name=changes,proto3" json:"changes,omitempty"`
|
|
// patch from the file diff
|
|
Patch []byte `protobuf:"bytes,9,opt,name=patch,proto3" json:"patch,omitempty"`
|
|
// is binary file
|
|
IsBinary bool `protobuf:"varint,10,opt,name=is_binary,json=isBinary,proto3" json:"is_binary,omitempty"`
|
|
// is submodule
|
|
IsSubmodule bool `protobuf:"varint,11,opt,name=is_submodule,json=isSubmodule,proto3" json:"is_submodule,omitempty"`
|
|
}
|
|
|
|
func (x *DiffResponse) Reset() {
|
|
*x = DiffResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DiffResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DiffResponse) ProtoMessage() {}
|
|
|
|
func (x *DiffResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[10]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DiffResponse.ProtoReflect.Descriptor instead.
|
|
func (*DiffResponse) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *DiffResponse) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffResponse) GetOldPath() string {
|
|
if x != nil {
|
|
return x.OldPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffResponse) GetSha() string {
|
|
if x != nil {
|
|
return x.Sha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffResponse) GetOldSha() string {
|
|
if x != nil {
|
|
return x.OldSha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DiffResponse) GetStatus() DiffResponse_FileStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return DiffResponse_UNDEFINED
|
|
}
|
|
|
|
func (x *DiffResponse) GetAdditions() int32 {
|
|
if x != nil {
|
|
return x.Additions
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DiffResponse) GetDeletions() int32 {
|
|
if x != nil {
|
|
return x.Deletions
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DiffResponse) GetChanges() int32 {
|
|
if x != nil {
|
|
return x.Changes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DiffResponse) GetPatch() []byte {
|
|
if x != nil {
|
|
return x.Patch
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DiffResponse) GetIsBinary() bool {
|
|
if x != nil {
|
|
return x.IsBinary
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DiffResponse) GetIsSubmodule() bool {
|
|
if x != nil {
|
|
return x.IsSubmodule
|
|
}
|
|
return false
|
|
}
|
|
|
|
type CommitDiffRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Base *ReadRequest `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Sha string `protobuf:"bytes,2,opt,name=sha,proto3" json:"sha,omitempty"`
|
|
}
|
|
|
|
func (x *CommitDiffRequest) Reset() {
|
|
*x = CommitDiffRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CommitDiffRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommitDiffRequest) ProtoMessage() {}
|
|
|
|
func (x *CommitDiffRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[11]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CommitDiffRequest.ProtoReflect.Descriptor instead.
|
|
func (*CommitDiffRequest) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *CommitDiffRequest) GetBase() *ReadRequest {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CommitDiffRequest) GetSha() string {
|
|
if x != nil {
|
|
return x.Sha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CommitDiffResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
}
|
|
|
|
func (x *CommitDiffResponse) Reset() {
|
|
*x = CommitDiffResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CommitDiffResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommitDiffResponse) ProtoMessage() {}
|
|
|
|
func (x *CommitDiffResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[12]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CommitDiffResponse.ProtoReflect.Descriptor instead.
|
|
func (*CommitDiffResponse) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *CommitDiffResponse) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DiffFileStatResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Files []string `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
|
}
|
|
|
|
func (x *DiffFileStatResponse) Reset() {
|
|
*x = DiffFileStatResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_diff_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DiffFileStatResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DiffFileStatResponse) ProtoMessage() {}
|
|
|
|
func (x *DiffFileStatResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_diff_proto_msgTypes[13]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DiffFileStatResponse.ProtoReflect.Descriptor instead.
|
|
func (*DiffFileStatResponse) Descriptor() ([]byte, []int) {
|
|
return file_diff_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *DiffFileStatResponse) GetFiles() []string {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_diff_proto protoreflect.FileDescriptor
|
|
|
|
var file_diff_proto_rawDesc = []byte{
|
|
0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x72, 0x70,
|
|
0x63, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
|
|
0xad, 0x01, 0x0a, 0x0b, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
0x24, 0x0a, 0x04, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e,
|
|
0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52,
|
|
0x04, 0x62, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x65,
|
|
0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x66,
|
|
0x12, 0x19, 0x0a, 0x08, 0x68, 0x65, 0x61, 0x64, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x52, 0x65, 0x66, 0x12, 0x1d, 0x0a, 0x0a, 0x6d,
|
|
0x65, 0x72, 0x67, 0x65, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
|
|
0x09, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e,
|
|
0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x50, 0x61, 0x74, 0x63, 0x68, 0x22,
|
|
0x25, 0x0a, 0x0f, 0x52, 0x61, 0x77, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
|
|
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x69, 0x0a, 0x15, 0x44, 0x69, 0x66, 0x66, 0x53, 0x68,
|
|
0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
0x14, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
|
|
0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69,
|
|
0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x73, 0x22, 0x8c, 0x01, 0x0a, 0x0a, 0x48, 0x75, 0x6e, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
|
0x12, 0x19, 0x0a, 0x08, 0x6f, 0x6c, 0x64, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x05, 0x52, 0x07, 0x6f, 0x6c, 0x64, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6f,
|
|
0x6c, 0x64, 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6f,
|
|
0x6c, 0x64, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x6c, 0x69,
|
|
0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x4c, 0x69, 0x6e,
|
|
0x65, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x04, 0x20,
|
|
0x01, 0x28, 0x05, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04,
|
|
0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74,
|
|
0x22, 0xdc, 0x01, 0x0a, 0x0e, 0x44, 0x69, 0x66, 0x66, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x65, 0x61,
|
|
0x64, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0d, 0x6f, 0x6c, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f,
|
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x6c, 0x64, 0x46,
|
|
0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x77, 0x5f, 0x66,
|
|
0x69, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
|
0x6e, 0x65, 0x77, 0x46, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x65,
|
|
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
0x23, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x65,
|
|
0x61, 0x64, 0x65, 0x72, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45,
|
|
0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
|
|
0x1a, 0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e,
|
|
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
|
|
0x7f, 0x0a, 0x13, 0x44, 0x69, 0x66, 0x66, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x75, 0x6e, 0x6b, 0x48,
|
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x34, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x68,
|
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x72, 0x70,
|
|
0x63, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
|
0x52, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x0c,
|
|
0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03,
|
|
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x75, 0x6e, 0x6b, 0x48, 0x65, 0x61,
|
|
0x64, 0x65, 0x72, 0x52, 0x0b, 0x68, 0x75, 0x6e, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
|
|
0x22, 0x99, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x69, 0x66, 0x66, 0x48, 0x75, 0x6e, 0x6b,
|
|
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24,
|
|
0x0a, 0x04, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72,
|
|
0x70, 0x63, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04,
|
|
0x62, 0x61, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63,
|
|
0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x68, 0x61,
|
|
0x12, 0x2a, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69,
|
|
0x74, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x61, 0x72,
|
|
0x67, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x68, 0x61, 0x22, 0x4c, 0x0a, 0x1a,
|
|
0x47, 0x65, 0x74, 0x44, 0x69, 0x66, 0x66, 0x48, 0x75, 0x6e, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65,
|
|
0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x66, 0x69,
|
|
0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x72, 0x70, 0x63, 0x2e,
|
|
0x44, 0x69, 0x66, 0x66, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x75, 0x6e, 0x6b, 0x48, 0x65, 0x61, 0x64,
|
|
0x65, 0x72, 0x73, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0xee, 0x02, 0x0a, 0x0e, 0x44,
|
|
0x69, 0x66, 0x66, 0x43, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a,
|
|
0x04, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x70,
|
|
0x63, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x62,
|
|
0x61, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f,
|
|
0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
|
|
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x68, 0x61, 0x12,
|
|
0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72,
|
|
0x61, 0x6e, 0x63, 0x68, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x63,
|
|
0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x68, 0x61,
|
|
0x12, 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63,
|
|
0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x42,
|
|
0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x69, 0x6e,
|
|
0x65, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6c,
|
|
0x69, 0x6e, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x69, 0x6e, 0x65,
|
|
0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6e, 0x65, 0x77, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08,
|
|
0x52, 0x0c, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x65, 0x77, 0x12, 0x19,
|
|
0x0a, 0x08, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05,
|
|
0x52, 0x07, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x6c, 0x69, 0x6e,
|
|
0x65, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x6e, 0x65, 0x77, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52,
|
|
0x0a, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x6e, 0x64, 0x4e, 0x65, 0x77, 0x22, 0xce, 0x01, 0x0a, 0x0f,
|
|
0x44, 0x69, 0x66, 0x66, 0x43, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
0x30, 0x0a, 0x0b, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x75, 0x6e, 0x6b, 0x48,
|
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x68, 0x75, 0x6e, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65,
|
|
0x72, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65,
|
|
0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x48, 0x65,
|
|
0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20,
|
|
0x03, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x65,
|
|
0x72, 0x67, 0x65, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x04, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x0c, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x42, 0x61, 0x73, 0x65, 0x53, 0x68, 0x61,
|
|
0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63,
|
|
0x65, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x61, 0x74,
|
|
0x65, 0x73, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x22, 0x9a, 0x03, 0x0a,
|
|
0x0c, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
|
|
0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74,
|
|
0x68, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03,
|
|
0x73, 0x68, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x68, 0x61, 0x12, 0x17,
|
|
0x0a, 0x07, 0x6f, 0x6c, 0x64, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x06, 0x6f, 0x6c, 0x64, 0x53, 0x68, 0x61, 0x12, 0x34, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
|
|
0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69,
|
|
0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53,
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a,
|
|
0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
|
|
0x52, 0x09, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x64,
|
|
0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09,
|
|
0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61,
|
|
0x6e, 0x67, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e,
|
|
0x67, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x09, 0x20, 0x01,
|
|
0x28, 0x0c, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f,
|
|
0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73,
|
|
0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x73, 0x75, 0x62,
|
|
0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73,
|
|
0x53, 0x75, 0x62, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x22, 0x4e, 0x0a, 0x0a, 0x46, 0x69, 0x6c,
|
|
0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46,
|
|
0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10,
|
|
0x01, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x02, 0x12,
|
|
0x0b, 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07,
|
|
0x52, 0x45, 0x4e, 0x41, 0x4d, 0x45, 0x44, 0x10, 0x04, 0x22, 0x4b, 0x0a, 0x11, 0x43, 0x6f, 0x6d,
|
|
0x6d, 0x69, 0x74, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24,
|
|
0x0a, 0x04, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72,
|
|
0x70, 0x63, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04,
|
|
0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x68, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x03, 0x73, 0x68, 0x61, 0x22, 0x28, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74,
|
|
0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
|
0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
|
|
0x22, 0x2c, 0x0a, 0x14, 0x44, 0x69, 0x66, 0x66, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74,
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65,
|
|
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x32, 0xc7,
|
|
0x03, 0x0a, 0x0b, 0x44, 0x69, 0x66, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x35,
|
|
0x0a, 0x07, 0x52, 0x61, 0x77, 0x44, 0x69, 0x66, 0x66, 0x12, 0x10, 0x2e, 0x72, 0x70, 0x63, 0x2e,
|
|
0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x72, 0x70,
|
|
0x63, 0x2e, 0x52, 0x61, 0x77, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x2f, 0x0a, 0x04, 0x44, 0x69, 0x66, 0x66, 0x12, 0x10, 0x2e,
|
|
0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
0x11, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74,
|
|
0x44, 0x69, 0x66, 0x66, 0x12, 0x16, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69,
|
|
0x74, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x72,
|
|
0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73,
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x0d, 0x44, 0x69, 0x66, 0x66, 0x53,
|
|
0x68, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x12, 0x10, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44,
|
|
0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x72, 0x70, 0x63,
|
|
0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65,
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44,
|
|
0x69, 0x66, 0x66, 0x48, 0x75, 0x6e, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1e,
|
|
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x69, 0x66, 0x66, 0x48, 0x75, 0x6e, 0x6b,
|
|
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f,
|
|
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x69, 0x66, 0x66, 0x48, 0x75, 0x6e, 0x6b,
|
|
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
|
0x00, 0x12, 0x36, 0x0a, 0x07, 0x44, 0x69, 0x66, 0x66, 0x43, 0x75, 0x74, 0x12, 0x13, 0x2e, 0x72,
|
|
0x70, 0x63, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x43, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x1a, 0x14, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x43, 0x75, 0x74, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0c, 0x44, 0x69, 0x66,
|
|
0x66, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x12, 0x10, 0x2e, 0x72, 0x70, 0x63, 0x2e,
|
|
0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x72, 0x70,
|
|
0x63, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65,
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68,
|
|
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x72, 0x6e, 0x65, 0x73, 0x73, 0x2f, 0x67,
|
|
0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x69, 0x74, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x70,
|
|
0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_diff_proto_rawDescOnce sync.Once
|
|
file_diff_proto_rawDescData = file_diff_proto_rawDesc
|
|
)
|
|
|
|
func file_diff_proto_rawDescGZIP() []byte {
|
|
file_diff_proto_rawDescOnce.Do(func() {
|
|
file_diff_proto_rawDescData = protoimpl.X.CompressGZIP(file_diff_proto_rawDescData)
|
|
})
|
|
return file_diff_proto_rawDescData
|
|
}
|
|
|
|
var file_diff_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_diff_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
|
var file_diff_proto_goTypes = []interface{}{
|
|
(DiffResponse_FileStatus)(0), // 0: rpc.DiffResponse.FileStatus
|
|
(*DiffRequest)(nil), // 1: rpc.DiffRequest
|
|
(*RawDiffResponse)(nil), // 2: rpc.RawDiffResponse
|
|
(*DiffShortStatResponse)(nil), // 3: rpc.DiffShortStatResponse
|
|
(*HunkHeader)(nil), // 4: rpc.HunkHeader
|
|
(*DiffFileHeader)(nil), // 5: rpc.DiffFileHeader
|
|
(*DiffFileHunkHeaders)(nil), // 6: rpc.DiffFileHunkHeaders
|
|
(*GetDiffHunkHeadersRequest)(nil), // 7: rpc.GetDiffHunkHeadersRequest
|
|
(*GetDiffHunkHeadersResponse)(nil), // 8: rpc.GetDiffHunkHeadersResponse
|
|
(*DiffCutRequest)(nil), // 9: rpc.DiffCutRequest
|
|
(*DiffCutResponse)(nil), // 10: rpc.DiffCutResponse
|
|
(*DiffResponse)(nil), // 11: rpc.DiffResponse
|
|
(*CommitDiffRequest)(nil), // 12: rpc.CommitDiffRequest
|
|
(*CommitDiffResponse)(nil), // 13: rpc.CommitDiffResponse
|
|
(*DiffFileStatResponse)(nil), // 14: rpc.DiffFileStatResponse
|
|
nil, // 15: rpc.DiffFileHeader.ExtensionsEntry
|
|
(*ReadRequest)(nil), // 16: rpc.ReadRequest
|
|
}
|
|
var file_diff_proto_depIdxs = []int32{
|
|
16, // 0: rpc.DiffRequest.base:type_name -> rpc.ReadRequest
|
|
15, // 1: rpc.DiffFileHeader.extensions:type_name -> rpc.DiffFileHeader.ExtensionsEntry
|
|
5, // 2: rpc.DiffFileHunkHeaders.file_header:type_name -> rpc.DiffFileHeader
|
|
4, // 3: rpc.DiffFileHunkHeaders.hunk_headers:type_name -> rpc.HunkHeader
|
|
16, // 4: rpc.GetDiffHunkHeadersRequest.base:type_name -> rpc.ReadRequest
|
|
6, // 5: rpc.GetDiffHunkHeadersResponse.files:type_name -> rpc.DiffFileHunkHeaders
|
|
16, // 6: rpc.DiffCutRequest.base:type_name -> rpc.ReadRequest
|
|
4, // 7: rpc.DiffCutResponse.hunk_header:type_name -> rpc.HunkHeader
|
|
0, // 8: rpc.DiffResponse.status:type_name -> rpc.DiffResponse.FileStatus
|
|
16, // 9: rpc.CommitDiffRequest.base:type_name -> rpc.ReadRequest
|
|
1, // 10: rpc.DiffService.RawDiff:input_type -> rpc.DiffRequest
|
|
1, // 11: rpc.DiffService.Diff:input_type -> rpc.DiffRequest
|
|
12, // 12: rpc.DiffService.CommitDiff:input_type -> rpc.CommitDiffRequest
|
|
1, // 13: rpc.DiffService.DiffShortStat:input_type -> rpc.DiffRequest
|
|
7, // 14: rpc.DiffService.GetDiffHunkHeaders:input_type -> rpc.GetDiffHunkHeadersRequest
|
|
9, // 15: rpc.DiffService.DiffCut:input_type -> rpc.DiffCutRequest
|
|
1, // 16: rpc.DiffService.DiffFileStat:input_type -> rpc.DiffRequest
|
|
2, // 17: rpc.DiffService.RawDiff:output_type -> rpc.RawDiffResponse
|
|
11, // 18: rpc.DiffService.Diff:output_type -> rpc.DiffResponse
|
|
13, // 19: rpc.DiffService.CommitDiff:output_type -> rpc.CommitDiffResponse
|
|
3, // 20: rpc.DiffService.DiffShortStat:output_type -> rpc.DiffShortStatResponse
|
|
8, // 21: rpc.DiffService.GetDiffHunkHeaders:output_type -> rpc.GetDiffHunkHeadersResponse
|
|
10, // 22: rpc.DiffService.DiffCut:output_type -> rpc.DiffCutResponse
|
|
14, // 23: rpc.DiffService.DiffFileStat:output_type -> rpc.DiffFileStatResponse
|
|
17, // [17:24] is the sub-list for method output_type
|
|
10, // [10:17] is the sub-list for method input_type
|
|
10, // [10:10] is the sub-list for extension type_name
|
|
10, // [10:10] is the sub-list for extension extendee
|
|
0, // [0:10] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_diff_proto_init() }
|
|
func file_diff_proto_init() {
|
|
if File_diff_proto != nil {
|
|
return
|
|
}
|
|
file_shared_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_diff_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DiffRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*RawDiffResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DiffShortStatResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*HunkHeader); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DiffFileHeader); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DiffFileHunkHeaders); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GetDiffHunkHeadersRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GetDiffHunkHeadersResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DiffCutRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DiffCutResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DiffResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CommitDiffRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CommitDiffResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_diff_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DiffFileStatResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_diff_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 15,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_diff_proto_goTypes,
|
|
DependencyIndexes: file_diff_proto_depIdxs,
|
|
EnumInfos: file_diff_proto_enumTypes,
|
|
MessageInfos: file_diff_proto_msgTypes,
|
|
}.Build()
|
|
File_diff_proto = out.File
|
|
file_diff_proto_rawDesc = nil
|
|
file_diff_proto_goTypes = nil
|
|
file_diff_proto_depIdxs = nil
|
|
}
|