// SPDX-License-Identifier: MIT // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.12 // protoc (unknown) // source: ermite/git.proto package ermite import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // RefKind is the kind of a Git ref. type RefKind int32 const ( // Not set. In ListRefsRequest.kinds it is rejected; never returned. RefKind_REF_KIND_UNSPECIFIED RefKind = 0 // A branch (refs/heads/*). RefKind_REF_KIND_BRANCH RefKind = 1 // A tag (refs/tags/*), lightweight or annotated. RefKind_REF_KIND_TAG RefKind = 2 // The symbolic ref HEAD, that is the default branch. RefKind_REF_KIND_HEAD RefKind = 3 ) // Enum value maps for RefKind. var ( RefKind_name = map[int32]string{ 0: "REF_KIND_UNSPECIFIED", 1: "REF_KIND_BRANCH", 2: "REF_KIND_TAG", 3: "REF_KIND_HEAD", } RefKind_value = map[string]int32{ "REF_KIND_UNSPECIFIED": 0, "REF_KIND_BRANCH": 1, "REF_KIND_TAG": 2, "REF_KIND_HEAD": 3, } ) func (x RefKind) Enum() *RefKind { p := new(RefKind) *p = x return p } func (x RefKind) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (RefKind) Descriptor() protoreflect.EnumDescriptor { return file_ermite_git_proto_enumTypes[0].Descriptor() } func (RefKind) Type() protoreflect.EnumType { return &file_ermite_git_proto_enumTypes[0] } func (x RefKind) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use RefKind.Descriptor instead. func (RefKind) EnumDescriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{0} } // EntryKind is the kind of an entry of a Git tree. type EntryKind int32 const ( // Not set. Never returned. EntryKind_ENTRY_KIND_UNSPECIFIED EntryKind = 0 // A regular, non-executable file (mode 100644). EntryKind_ENTRY_KIND_FILE EntryKind = 1 // An executable file (mode 100755). EntryKind_ENTRY_KIND_EXECUTABLE EntryKind = 2 // A directory (mode 040000). EntryKind_ENTRY_KIND_DIRECTORY EntryKind = 3 // A symbolic link (mode 120000). The blob content is the link target. EntryKind_ENTRY_KIND_SYMLINK EntryKind = 4 // A submodule commit (mode 160000). The id is a commit of another // repository, which this one does not contain. EntryKind_ENTRY_KIND_SUBMODULE EntryKind = 5 ) // Enum value maps for EntryKind. var ( EntryKind_name = map[int32]string{ 0: "ENTRY_KIND_UNSPECIFIED", 1: "ENTRY_KIND_FILE", 2: "ENTRY_KIND_EXECUTABLE", 3: "ENTRY_KIND_DIRECTORY", 4: "ENTRY_KIND_SYMLINK", 5: "ENTRY_KIND_SUBMODULE", } EntryKind_value = map[string]int32{ "ENTRY_KIND_UNSPECIFIED": 0, "ENTRY_KIND_FILE": 1, "ENTRY_KIND_EXECUTABLE": 2, "ENTRY_KIND_DIRECTORY": 3, "ENTRY_KIND_SYMLINK": 4, "ENTRY_KIND_SUBMODULE": 5, } ) func (x EntryKind) Enum() *EntryKind { p := new(EntryKind) *p = x return p } func (x EntryKind) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (EntryKind) Descriptor() protoreflect.EnumDescriptor { return file_ermite_git_proto_enumTypes[1].Descriptor() } func (EntryKind) Type() protoreflect.EnumType { return &file_ermite_git_proto_enumTypes[1] } func (x EntryKind) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use EntryKind.Descriptor instead. func (EntryKind) EnumDescriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{1} } // FileStatus tells what a commit did to a file. type FileStatus int32 const ( // Not set. Never returned. FileStatus_FILE_STATUS_UNSPECIFIED FileStatus = 0 // The file was added. FileStatus_FILE_STATUS_ADDED FileStatus = 1 // The file was deleted. FileStatus_FILE_STATUS_DELETED FileStatus = 2 // The content or the mode of the file changed. FileStatus_FILE_STATUS_MODIFIED FileStatus = 3 // The file was moved, possibly with changes. Rename detection is done by Git. FileStatus_FILE_STATUS_RENAMED FileStatus = 4 // The file was copied from another file, possibly with changes. FileStatus_FILE_STATUS_COPIED FileStatus = 5 // The type of the entry changed, for example a file became a symbolic link. FileStatus_FILE_STATUS_TYPE_CHANGED FileStatus = 6 ) // Enum value maps for FileStatus. var ( FileStatus_name = map[int32]string{ 0: "FILE_STATUS_UNSPECIFIED", 1: "FILE_STATUS_ADDED", 2: "FILE_STATUS_DELETED", 3: "FILE_STATUS_MODIFIED", 4: "FILE_STATUS_RENAMED", 5: "FILE_STATUS_COPIED", 6: "FILE_STATUS_TYPE_CHANGED", } FileStatus_value = map[string]int32{ "FILE_STATUS_UNSPECIFIED": 0, "FILE_STATUS_ADDED": 1, "FILE_STATUS_DELETED": 2, "FILE_STATUS_MODIFIED": 3, "FILE_STATUS_RENAMED": 4, "FILE_STATUS_COPIED": 5, "FILE_STATUS_TYPE_CHANGED": 6, } ) func (x FileStatus) Enum() *FileStatus { p := new(FileStatus) *p = x return p } func (x FileStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (FileStatus) Descriptor() protoreflect.EnumDescriptor { return file_ermite_git_proto_enumTypes[2].Descriptor() } func (FileStatus) Type() protoreflect.EnumType { return &file_ermite_git_proto_enumTypes[2] } func (x FileStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use FileStatus.Descriptor instead. func (FileStatus) EnumDescriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{2} } // LineKind tells how a line of a hunk relates to the two sides of a diff. type LineKind int32 const ( // Not set. Never returned. LineKind_LINE_KIND_UNSPECIFIED LineKind = 0 // The line is present, unchanged, on both sides. LineKind_LINE_KIND_CONTEXT LineKind = 1 // The line exists only on the new side. LineKind_LINE_KIND_ADDITION LineKind = 2 // The line exists only on the old side. LineKind_LINE_KIND_DELETION LineKind = 3 ) // Enum value maps for LineKind. var ( LineKind_name = map[int32]string{ 0: "LINE_KIND_UNSPECIFIED", 1: "LINE_KIND_CONTEXT", 2: "LINE_KIND_ADDITION", 3: "LINE_KIND_DELETION", } LineKind_value = map[string]int32{ "LINE_KIND_UNSPECIFIED": 0, "LINE_KIND_CONTEXT": 1, "LINE_KIND_ADDITION": 2, "LINE_KIND_DELETION": 3, } ) func (x LineKind) Enum() *LineKind { p := new(LineKind) *p = x return p } func (x LineKind) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (LineKind) Descriptor() protoreflect.EnumDescriptor { return file_ermite_git_proto_enumTypes[3].Descriptor() } func (LineKind) Type() protoreflect.EnumType { return &file_ermite_git_proto_enumTypes[3] } func (x LineKind) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use LineKind.Descriptor instead. func (LineKind) EnumDescriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{3} } // Ref is a branch, a tag or HEAD. type Ref struct { state protoimpl.MessageState `protogen:"open.v1"` // Name is the full ref name, for example "refs/heads/main" or // "refs/tags/v1.0.0". For HEAD it is "HEAD". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // ShortName is the name without its "refs/heads/" or "refs/tags/" prefix. For // HEAD it is the short name of the default branch, or empty if HEAD points // to a branch that does not exist yet. ShortName string `protobuf:"bytes,2,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` // Kind is the kind of the ref. Kind RefKind `protobuf:"varint,3,opt,name=kind,proto3,enum=ermite.RefKind" json:"kind,omitempty"` // Id is the id of the object the ref points to. For an annotated tag it is // the id of the tag object. Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` // CommitId is the id of the commit the ref designates once annotated tags are // followed. It equals id for branches and lightweight tags. It is empty for // a tag that points to something other than a commit. CommitId string `protobuf:"bytes,5,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Ref) Reset() { *x = Ref{} mi := &file_ermite_git_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Ref) String() string { return protoimpl.X.MessageStringOf(x) } func (*Ref) ProtoMessage() {} func (x *Ref) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Ref.ProtoReflect.Descriptor instead. func (*Ref) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{0} } func (x *Ref) GetName() string { if x != nil { return x.Name } return "" } func (x *Ref) GetShortName() string { if x != nil { return x.ShortName } return "" } func (x *Ref) GetKind() RefKind { if x != nil { return x.Kind } return RefKind_REF_KIND_UNSPECIFIED } func (x *Ref) GetId() string { if x != nil { return x.Id } return "" } func (x *Ref) GetCommitId() string { if x != nil { return x.CommitId } return "" } // ListRefsRequest selects the refs to list. type ListRefsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // Kinds restricts the result to these kinds. Empty means all kinds. Kinds []RefKind `protobuf:"varint,2,rep,packed,name=kinds,proto3,enum=ermite.RefKind" json:"kinds,omitempty"` // PageSize is the maximum number of refs to return. 0 means the server // default; values above the server maximum are lowered to it. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // PageToken is the next_page_token of a previous response. Empty for the // first page. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListRefsRequest) Reset() { *x = ListRefsRequest{} mi := &file_ermite_git_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListRefsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListRefsRequest) ProtoMessage() {} func (x *ListRefsRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListRefsRequest.ProtoReflect.Descriptor instead. func (*ListRefsRequest) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{1} } func (x *ListRefsRequest) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *ListRefsRequest) GetKinds() []RefKind { if x != nil { return x.Kinds } return nil } func (x *ListRefsRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } func (x *ListRefsRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } // ListRefsResponse is one page of refs. type ListRefsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Refs are the refs of this page. Refs []*Ref `protobuf:"bytes,1,rep,name=refs,proto3" json:"refs,omitempty"` // NextPageToken is passed as page_token to get the next page. Empty when // there is no next page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListRefsResponse) Reset() { *x = ListRefsResponse{} mi := &file_ermite_git_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListRefsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListRefsResponse) ProtoMessage() {} func (x *ListRefsResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListRefsResponse.ProtoReflect.Descriptor instead. func (*ListRefsResponse) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{2} } func (x *ListRefsResponse) GetRefs() []*Ref { if x != nil { return x.Refs } return nil } func (x *ListRefsResponse) GetNextPageToken() string { if x != nil { return x.NextPageToken } return "" } // TreeEntry is one entry of a directory. type TreeEntry struct { state protoimpl.MessageState `protogen:"open.v1"` // Name is the name of the entry in its directory, without slash. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Path is the path of the entry from the repository root, with "/" // separators and no leading slash. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // Kind is the kind of the entry. Kind EntryKind `protobuf:"varint,3,opt,name=kind,proto3,enum=ermite.EntryKind" json:"kind,omitempty"` // Mode is the Git file mode, for example 0o100644 (33188 in decimal). Mode uint32 `protobuf:"varint,4,opt,name=mode,proto3" json:"mode,omitempty"` // Id is the object id of the blob, tree or submodule commit. Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` // Size is the size in bytes of a file or symbolic link. It is 0 for // directories and submodules. Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` // LastCommit is the latest commit that changed the entry. Set only when the // request asked for it with include_last_commit. LastCommit *Commit `protobuf:"bytes,7,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *TreeEntry) Reset() { *x = TreeEntry{} mi := &file_ermite_git_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TreeEntry) String() string { return protoimpl.X.MessageStringOf(x) } func (*TreeEntry) ProtoMessage() {} func (x *TreeEntry) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TreeEntry.ProtoReflect.Descriptor instead. func (*TreeEntry) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{3} } func (x *TreeEntry) GetName() string { if x != nil { return x.Name } return "" } func (x *TreeEntry) GetPath() string { if x != nil { return x.Path } return "" } func (x *TreeEntry) GetKind() EntryKind { if x != nil { return x.Kind } return EntryKind_ENTRY_KIND_UNSPECIFIED } func (x *TreeEntry) GetMode() uint32 { if x != nil { return x.Mode } return 0 } func (x *TreeEntry) GetId() string { if x != nil { return x.Id } return "" } func (x *TreeEntry) GetSize() int64 { if x != nil { return x.Size } return 0 } func (x *TreeEntry) GetLastCommit() *Commit { if x != nil { return x.LastCommit } return nil } // GetTreeRequest selects a directory. type GetTreeRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // Revision is a branch, a tag or a commit id. Empty means HEAD. Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` // Path is the directory, from the repository root, with "/" separators. // Empty means the root. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // IncludeLastCommit asks for the last commit of every entry in last_commit. // It costs one history walk, so it is off by default and the server may be // slow on large directories. IncludeLastCommit bool `protobuf:"varint,4,opt,name=include_last_commit,json=includeLastCommit,proto3" json:"include_last_commit,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetTreeRequest) Reset() { *x = GetTreeRequest{} mi := &file_ermite_git_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetTreeRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetTreeRequest) ProtoMessage() {} func (x *GetTreeRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetTreeRequest.ProtoReflect.Descriptor instead. func (*GetTreeRequest) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{4} } func (x *GetTreeRequest) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *GetTreeRequest) GetRevision() string { if x != nil { return x.Revision } return "" } func (x *GetTreeRequest) GetPath() string { if x != nil { return x.Path } return "" } func (x *GetTreeRequest) GetIncludeLastCommit() bool { if x != nil { return x.IncludeLastCommit } return false } // GetTreeResponse lists a directory. type GetTreeResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // CommitId is the id of the commit the revision resolved to. CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // TreeId is the object id of the listed directory. TreeId string `protobuf:"bytes,2,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"` // Entries are the entries of the directory: directories first, then the other // entries, each group ordered by name. A response holds at most 5,000 // entries (a server limit that may change; rely on truncated, not on the // number): past that, the first 5,000 in this order are returned and // truncated is set. Paging may be added later, additively. Entries []*TreeEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` // LastCommitsTruncated is true when include_last_commit was set and the // server gave a last_commit to the first entries only (at most 200 of them, // in the order of entries), because each one costs a history lookup. The // other entries have no last_commit although they have one in Git. LastCommitsTruncated bool `protobuf:"varint,4,opt,name=last_commits_truncated,json=lastCommitsTruncated,proto3" json:"last_commits_truncated,omitempty"` // Truncated is true when the directory has more entries than the response // holds; entries are then the first ones in the documented order. Truncated bool `protobuf:"varint,5,opt,name=truncated,proto3" json:"truncated,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetTreeResponse) Reset() { *x = GetTreeResponse{} mi := &file_ermite_git_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetTreeResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetTreeResponse) ProtoMessage() {} func (x *GetTreeResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetTreeResponse.ProtoReflect.Descriptor instead. func (*GetTreeResponse) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{5} } func (x *GetTreeResponse) GetCommitId() string { if x != nil { return x.CommitId } return "" } func (x *GetTreeResponse) GetTreeId() string { if x != nil { return x.TreeId } return "" } func (x *GetTreeResponse) GetEntries() []*TreeEntry { if x != nil { return x.Entries } return nil } func (x *GetTreeResponse) GetLastCommitsTruncated() bool { if x != nil { return x.LastCommitsTruncated } return false } func (x *GetTreeResponse) GetTruncated() bool { if x != nil { return x.Truncated } return false } // ListPathsRequest selects a revision. type ListPathsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // Revision is a branch, a tag or a commit id. Empty means HEAD. Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListPathsRequest) Reset() { *x = ListPathsRequest{} mi := &file_ermite_git_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListPathsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListPathsRequest) ProtoMessage() {} func (x *ListPathsRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListPathsRequest.ProtoReflect.Descriptor instead. func (*ListPathsRequest) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{6} } func (x *ListPathsRequest) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *ListPathsRequest) GetRevision() string { if x != nil { return x.Revision } return "" } // ListPathsResponse lists the file paths of a revision. type ListPathsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // CommitId is the id of the commit the revision resolved to. CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // TreeId is the object id of its root tree. TreeId string `protobuf:"bytes,2,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"` // Paths are the paths of the files and symbolic links, in Git tree order. A // response holds at most 100,000 paths and 8 MiB of path bytes (server limits // that may change; rely on truncated, not on the numbers). Paths []string `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths,omitempty"` // Truncated is true when more paths exist past the first ones returned. Truncated bool `protobuf:"varint,4,opt,name=truncated,proto3" json:"truncated,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListPathsResponse) Reset() { *x = ListPathsResponse{} mi := &file_ermite_git_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListPathsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListPathsResponse) ProtoMessage() {} func (x *ListPathsResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListPathsResponse.ProtoReflect.Descriptor instead. func (*ListPathsResponse) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{7} } func (x *ListPathsResponse) GetCommitId() string { if x != nil { return x.CommitId } return "" } func (x *ListPathsResponse) GetTreeId() string { if x != nil { return x.TreeId } return "" } func (x *ListPathsResponse) GetPaths() []string { if x != nil { return x.Paths } return nil } func (x *ListPathsResponse) GetTruncated() bool { if x != nil { return x.Truncated } return false } // BlobInfo describes a file. type BlobInfo struct { state protoimpl.MessageState `protogen:"open.v1"` // Id is the object id of the blob. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Path is the path of the file from the repository root. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // Size is the size of the whole content in bytes. Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // Binary is true if the content is binary, with Git's rule: a NUL byte in the // first 8,000 bytes. Binary bool `protobuf:"varint,4,opt,name=binary,proto3" json:"binary,omitempty"` // MediaType is the detected media type, for example "text/plain" or // "image/png", from the file name and the first bytes. It is // "application/octet-stream" when unknown. MediaType string `protobuf:"bytes,5,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` // Mode is the Git file mode, for example 0o100644 (33188 in decimal). Mode uint32 `protobuf:"varint,6,opt,name=mode,proto3" json:"mode,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *BlobInfo) Reset() { *x = BlobInfo{} mi := &file_ermite_git_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *BlobInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*BlobInfo) ProtoMessage() {} func (x *BlobInfo) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use BlobInfo.ProtoReflect.Descriptor instead. func (*BlobInfo) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{8} } func (x *BlobInfo) GetId() string { if x != nil { return x.Id } return "" } func (x *BlobInfo) GetPath() string { if x != nil { return x.Path } return "" } func (x *BlobInfo) GetSize() int64 { if x != nil { return x.Size } return 0 } func (x *BlobInfo) GetBinary() bool { if x != nil { return x.Binary } return false } func (x *BlobInfo) GetMediaType() string { if x != nil { return x.MediaType } return "" } func (x *BlobInfo) GetMode() uint32 { if x != nil { return x.Mode } return 0 } // GetBlobRequest selects a file. type GetBlobRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // Revision is a branch, a tag or a commit id. Empty means HEAD. Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` // Path is the file, from the repository root. It is required. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetBlobRequest) Reset() { *x = GetBlobRequest{} mi := &file_ermite_git_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetBlobRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetBlobRequest) ProtoMessage() {} func (x *GetBlobRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetBlobRequest.ProtoReflect.Descriptor instead. func (*GetBlobRequest) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{9} } func (x *GetBlobRequest) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *GetBlobRequest) GetRevision() string { if x != nil { return x.Revision } return "" } func (x *GetBlobRequest) GetPath() string { if x != nil { return x.Path } return "" } // GetBlobResponse is one message of the content stream. type GetBlobResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Info describes the file. Set in the first message of the stream only. Info *BlobInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // Chunk is the next part of the content, at most 64 KiB, in order. The first // message may have an empty chunk. The chunks of a stream add up to // info.size bytes. Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetBlobResponse) Reset() { *x = GetBlobResponse{} mi := &file_ermite_git_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetBlobResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetBlobResponse) ProtoMessage() {} func (x *GetBlobResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetBlobResponse.ProtoReflect.Descriptor instead. func (*GetBlobResponse) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{10} } func (x *GetBlobResponse) GetInfo() *BlobInfo { if x != nil { return x.Info } return nil } func (x *GetBlobResponse) GetChunk() []byte { if x != nil { return x.Chunk } return nil } // ListCommitsRequest selects a page of history. type ListCommitsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // Revision is where the history starts: a branch, a tag or a commit id. // Empty means HEAD. Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` // Path restricts the result to the commits that changed this file or // directory. Empty means the whole history. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // PageSize is the maximum number of commits to return. 0 means the server // default; values above 100 are lowered to 100. PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // PageToken is the next_page_token of a previous response, to continue the // same listing. Empty for the first page. Other fields must be unchanged. PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListCommitsRequest) Reset() { *x = ListCommitsRequest{} mi := &file_ermite_git_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListCommitsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListCommitsRequest) ProtoMessage() {} func (x *ListCommitsRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListCommitsRequest.ProtoReflect.Descriptor instead. func (*ListCommitsRequest) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{11} } func (x *ListCommitsRequest) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *ListCommitsRequest) GetRevision() string { if x != nil { return x.Revision } return "" } func (x *ListCommitsRequest) GetPath() string { if x != nil { return x.Path } return "" } func (x *ListCommitsRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } func (x *ListCommitsRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } // ListCommitsResponse is one page of commits. type ListCommitsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Commits are the commits of this page, newest first. Commits []*Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` // NextPageToken is passed as page_token to get the next page. Empty when // there is no next page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListCommitsResponse) Reset() { *x = ListCommitsResponse{} mi := &file_ermite_git_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListCommitsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListCommitsResponse) ProtoMessage() {} func (x *ListCommitsResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListCommitsResponse.ProtoReflect.Descriptor instead. func (*ListCommitsResponse) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{12} } func (x *ListCommitsResponse) GetCommits() []*Commit { if x != nil { return x.Commits } return nil } func (x *ListCommitsResponse) GetNextPageToken() string { if x != nil { return x.NextPageToken } return "" } // GetCommitRequest selects a commit. type GetCommitRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // Revision is a branch, a tag or a commit id. Empty means HEAD. Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetCommitRequest) Reset() { *x = GetCommitRequest{} mi := &file_ermite_git_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetCommitRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetCommitRequest) ProtoMessage() {} func (x *GetCommitRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetCommitRequest.ProtoReflect.Descriptor instead. func (*GetCommitRequest) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{13} } func (x *GetCommitRequest) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *GetCommitRequest) GetRevision() string { if x != nil { return x.Revision } return "" } // GetCommitResponse holds a commit, its statistics and its diff. type GetCommitResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Commit is the commit metadata. Commit *Commit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` // Stats are the totals over all the changed files, including files that the // diff omits or truncates. Stats *DiffStats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` // Diff is the structured diff against the first parent, or against the empty // tree for a root commit. For a merge commit this is the change relative to // the first parent. Diff *Diff `protobuf:"bytes,3,opt,name=diff,proto3" json:"diff,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetCommitResponse) Reset() { *x = GetCommitResponse{} mi := &file_ermite_git_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetCommitResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetCommitResponse) ProtoMessage() {} func (x *GetCommitResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetCommitResponse.ProtoReflect.Descriptor instead. func (*GetCommitResponse) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{14} } func (x *GetCommitResponse) GetCommit() *Commit { if x != nil { return x.Commit } return nil } func (x *GetCommitResponse) GetStats() *DiffStats { if x != nil { return x.Stats } return nil } func (x *GetCommitResponse) GetDiff() *Diff { if x != nil { return x.Diff } return nil } // DiffStats are the totals of a diff. type DiffStats struct { state protoimpl.MessageState `protogen:"open.v1"` // FilesChanged is the number of changed files. FilesChanged int32 `protobuf:"varint,1,opt,name=files_changed,json=filesChanged,proto3" json:"files_changed,omitempty"` // Additions is the number of added lines. Binary files count for 0. Additions int32 `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"` // Deletions is the number of deleted lines. Binary files count for 0. Deletions int32 `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DiffStats) Reset() { *x = DiffStats{} mi := &file_ermite_git_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DiffStats) String() string { return protoimpl.X.MessageStringOf(x) } func (*DiffStats) ProtoMessage() {} func (x *DiffStats) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DiffStats.ProtoReflect.Descriptor instead. func (*DiffStats) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{15} } func (x *DiffStats) GetFilesChanged() int32 { if x != nil { return x.FilesChanged } return 0 } func (x *DiffStats) GetAdditions() int32 { if x != nil { return x.Additions } return 0 } func (x *DiffStats) GetDeletions() int32 { if x != nil { return x.Deletions } return 0 } // Diff is the structured difference introduced by a commit. // // The server limits its size: at most 300 files, at most 2,000 lines in one // file and at most 20,000 lines in total (hunk lines, context included). These // numbers are server behaviour and may change; clients must rely on the // truncated flags, not on the numbers. type Diff struct { state protoimpl.MessageState `protogen:"open.v1"` // Files are the changed files, ordered by path. Files past the file limit are // omitted. Files []*FileDiff `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // Truncated is true when the diff is incomplete: files were omitted, or at // least one listed file has truncated set. DiffStats still count everything. Truncated bool `protobuf:"varint,2,opt,name=truncated,proto3" json:"truncated,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Diff) Reset() { *x = Diff{} mi := &file_ermite_git_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Diff) String() string { return protoimpl.X.MessageStringOf(x) } func (*Diff) ProtoMessage() {} func (x *Diff) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Diff.ProtoReflect.Descriptor instead. func (*Diff) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{16} } func (x *Diff) GetFiles() []*FileDiff { if x != nil { return x.Files } return nil } func (x *Diff) GetTruncated() bool { if x != nil { return x.Truncated } return false } // FileDiff is the change of one file. type FileDiff struct { state protoimpl.MessageState `protogen:"open.v1"` // OldPath is the path before the commit. Empty for an added file. OldPath string `protobuf:"bytes,1,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"` // NewPath is the path after the commit. Empty for a deleted file. NewPath string `protobuf:"bytes,2,opt,name=new_path,json=newPath,proto3" json:"new_path,omitempty"` // Status tells what happened to the file. Status FileStatus `protobuf:"varint,3,opt,name=status,proto3,enum=ermite.FileStatus" json:"status,omitempty"` // OldMode is the Git file mode before the commit, or 0 for an added file. OldMode uint32 `protobuf:"varint,4,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` // NewMode is the Git file mode after the commit, or 0 for a deleted file. NewMode uint32 `protobuf:"varint,5,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` // OldId is the blob id before the commit. Empty for an added file. OldId string `protobuf:"bytes,6,opt,name=old_id,json=oldId,proto3" json:"old_id,omitempty"` // NewId is the blob id after the commit. Empty for a deleted file. NewId string `protobuf:"bytes,7,opt,name=new_id,json=newId,proto3" json:"new_id,omitempty"` // Binary is true if Git treats the file as binary (numstat reports "-"). A // binary file has no hunks and additions and deletions are 0. Binary bool `protobuf:"varint,8,opt,name=binary,proto3" json:"binary,omitempty"` // Additions is the number of added lines. Additions int32 `protobuf:"varint,9,opt,name=additions,proto3" json:"additions,omitempty"` // Deletions is the number of deleted lines. Deletions int32 `protobuf:"varint,10,opt,name=deletions,proto3" json:"deletions,omitempty"` // Similarity is the percentage (0-100) of unchanged content for a renamed or // copied file, and 0 otherwise. Similarity int32 `protobuf:"varint,11,opt,name=similarity,proto3" json:"similarity,omitempty"` // Truncated is true when the file exceeded a diff limit: hunks is then empty // although the file changed. Additions and deletions remain accurate. Truncated bool `protobuf:"varint,12,opt,name=truncated,proto3" json:"truncated,omitempty"` // Hunks are the changed regions, in file order. Empty for a binary file, a // truncated file, a pure rename and a mode-only change. Hunks []*Hunk `protobuf:"bytes,13,rep,name=hunks,proto3" json:"hunks,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FileDiff) Reset() { *x = FileDiff{} mi := &file_ermite_git_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FileDiff) String() string { return protoimpl.X.MessageStringOf(x) } func (*FileDiff) ProtoMessage() {} func (x *FileDiff) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use FileDiff.ProtoReflect.Descriptor instead. func (*FileDiff) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{17} } func (x *FileDiff) GetOldPath() string { if x != nil { return x.OldPath } return "" } func (x *FileDiff) GetNewPath() string { if x != nil { return x.NewPath } return "" } func (x *FileDiff) GetStatus() FileStatus { if x != nil { return x.Status } return FileStatus_FILE_STATUS_UNSPECIFIED } func (x *FileDiff) GetOldMode() uint32 { if x != nil { return x.OldMode } return 0 } func (x *FileDiff) GetNewMode() uint32 { if x != nil { return x.NewMode } return 0 } func (x *FileDiff) GetOldId() string { if x != nil { return x.OldId } return "" } func (x *FileDiff) GetNewId() string { if x != nil { return x.NewId } return "" } func (x *FileDiff) GetBinary() bool { if x != nil { return x.Binary } return false } func (x *FileDiff) GetAdditions() int32 { if x != nil { return x.Additions } return 0 } func (x *FileDiff) GetDeletions() int32 { if x != nil { return x.Deletions } return 0 } func (x *FileDiff) GetSimilarity() int32 { if x != nil { return x.Similarity } return 0 } func (x *FileDiff) GetTruncated() bool { if x != nil { return x.Truncated } return false } func (x *FileDiff) GetHunks() []*Hunk { if x != nil { return x.Hunks } return nil } // Hunk is a contiguous changed region with its context. type Hunk struct { state protoimpl.MessageState `protogen:"open.v1"` // OldStart is the 1-based first line of the region in the old file. 0 when // old_lines is 0 and the file was added. OldStart int32 `protobuf:"varint,1,opt,name=old_start,json=oldStart,proto3" json:"old_start,omitempty"` // OldLines is the number of old-side lines in the hunk. OldLines int32 `protobuf:"varint,2,opt,name=old_lines,json=oldLines,proto3" json:"old_lines,omitempty"` // NewStart is the 1-based first line of the region in the new file. 0 when // new_lines is 0 and the file was deleted. NewStart int32 `protobuf:"varint,3,opt,name=new_start,json=newStart,proto3" json:"new_start,omitempty"` // NewLines is the number of new-side lines in the hunk. NewLines int32 `protobuf:"varint,4,opt,name=new_lines,json=newLines,proto3" json:"new_lines,omitempty"` // Header is the text after the second "@@" of the hunk header, usually the // enclosing function. It may be empty. Header string `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` // Lines are the lines of the hunk, in order. Lines []*Line `protobuf:"bytes,6,rep,name=lines,proto3" json:"lines,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Hunk) Reset() { *x = Hunk{} mi := &file_ermite_git_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Hunk) String() string { return protoimpl.X.MessageStringOf(x) } func (*Hunk) ProtoMessage() {} func (x *Hunk) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Hunk.ProtoReflect.Descriptor instead. func (*Hunk) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{18} } func (x *Hunk) GetOldStart() int32 { if x != nil { return x.OldStart } return 0 } func (x *Hunk) GetOldLines() int32 { if x != nil { return x.OldLines } return 0 } func (x *Hunk) GetNewStart() int32 { if x != nil { return x.NewStart } return 0 } func (x *Hunk) GetNewLines() int32 { if x != nil { return x.NewLines } return 0 } func (x *Hunk) GetHeader() string { if x != nil { return x.Header } return "" } func (x *Hunk) GetLines() []*Line { if x != nil { return x.Lines } return nil } // Line is one line of a hunk. type Line struct { state protoimpl.MessageState `protogen:"open.v1"` // Kind tells which side the line belongs to. Kind LineKind `protobuf:"varint,1,opt,name=kind,proto3,enum=ermite.LineKind" json:"kind,omitempty"` // OldNumber is the 1-based line number on the old side. 0 for an addition. OldNumber int32 `protobuf:"varint,2,opt,name=old_number,json=oldNumber,proto3" json:"old_number,omitempty"` // NewNumber is the 1-based line number on the new side. 0 for a deletion. NewNumber int32 `protobuf:"varint,3,opt,name=new_number,json=newNumber,proto3" json:"new_number,omitempty"` // Text is the content without the line terminator. Bytes that are not valid // UTF-8 are replaced by the replacement character. Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` // NoNewlineAtEof is true when this is the last line of its side and the file // does not end with a line break there. NoNewlineAtEof bool `protobuf:"varint,5,opt,name=no_newline_at_eof,json=noNewlineAtEof,proto3" json:"no_newline_at_eof,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Line) Reset() { *x = Line{} mi := &file_ermite_git_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Line) String() string { return protoimpl.X.MessageStringOf(x) } func (*Line) ProtoMessage() {} func (x *Line) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Line.ProtoReflect.Descriptor instead. func (*Line) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{19} } func (x *Line) GetKind() LineKind { if x != nil { return x.Kind } return LineKind_LINE_KIND_UNSPECIFIED } func (x *Line) GetOldNumber() int32 { if x != nil { return x.OldNumber } return 0 } func (x *Line) GetNewNumber() int32 { if x != nil { return x.NewNumber } return 0 } func (x *Line) GetText() string { if x != nil { return x.Text } return "" } func (x *Line) GetNoNewlineAtEof() bool { if x != nil { return x.NoNewlineAtEof } return false } // ResolveRevisionRequest names a revision. type ResolveRevisionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // Revision is a branch, a tag or a commit id. Empty means HEAD. Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ResolveRevisionRequest) Reset() { *x = ResolveRevisionRequest{} mi := &file_ermite_git_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ResolveRevisionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ResolveRevisionRequest) ProtoMessage() {} func (x *ResolveRevisionRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ResolveRevisionRequest.ProtoReflect.Descriptor instead. func (*ResolveRevisionRequest) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{20} } func (x *ResolveRevisionRequest) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *ResolveRevisionRequest) GetRevision() string { if x != nil { return x.Revision } return "" } // ResolveRevisionResponse holds the resolved commit. type ResolveRevisionResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // CommitId is the full id of the commit the revision designates, after // following annotated tags. CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // Ref is the full name of the ref the revision matched, for example // "refs/heads/main". Empty when the revision was a commit id or for HEAD // when it is resolved by default. Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ResolveRevisionResponse) Reset() { *x = ResolveRevisionResponse{} mi := &file_ermite_git_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ResolveRevisionResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ResolveRevisionResponse) ProtoMessage() {} func (x *ResolveRevisionResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_git_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ResolveRevisionResponse.ProtoReflect.Descriptor instead. func (*ResolveRevisionResponse) Descriptor() ([]byte, []int) { return file_ermite_git_proto_rawDescGZIP(), []int{21} } func (x *ResolveRevisionResponse) GetCommitId() string { if x != nil { return x.CommitId } return "" } func (x *ResolveRevisionResponse) GetRef() string { if x != nil { return x.Ref } return "" } var File_ermite_git_proto protoreflect.FileDescriptor const file_ermite_git_proto_rawDesc = "" + "\n" + "\x10ermite/git.proto\x12\x06ermite\x1a\x12ermite/types.proto\"\x8a\x01\n" + "\x03Ref\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1d\n" + "\n" + "short_name\x18\x02 \x01(\tR\tshortName\x12#\n" + "\x04kind\x18\x03 \x01(\x0e2\x0f.ermite.RefKindR\x04kind\x12\x0e\n" + "\x02id\x18\x04 \x01(\tR\x02id\x12\x1b\n" + "\tcommit_id\x18\x05 \x01(\tR\bcommitId\"\x88\x01\n" + "\x0fListRefsRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12%\n" + "\x05kinds\x18\x02 \x03(\x0e2\x0f.ermite.RefKindR\x05kinds\x12\x1b\n" + "\tpage_size\x18\x03 \x01(\x05R\bpageSize\x12\x1d\n" + "\n" + "page_token\x18\x04 \x01(\tR\tpageToken\"[\n" + "\x10ListRefsResponse\x12\x1f\n" + "\x04refs\x18\x01 \x03(\v2\v.ermite.RefR\x04refs\x12&\n" + "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xc3\x01\n" + "\tTreeEntry\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" + "\x04path\x18\x02 \x01(\tR\x04path\x12%\n" + "\x04kind\x18\x03 \x01(\x0e2\x11.ermite.EntryKindR\x04kind\x12\x12\n" + "\x04mode\x18\x04 \x01(\rR\x04mode\x12\x0e\n" + "\x02id\x18\x05 \x01(\tR\x02id\x12\x12\n" + "\x04size\x18\x06 \x01(\x03R\x04size\x12/\n" + "\vlast_commit\x18\a \x01(\v2\x0e.ermite.CommitR\n" + "lastCommit\"\x84\x01\n" + "\x0eGetTreeRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1a\n" + "\brevision\x18\x02 \x01(\tR\brevision\x12\x12\n" + "\x04path\x18\x03 \x01(\tR\x04path\x12.\n" + "\x13include_last_commit\x18\x04 \x01(\bR\x11includeLastCommit\"\xc8\x01\n" + "\x0fGetTreeResponse\x12\x1b\n" + "\tcommit_id\x18\x01 \x01(\tR\bcommitId\x12\x17\n" + "\atree_id\x18\x02 \x01(\tR\x06treeId\x12+\n" + "\aentries\x18\x03 \x03(\v2\x11.ermite.TreeEntryR\aentries\x124\n" + "\x16last_commits_truncated\x18\x04 \x01(\bR\x14lastCommitsTruncated\x12\x1c\n" + "\ttruncated\x18\x05 \x01(\bR\ttruncated\"B\n" + "\x10ListPathsRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1a\n" + "\brevision\x18\x02 \x01(\tR\brevision\"}\n" + "\x11ListPathsResponse\x12\x1b\n" + "\tcommit_id\x18\x01 \x01(\tR\bcommitId\x12\x17\n" + "\atree_id\x18\x02 \x01(\tR\x06treeId\x12\x14\n" + "\x05paths\x18\x03 \x03(\tR\x05paths\x12\x1c\n" + "\ttruncated\x18\x04 \x01(\bR\ttruncated\"\x8d\x01\n" + "\bBlobInfo\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + "\x04path\x18\x02 \x01(\tR\x04path\x12\x12\n" + "\x04size\x18\x03 \x01(\x03R\x04size\x12\x16\n" + "\x06binary\x18\x04 \x01(\bR\x06binary\x12\x1d\n" + "\n" + "media_type\x18\x05 \x01(\tR\tmediaType\x12\x12\n" + "\x04mode\x18\x06 \x01(\rR\x04mode\"T\n" + "\x0eGetBlobRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1a\n" + "\brevision\x18\x02 \x01(\tR\brevision\x12\x12\n" + "\x04path\x18\x03 \x01(\tR\x04path\"M\n" + "\x0fGetBlobResponse\x12$\n" + "\x04info\x18\x01 \x01(\v2\x10.ermite.BlobInfoR\x04info\x12\x14\n" + "\x05chunk\x18\x02 \x01(\fR\x05chunk\"\x94\x01\n" + "\x12ListCommitsRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1a\n" + "\brevision\x18\x02 \x01(\tR\brevision\x12\x12\n" + "\x04path\x18\x03 \x01(\tR\x04path\x12\x1b\n" + "\tpage_size\x18\x04 \x01(\x05R\bpageSize\x12\x1d\n" + "\n" + "page_token\x18\x05 \x01(\tR\tpageToken\"g\n" + "\x13ListCommitsResponse\x12(\n" + "\acommits\x18\x01 \x03(\v2\x0e.ermite.CommitR\acommits\x12&\n" + "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"B\n" + "\x10GetCommitRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1a\n" + "\brevision\x18\x02 \x01(\tR\brevision\"\x86\x01\n" + "\x11GetCommitResponse\x12&\n" + "\x06commit\x18\x01 \x01(\v2\x0e.ermite.CommitR\x06commit\x12'\n" + "\x05stats\x18\x02 \x01(\v2\x11.ermite.DiffStatsR\x05stats\x12 \n" + "\x04diff\x18\x03 \x01(\v2\f.ermite.DiffR\x04diff\"l\n" + "\tDiffStats\x12#\n" + "\rfiles_changed\x18\x01 \x01(\x05R\ffilesChanged\x12\x1c\n" + "\tadditions\x18\x02 \x01(\x05R\tadditions\x12\x1c\n" + "\tdeletions\x18\x03 \x01(\x05R\tdeletions\"L\n" + "\x04Diff\x12&\n" + "\x05files\x18\x01 \x03(\v2\x10.ermite.FileDiffR\x05files\x12\x1c\n" + "\ttruncated\x18\x02 \x01(\bR\ttruncated\"\x86\x03\n" + "\bFileDiff\x12\x19\n" + "\bold_path\x18\x01 \x01(\tR\aoldPath\x12\x19\n" + "\bnew_path\x18\x02 \x01(\tR\anewPath\x12*\n" + "\x06status\x18\x03 \x01(\x0e2\x12.ermite.FileStatusR\x06status\x12\x19\n" + "\bold_mode\x18\x04 \x01(\rR\aoldMode\x12\x19\n" + "\bnew_mode\x18\x05 \x01(\rR\anewMode\x12\x15\n" + "\x06old_id\x18\x06 \x01(\tR\x05oldId\x12\x15\n" + "\x06new_id\x18\a \x01(\tR\x05newId\x12\x16\n" + "\x06binary\x18\b \x01(\bR\x06binary\x12\x1c\n" + "\tadditions\x18\t \x01(\x05R\tadditions\x12\x1c\n" + "\tdeletions\x18\n" + " \x01(\x05R\tdeletions\x12\x1e\n" + "\n" + "similarity\x18\v \x01(\x05R\n" + "similarity\x12\x1c\n" + "\ttruncated\x18\f \x01(\bR\ttruncated\x12\"\n" + "\x05hunks\x18\r \x03(\v2\f.ermite.HunkR\x05hunks\"\xb6\x01\n" + "\x04Hunk\x12\x1b\n" + "\told_start\x18\x01 \x01(\x05R\boldStart\x12\x1b\n" + "\told_lines\x18\x02 \x01(\x05R\boldLines\x12\x1b\n" + "\tnew_start\x18\x03 \x01(\x05R\bnewStart\x12\x1b\n" + "\tnew_lines\x18\x04 \x01(\x05R\bnewLines\x12\x16\n" + "\x06header\x18\x05 \x01(\tR\x06header\x12\"\n" + "\x05lines\x18\x06 \x03(\v2\f.ermite.LineR\x05lines\"\xa9\x01\n" + "\x04Line\x12$\n" + "\x04kind\x18\x01 \x01(\x0e2\x10.ermite.LineKindR\x04kind\x12\x1d\n" + "\n" + "old_number\x18\x02 \x01(\x05R\toldNumber\x12\x1d\n" + "\n" + "new_number\x18\x03 \x01(\x05R\tnewNumber\x12\x12\n" + "\x04text\x18\x04 \x01(\tR\x04text\x12)\n" + "\x11no_newline_at_eof\x18\x05 \x01(\bR\x0enoNewlineAtEof\"H\n" + "\x16ResolveRevisionRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1a\n" + "\brevision\x18\x02 \x01(\tR\brevision\"H\n" + "\x17ResolveRevisionResponse\x12\x1b\n" + "\tcommit_id\x18\x01 \x01(\tR\bcommitId\x12\x10\n" + "\x03ref\x18\x02 \x01(\tR\x03ref*]\n" + "\aRefKind\x12\x18\n" + "\x14REF_KIND_UNSPECIFIED\x10\x00\x12\x13\n" + "\x0fREF_KIND_BRANCH\x10\x01\x12\x10\n" + "\fREF_KIND_TAG\x10\x02\x12\x11\n" + "\rREF_KIND_HEAD\x10\x03*\xa3\x01\n" + "\tEntryKind\x12\x1a\n" + "\x16ENTRY_KIND_UNSPECIFIED\x10\x00\x12\x13\n" + "\x0fENTRY_KIND_FILE\x10\x01\x12\x19\n" + "\x15ENTRY_KIND_EXECUTABLE\x10\x02\x12\x18\n" + "\x14ENTRY_KIND_DIRECTORY\x10\x03\x12\x16\n" + "\x12ENTRY_KIND_SYMLINK\x10\x04\x12\x18\n" + "\x14ENTRY_KIND_SUBMODULE\x10\x05*\xc2\x01\n" + "\n" + "FileStatus\x12\x1b\n" + "\x17FILE_STATUS_UNSPECIFIED\x10\x00\x12\x15\n" + "\x11FILE_STATUS_ADDED\x10\x01\x12\x17\n" + "\x13FILE_STATUS_DELETED\x10\x02\x12\x18\n" + "\x14FILE_STATUS_MODIFIED\x10\x03\x12\x17\n" + "\x13FILE_STATUS_RENAMED\x10\x04\x12\x16\n" + "\x12FILE_STATUS_COPIED\x10\x05\x12\x1c\n" + "\x18FILE_STATUS_TYPE_CHANGED\x10\x06*l\n" + "\bLineKind\x12\x19\n" + "\x15LINE_KIND_UNSPECIFIED\x10\x00\x12\x15\n" + "\x11LINE_KIND_CONTEXT\x10\x01\x12\x16\n" + "\x12LINE_KIND_ADDITION\x10\x02\x12\x16\n" + "\x12LINE_KIND_DELETION\x10\x032\xe5\x03\n" + "\n" + "GitService\x12=\n" + "\bListRefs\x12\x17.ermite.ListRefsRequest\x1a\x18.ermite.ListRefsResponse\x12:\n" + "\aGetTree\x12\x16.ermite.GetTreeRequest\x1a\x17.ermite.GetTreeResponse\x12@\n" + "\tListPaths\x12\x18.ermite.ListPathsRequest\x1a\x19.ermite.ListPathsResponse\x12<\n" + "\aGetBlob\x12\x16.ermite.GetBlobRequest\x1a\x17.ermite.GetBlobResponse0\x01\x12F\n" + "\vListCommits\x12\x1a.ermite.ListCommitsRequest\x1a\x1b.ermite.ListCommitsResponse\x12@\n" + "\tGetCommit\x12\x18.ermite.GetCommitRequest\x1a\x19.ermite.GetCommitResponse\x12R\n" + "\x0fResolveRevision\x12\x1e.ermite.ResolveRevisionRequest\x1a\x1f.ermite.ResolveRevisionResponseBo\n" + "\n" + "com.ermiteB\bGitProtoP\x01Z\x1fbnema.dev/ermite-api/gen/ermite\xa2\x02\x03EXX\xaa\x02\x06Ermite\xca\x02\x06Ermite\xe2\x02\x12Ermite\\GPBMetadata\xea\x02\x06Ermiteb\x06proto3" var ( file_ermite_git_proto_rawDescOnce sync.Once file_ermite_git_proto_rawDescData []byte ) func file_ermite_git_proto_rawDescGZIP() []byte { file_ermite_git_proto_rawDescOnce.Do(func() { file_ermite_git_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_git_proto_rawDesc), len(file_ermite_git_proto_rawDesc))) }) return file_ermite_git_proto_rawDescData } var file_ermite_git_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_ermite_git_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_ermite_git_proto_goTypes = []any{ (RefKind)(0), // 0: ermite.RefKind (EntryKind)(0), // 1: ermite.EntryKind (FileStatus)(0), // 2: ermite.FileStatus (LineKind)(0), // 3: ermite.LineKind (*Ref)(nil), // 4: ermite.Ref (*ListRefsRequest)(nil), // 5: ermite.ListRefsRequest (*ListRefsResponse)(nil), // 6: ermite.ListRefsResponse (*TreeEntry)(nil), // 7: ermite.TreeEntry (*GetTreeRequest)(nil), // 8: ermite.GetTreeRequest (*GetTreeResponse)(nil), // 9: ermite.GetTreeResponse (*ListPathsRequest)(nil), // 10: ermite.ListPathsRequest (*ListPathsResponse)(nil), // 11: ermite.ListPathsResponse (*BlobInfo)(nil), // 12: ermite.BlobInfo (*GetBlobRequest)(nil), // 13: ermite.GetBlobRequest (*GetBlobResponse)(nil), // 14: ermite.GetBlobResponse (*ListCommitsRequest)(nil), // 15: ermite.ListCommitsRequest (*ListCommitsResponse)(nil), // 16: ermite.ListCommitsResponse (*GetCommitRequest)(nil), // 17: ermite.GetCommitRequest (*GetCommitResponse)(nil), // 18: ermite.GetCommitResponse (*DiffStats)(nil), // 19: ermite.DiffStats (*Diff)(nil), // 20: ermite.Diff (*FileDiff)(nil), // 21: ermite.FileDiff (*Hunk)(nil), // 22: ermite.Hunk (*Line)(nil), // 23: ermite.Line (*ResolveRevisionRequest)(nil), // 24: ermite.ResolveRevisionRequest (*ResolveRevisionResponse)(nil), // 25: ermite.ResolveRevisionResponse (*Commit)(nil), // 26: ermite.Commit } var file_ermite_git_proto_depIdxs = []int32{ 0, // 0: ermite.Ref.kind:type_name -> ermite.RefKind 0, // 1: ermite.ListRefsRequest.kinds:type_name -> ermite.RefKind 4, // 2: ermite.ListRefsResponse.refs:type_name -> ermite.Ref 1, // 3: ermite.TreeEntry.kind:type_name -> ermite.EntryKind 26, // 4: ermite.TreeEntry.last_commit:type_name -> ermite.Commit 7, // 5: ermite.GetTreeResponse.entries:type_name -> ermite.TreeEntry 12, // 6: ermite.GetBlobResponse.info:type_name -> ermite.BlobInfo 26, // 7: ermite.ListCommitsResponse.commits:type_name -> ermite.Commit 26, // 8: ermite.GetCommitResponse.commit:type_name -> ermite.Commit 19, // 9: ermite.GetCommitResponse.stats:type_name -> ermite.DiffStats 20, // 10: ermite.GetCommitResponse.diff:type_name -> ermite.Diff 21, // 11: ermite.Diff.files:type_name -> ermite.FileDiff 2, // 12: ermite.FileDiff.status:type_name -> ermite.FileStatus 22, // 13: ermite.FileDiff.hunks:type_name -> ermite.Hunk 23, // 14: ermite.Hunk.lines:type_name -> ermite.Line 3, // 15: ermite.Line.kind:type_name -> ermite.LineKind 5, // 16: ermite.GitService.ListRefs:input_type -> ermite.ListRefsRequest 8, // 17: ermite.GitService.GetTree:input_type -> ermite.GetTreeRequest 10, // 18: ermite.GitService.ListPaths:input_type -> ermite.ListPathsRequest 13, // 19: ermite.GitService.GetBlob:input_type -> ermite.GetBlobRequest 15, // 20: ermite.GitService.ListCommits:input_type -> ermite.ListCommitsRequest 17, // 21: ermite.GitService.GetCommit:input_type -> ermite.GetCommitRequest 24, // 22: ermite.GitService.ResolveRevision:input_type -> ermite.ResolveRevisionRequest 6, // 23: ermite.GitService.ListRefs:output_type -> ermite.ListRefsResponse 9, // 24: ermite.GitService.GetTree:output_type -> ermite.GetTreeResponse 11, // 25: ermite.GitService.ListPaths:output_type -> ermite.ListPathsResponse 14, // 26: ermite.GitService.GetBlob:output_type -> ermite.GetBlobResponse 16, // 27: ermite.GitService.ListCommits:output_type -> ermite.ListCommitsResponse 18, // 28: ermite.GitService.GetCommit:output_type -> ermite.GetCommitResponse 25, // 29: ermite.GitService.ResolveRevision:output_type -> ermite.ResolveRevisionResponse 23, // [23:30] is the sub-list for method output_type 16, // [16:23] is the sub-list for method input_type 16, // [16:16] is the sub-list for extension type_name 16, // [16:16] is the sub-list for extension extendee 0, // [0:16] is the sub-list for field type_name } func init() { file_ermite_git_proto_init() } func file_ermite_git_proto_init() { if File_ermite_git_proto != nil { return } file_ermite_types_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_git_proto_rawDesc), len(file_ermite_git_proto_rawDesc)), NumEnums: 4, NumMessages: 22, NumExtensions: 0, NumServices: 1, }, GoTypes: file_ermite_git_proto_goTypes, DependencyIndexes: file_ermite_git_proto_depIdxs, EnumInfos: file_ermite_git_proto_enumTypes, MessageInfos: file_ermite_git_proto_msgTypes, }.Build() File_ermite_git_proto = out.File file_ermite_git_proto_goTypes = nil file_ermite_git_proto_depIdxs = nil }