diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-05-09 15:38:01 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-05-09 15:38:01 +0300 |
commit | 65a7e40ee58b808a55e98744a3671e70e537c116 (patch) | |
tree | 8dcd20ad8660404c04553483bf1efc3f7451d0c6 | |
parent | 2e0b25c8a9d91d894deca78b5f5694cd39d95361 (diff) | |
parent | 9bb6fb420b75ad7657a30751ba7df7c9bf1e0060 (diff) |
Merge branch 'pks-protolint-comments' into 'master'
proto: Enforce that definitions must have comments
See merge request gitlab-org/gitaly!4517
77 files changed, 2865 insertions, 445 deletions
diff --git a/proto/.protolint.yaml b/proto/.protolint.yaml index 43f94a8a8..a2d94785d 100644 --- a/proto/.protolint.yaml +++ b/proto/.protolint.yaml @@ -14,12 +14,6 @@ lint: # opt-in to enable these linting warnings, but right now we just want to # get protolint included in our workflow with minimal required changes. - FILE_HAS_COMMENT - - RPCS_HAVE_COMMENT - - FIELDS_HAVE_COMMENT - - SERVICES_HAVE_COMMENT - - MESSAGES_HAVE_COMMENT - - ENUMS_HAVE_COMMENT - - ENUM_FIELDS_HAVE_COMMENT # Many of our fields and messages have prepositions in them, and # furthermore this rule doesn't feel all that sensible after all. We thus # disable it. diff --git a/proto/blob.proto b/proto/blob.proto index 528615f73..c091f46ac 100644 --- a/proto/blob.proto +++ b/proto/blob.proto @@ -7,7 +7,10 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// BlobService is a service which provides RPCs to retrieve Git blobs from a +// specific repository. service BlobService { + // GetBlob returns the contents of a blob object referenced by its object // ID. We use a stream to return a chunked arbitrarily large binary // response @@ -16,6 +19,8 @@ service BlobService { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc GetBlobs(GetBlobsRequest) returns (stream GetBlobsResponse) { option (op_type) = { op: ACCESSOR @@ -70,8 +75,9 @@ service BlobService { } +// This comment is left unintentionally blank. message GetBlobRequest { - + // This comment is left unintentionally blank. Repository repository = 1[(target_repository)=true]; // Object ID (SHA1) of the blob we want to get string oid = 2; @@ -79,6 +85,7 @@ message GetBlobRequest { int64 limit = 3; } +// This comment is left unintentionally blank. message GetBlobResponse { // Blob size; present only in first response message int64 size = 1; @@ -88,13 +95,17 @@ message GetBlobResponse { string oid = 3; } +// This comment is left unintentionally blank. message GetBlobsRequest { - + // This comment is left unintentionally blank. message RevisionPath { + // This comment is left unintentionally blank. string revision = 1; + // This comment is left unintentionally blank. bytes path = 2; } + // This comment is left unintentionally blank. Repository repository = 1[(target_repository)=true]; // Revision/Path pairs of the blobs we want to get. repeated RevisionPath revision_paths = 2; @@ -102,6 +113,7 @@ message GetBlobsRequest { int64 limit = 3; } +// This comment is left unintentionally blank. message GetBlobsResponse { // Blob size; present only on the first message per blob int64 size = 1; @@ -109,10 +121,15 @@ message GetBlobsResponse { bytes data = 2; // Object ID of the current blob. Only present on the first message per blob. Empty if no blob was found. string oid = 3; + // This comment is left unintentionally blank. bool is_submodule = 4; + // This comment is left unintentionally blank. int32 mode = 5; + // This comment is left unintentionally blank. string revision = 6; + // This comment is left unintentionally blank. bytes path = 7; + // This comment is left unintentionally blank. ObjectType type = 8; } @@ -212,9 +229,13 @@ message LFSPointer { string oid = 3; } +// This comment is left unintentionally blank. message NewBlobObject { + // This comment is left unintentionally blank. int64 size = 1; + // This comment is left unintentionally blank. string oid = 2; + // This comment is left unintentionally blank. bytes path = 3; } diff --git a/proto/cleanup.proto b/proto/cleanup.proto index 07e8ad72f..3a3b63314 100644 --- a/proto/cleanup.proto +++ b/proto/cleanup.proto @@ -7,14 +7,19 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// CleanupService provides RPCs to clean up a repository's contents. service CleanupService { + + // This comment is left unintentionally blank. rpc ApplyBfgObjectMapStream(stream ApplyBfgObjectMapStreamRequest) returns (stream ApplyBfgObjectMapStreamResponse) { option (op_type) = { op: MUTATOR }; } + } +// This comment is left unintentionally blank. message ApplyBfgObjectMapStreamRequest { // Only available on the first message Repository repository = 1 [(target_repository)=true]; @@ -25,14 +30,19 @@ message ApplyBfgObjectMapStreamRequest { bytes object_map = 2; } +// This comment is left unintentionally blank. message ApplyBfgObjectMapStreamResponse { // We send back each parsed entry in the request's object map so the client // can take action message Entry { + // This comment is left unintentionally blank. ObjectType type = 1; + // This comment is left unintentionally blank. string old_oid = 2; + // This comment is left unintentionally blank. string new_oid = 3; } + // This comment is left unintentionally blank. repeated Entry entries = 1; } diff --git a/proto/commit.proto b/proto/commit.proto index 5c5de630b..cbc14fa6c 100644 --- a/proto/commit.proto +++ b/proto/commit.proto @@ -8,6 +8,8 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// CommitService is a service which provides RPCs that interact with Git +// commits. service CommitService { // ListCommits lists all commits reachable via a set of references by doing a @@ -27,104 +29,140 @@ service CommitService { }; } + // This comment is left unintentionally blank. rpc CommitIsAncestor(CommitIsAncestorRequest) returns (CommitIsAncestorResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc TreeEntry(TreeEntryRequest) returns (stream TreeEntryResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc CountCommits(CountCommitsRequest) returns (CountCommitsResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc CountDivergingCommits(CountDivergingCommitsRequest) returns (CountDivergingCommitsResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc GetTreeEntries(GetTreeEntriesRequest) returns (stream GetTreeEntriesResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc ListFiles(ListFilesRequest) returns (stream ListFilesResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc FindCommit(FindCommitRequest) returns (FindCommitResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc CommitStats(CommitStatsRequest) returns (CommitStatsResponse) { option (op_type) = { op: ACCESSOR }; } + // Use a stream to paginate the result set rpc FindAllCommits(FindAllCommitsRequest) returns (stream FindAllCommitsResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc FindCommits(FindCommitsRequest) returns (stream FindCommitsResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc CommitLanguages(CommitLanguagesRequest) returns (CommitLanguagesResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc RawBlame(RawBlameRequest) returns (stream RawBlameResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc LastCommitForPath(LastCommitForPathRequest) returns (LastCommitForPathResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc ListLastCommitsForTree(ListLastCommitsForTreeRequest) returns (stream ListLastCommitsForTreeResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc CommitsByMessage(CommitsByMessageRequest) returns (stream CommitsByMessageResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc ListCommitsByOid(ListCommitsByOidRequest) returns (stream ListCommitsByOidResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc ListCommitsByRefName(ListCommitsByRefNameRequest) returns (stream ListCommitsByRefNameResponse) { option (op_type) = { op: ACCESSOR }; } + // This comment is left unintentionally blank. rpc FilterShasWithSignatures(stream FilterShasWithSignaturesRequest) returns (stream FilterShasWithSignaturesResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc GetCommitSignatures(GetCommitSignaturesRequest) returns (stream GetCommitSignaturesResponse) { option (op_type) = { op: ACCESSOR }; } + // This comment is left unintentionally blank. rpc GetCommitMessages(GetCommitMessagesRequest) returns (stream GetCommitMessagesResponse) { option (op_type) = { op: ACCESSOR @@ -140,6 +178,7 @@ service CommitService { op: ACCESSOR }; } + } // ListCommitsRequest is a request for the ListCommits RPC. @@ -227,29 +266,43 @@ message ListAllCommitsResponse { repeated GitCommit commits = 1; } +// This comment is left unintentionally blank. message CommitStatsRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes revision = 2; } +// This comment is left unintentionally blank. message CommitStatsResponse { // OID is the commit. Empty means not found string oid = 1; + // This comment is left unintentionally blank. int32 additions = 2; + // This comment is left unintentionally blank. int32 deletions = 3; } +// This comment is left unintentionally blank. message CommitIsAncestorRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string ancestor_id = 2; + // This comment is left unintentionally blank. string child_id = 3; } +// This comment is left unintentionally blank. message CommitIsAncestorResponse { + // This comment is left unintentionally blank. bool value = 1; } +// This comment is left unintentionally blank. message TreeEntryRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // commit ID or refname bytes revision = 2; @@ -263,17 +316,25 @@ message TreeEntryRequest { int64 max_size = 5; } +// This comment is left unintentionally blank. message TreeEntryResponse { // TODO: Replace this enum with ObjectType in shared.proto enum ObjectType { + // This comment is left unintentionally blank. COMMIT = 0; + // This comment is left unintentionally blank. BLOB = 1; + // This comment is left unintentionally blank. TREE = 2; + // This comment is left unintentionally blank. TAG = 3; } + + // This comment is left unintentionally blank. ObjectType type = 1; // SHA1 object ID string oid = 2; + // This comment is left unintentionally blank. int64 size = 3; // file mode int32 mode = 4; @@ -281,51 +342,76 @@ message TreeEntryResponse { bytes data = 5; } +// This comment is left unintentionally blank. message CountCommitsRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes revision = 2; + // This comment is left unintentionally blank. google.protobuf.Timestamp after = 3; + // This comment is left unintentionally blank. google.protobuf.Timestamp before = 4; + // This comment is left unintentionally blank. bytes path = 5; + // This comment is left unintentionally blank. int32 max_count = 6; // all and revision are mutually exclusive bool all = 7; + // This comment is left unintentionally blank. bool first_parent = 8; + // This comment is left unintentionally blank. GlobalOptions global_options = 9; } +// This comment is left unintentionally blank. message CountCommitsResponse { + // This comment is left unintentionally blank. int32 count = 1; } +// This comment is left unintentionally blank. message CountDivergingCommitsRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes from = 2; + // This comment is left unintentionally blank. bytes to = 3; reserved 4; reserved 5; reserved 6; + // This comment is left unintentionally blank. int32 max_count = 7; } +// This comment is left unintentionally blank. message CountDivergingCommitsResponse { + // This comment is left unintentionally blank. int32 left_count = 1; + // This comment is left unintentionally blank. int32 right_count = 2; } +// This comment is left unintentionally blank. message TreeEntry { // TODO: Replace this enum with ObjectType in shared.proto enum EntryType { + // This comment is left unintentionally blank. BLOB = 0; + // This comment is left unintentionally blank. TREE = 1; + // This comment is left unintentionally blank. COMMIT = 3; } + // OID of the object this tree entry points to string oid = 1; // OID of the tree attached to commit_oid string root_oid = 2; // Path relative to repository root bytes path = 3; + // This comment is left unintentionally blank. EntryType type = 4; // File mode e.g. 0644 int32 mode = 5; @@ -335,31 +421,44 @@ message TreeEntry { bytes flat_path = 7; } +// This comment is left unintentionally blank. message GetTreeEntriesRequest { - Repository repository = 1 [(target_repository)=true]; - bytes revision = 2; - bytes path = 3; - bool recursive = 4; - + // This comment is left unintentionally blank. enum SortBy { + // This comment is left unintentionally blank. DEFAULT = 0; // Preserve order of git ls-tree + // This comment is left unintentionally blank. TREES_FIRST = 1; // trees, blobs, submodules } + // This comment is left unintentionally blank. + Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. + bytes revision = 2; + // This comment is left unintentionally blank. + bytes path = 3; + // This comment is left unintentionally blank. + bool recursive = 4; + // This comment is left unintentionally blank. SortBy sort = 5; // The page token is the last commit OID that was sent. It's expected to be the // full object ID to guard against ambigious OIDs. PaginationParameter pagination_params = 6; } +// This comment is left unintentionally blank. message GetTreeEntriesResponse { + // This comment is left unintentionally blank. repeated TreeEntry entries = 1; - + // This comment is left unintentionally blank. PaginationCursor pagination_cursor = 2; } +// This comment is left unintentionally blank. message ListFilesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes revision = 2; } @@ -369,210 +468,330 @@ message ListFilesResponse { repeated bytes paths = 1; } +// This comment is left unintentionally blank. message FindCommitRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes revision = 2; + // This comment is left unintentionally blank. bool trailers = 3; } +// This comment is left unintentionally blank. message FindCommitResponse { // commit is nil when the commit was not found GitCommit commit = 1; } +// This comment is left unintentionally blank. message ListCommitsByOidRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. repeated string oid = 2; // protolint:disable:this REPEATED_FIELD_NAMES_PLURALIZED } +// This comment is left unintentionally blank. message ListCommitsByOidResponse { + // This comment is left unintentionally blank. repeated GitCommit commits = 1; } +// This comment is left unintentionally blank. message ListCommitsByRefNameRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. repeated bytes ref_names = 2; } +// This comment is left unintentionally blank. message ListCommitsByRefNameResponse { reserved 1; + // This comment is left unintentionally blank. message CommitForRef { + // This comment is left unintentionally blank. GitCommit commit = 1; + // This comment is left unintentionally blank. bytes ref_name = 2; } + // This comment is left unintentionally blank. repeated CommitForRef commit_refs = 2; } +// This comment is left unintentionally blank. message FindAllCommitsRequest { - Repository repository = 1 [(target_repository)=true]; - // When nil, return all commits reachable by any branch in the repo - bytes revision = 2; - int32 max_count = 3; - int32 skip = 4; + // This comment is left unintentionally blank. enum Order { + // This comment is left unintentionally blank. NONE = 0; + // This comment is left unintentionally blank. TOPO = 1; + // This comment is left unintentionally blank. DATE = 2; } + + // This comment is left unintentionally blank. + Repository repository = 1 [(target_repository)=true]; + // When nil, return all commits reachable by any branch in the repo + bytes revision = 2; + // This comment is left unintentionally blank. + int32 max_count = 3; + // This comment is left unintentionally blank. + int32 skip = 4; + // This comment is left unintentionally blank. Order order = 5; } // A single 'page' of the result set message FindAllCommitsResponse { + // This comment is left unintentionally blank. repeated GitCommit commits = 1; } +// This comment is left unintentionally blank. message FindCommitsRequest { + // This comment is left unintentionally blank. + enum Order { + // This comment is left unintentionally blank. + NONE = 0; + // This comment is left unintentionally blank. + TOPO = 1; + } + + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes revision = 2; + // This comment is left unintentionally blank. int32 limit = 3; + // This comment is left unintentionally blank. int32 offset = 4; + // This comment is left unintentionally blank. repeated bytes paths = 5; + // This comment is left unintentionally blank. bool follow = 6; + // This comment is left unintentionally blank. bool skip_merges = 7; + // This comment is left unintentionally blank. bool disable_walk = 8; + // This comment is left unintentionally blank. google.protobuf.Timestamp after = 9; + // This comment is left unintentionally blank. google.protobuf.Timestamp before = 10; // all and revision are mutually exclusive bool all = 11; + // This comment is left unintentionally blank. bool first_parent = 12; + // This comment is left unintentionally blank. bytes author = 13; - enum Order { - NONE = 0; - TOPO = 1; - } + // This comment is left unintentionally blank. Order order = 14; + // This comment is left unintentionally blank. GlobalOptions global_options = 15; + // This comment is left unintentionally blank. bool trailers = 16; } // A single 'page' of the result set message FindCommitsResponse { + // This comment is left unintentionally blank. repeated GitCommit commits = 1; } +// This comment is left unintentionally blank. message CommitLanguagesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes revision = 2; } +// This comment is left unintentionally blank. message CommitLanguagesResponse { + // This comment is left unintentionally blank. message Language { + // This comment is left unintentionally blank. string name = 1; + // This comment is left unintentionally blank. float share = 2; + // This comment is left unintentionally blank. string color = 3; + // This comment is left unintentionally blank. uint32 file_count = 4; + // This comment is left unintentionally blank. uint64 bytes = 5; } + + // This comment is left unintentionally blank. repeated Language languages = 1; } +// This comment is left unintentionally blank. message RawBlameRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes revision = 2; + // This comment is left unintentionally blank. bytes path = 3; // Comma-separated range of line numbers to perform the blame on: "1,1000". // Optional - if no range is provided, the whole file will be blamed. bytes range = 4; } +// This comment is left unintentionally blank. message RawBlameResponse { + // This comment is left unintentionally blank. bytes data = 1; } +// This comment is left unintentionally blank. message LastCommitForPathRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes revision = 2; + // This comment is left unintentionally blank. + // This comment is left unintentionally blank. + // This comment is left unintentionally blank. bytes path = 3; + // This comment is left unintentionally blank. bool literal_pathspec = 4; // Deprecate after Rails stops using this + // This comment is left unintentionally blank. GlobalOptions global_options = 5; } +// This comment is left unintentionally blank. message LastCommitForPathResponse { // commit is nil when the commit was not found GitCommit commit = 1; } +// This comment is left unintentionally blank. message ListLastCommitsForTreeRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string revision = 2; + // This comment is left unintentionally blank. bytes path = 3; + // This comment is left unintentionally blank. int32 limit = 4; + // This comment is left unintentionally blank. int32 offset = 5; + // This comment is left unintentionally blank. bool literal_pathspec = 6 [deprecated = true]; + // This comment is left unintentionally blank. GlobalOptions global_options = 7; } +// This comment is left unintentionally blank. message ListLastCommitsForTreeResponse { + // This comment is left unintentionally blank. message CommitForTree { reserved 1; + // This comment is left unintentionally blank. GitCommit commit = 2; reserved 3; + // This comment is left unintentionally blank. bytes path_bytes = 4; } + + // This comment is left unintentionally blank. repeated CommitForTree commits = 1; } +// This comment is left unintentionally blank. message CommitsByMessageRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes revision = 2; + // This comment is left unintentionally blank. int32 offset = 3; + // This comment is left unintentionally blank. int32 limit = 4; + // This comment is left unintentionally blank. bytes path = 5; + // This comment is left unintentionally blank. string query = 6; + // This comment is left unintentionally blank. GlobalOptions global_options = 7; } // One 'page' of the paginated response of CommitsByMessage message CommitsByMessageResponse { + // This comment is left unintentionally blank. repeated GitCommit commits = 1; } +// This comment is left unintentionally blank. message FilterShasWithSignaturesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. repeated bytes shas = 2; } +// This comment is left unintentionally blank. message FilterShasWithSignaturesResponse { + // This comment is left unintentionally blank. repeated bytes shas = 1; } +// This comment is left unintentionally blank. message ExtractCommitSignatureRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string commit_id = 2; } // Either of the 'signature' and 'signed_text' fields may be present. It // is up to the caller to stitch them together. message ExtractCommitSignatureResponse { + // This comment is left unintentionally blank. bytes signature = 1; + // This comment is left unintentionally blank. bytes signed_text = 2; } +// This comment is left unintentionally blank. message GetCommitSignaturesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. repeated string commit_ids = 2; } +// This comment is left unintentionally blank. message GetCommitSignaturesResponse { // Only present for a new commit signature data. string commit_id = 1; // See ExtractCommitSignatureResponse above for how these fields should be handled. bytes signature = 2; + // This comment is left unintentionally blank. bytes signed_text = 3; } +// This comment is left unintentionally blank. message GetCommitMessagesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. repeated string commit_ids = 2; } +// This comment is left unintentionally blank. message GetCommitMessagesResponse { // Only present for a new commit message string commit_id = 1; + // This comment is left unintentionally blank. bytes message = 2; } @@ -588,11 +807,16 @@ message CheckObjectsExistRequest { repeated bytes revisions = 2; } +// This comment is left unintentionally blank. message CheckObjectsExistResponse { + // This comment is left unintentionally blank. message RevisionExistence { + // This comment is left unintentionally blank. bytes name = 1; + // This comment is left unintentionally blank. bool exists = 2; }; + // This comment is left unintentionally blank. repeated RevisionExistence revisions = 1; } diff --git a/proto/conflicts.proto b/proto/conflicts.proto index bad601963..6af03bc8d 100644 --- a/proto/conflicts.proto +++ b/proto/conflicts.proto @@ -8,7 +8,12 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// ConflictsService is a service which provides RPCs to interact with conflicts +// resulting from a merge. service ConflictsService { + + // ListConflictFiles returns all conflicting files which result from a merge + // of two specified commit objects. rpc ListConflictFiles(ListConflictFilesRequest) returns (stream ListConflictFilesResponse) { option (op_type) = { op: ACCESSOR @@ -23,11 +28,16 @@ service ConflictsService { op: MUTATOR }; } + } +// This comment is left unintentionally blank. message ListConflictFilesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string our_commit_oid = 2; + // This comment is left unintentionally blank. string their_commit_oid = 3; // AllowTreeConflicts will not cause the request to fail in case there are // tree conflicts. If set to true, then responses may contain conflict files @@ -35,23 +45,34 @@ message ListConflictFilesRequest { bool allow_tree_conflicts = 4; } +// This comment is left unintentionally blank. message ConflictFileHeader { reserved 1; + // This comment is left unintentionally blank. string commit_oid = 2; + // This comment is left unintentionally blank. bytes their_path = 3; + // This comment is left unintentionally blank. bytes our_path = 4; + // This comment is left unintentionally blank. int32 our_mode = 5; + // This comment is left unintentionally blank. bytes ancestor_path = 6; } +// This comment is left unintentionally blank. message ConflictFile { oneof conflict_file_payload { + // This comment is left unintentionally blank. ConflictFileHeader header = 1; + // This comment is left unintentionally blank. bytes content = 2; } } +// This comment is left unintentionally blank. message ListConflictFilesResponse { + // This comment is left unintentionally blank. repeated ConflictFile files = 1; } diff --git a/proto/diff.proto b/proto/diff.proto index 536cc675f..d8e5b31c1 100644 --- a/proto/diff.proto +++ b/proto/diff.proto @@ -7,43 +7,57 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// DiffService is a service which provides RPCs to inspect differences +// introduced between a set of commits. service DiffService { + // Returns stream of CommitDiffResponse with patches chunked over messages rpc CommitDiff(CommitDiffRequest) returns (stream CommitDiffResponse) { option (op_type) = { op: ACCESSOR }; } + // Return a stream so we can divide the response in chunks of deltas rpc CommitDelta(CommitDeltaRequest) returns (stream CommitDeltaResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc RawDiff(RawDiffRequest) returns (stream RawDiffResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc RawPatch(RawPatchRequest) returns (stream RawPatchResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc DiffStats(DiffStatsRequest) returns (stream DiffStatsResponse) { option (op_type) = { op: ACCESSOR }; } + // Return a list of files changed along with the status of each file rpc FindChangedPaths(FindChangedPathsRequest) returns (stream FindChangedPathsResponse) { option (op_type) = { op: ACCESSOR }; } + } +// This comment is left unintentionally blank. message CommitDiffRequest { + // This comment is left unintentionally blank. enum DiffMode { // DEFAULT is the standard diff mode and results in a linewise diff for textfiles. DEFAULT = 0; @@ -51,17 +65,26 @@ message CommitDiffRequest { WORDDIFF = 1; } + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string left_commit_id = 2; + // This comment is left unintentionally blank. string right_commit_id = 3; + // This comment is left unintentionally blank. bool ignore_whitespace_change = 4; + // This comment is left unintentionally blank. repeated bytes paths = 5; + // This comment is left unintentionally blank. bool collapse_diffs = 6; + // This comment is left unintentionally blank. bool enforce_limits = 7; // These limits are only enforced when enforce_limits == true. int32 max_files = 8; + // This comment is left unintentionally blank. int32 max_lines = 9; + // This comment is left unintentionally blank. int32 max_bytes = 10; // Limitation of a single diff patch, // patches surpassing this limit are pruned by default. @@ -70,7 +93,9 @@ message CommitDiffRequest { // These limits are only enforced if collapse_diffs == true. int32 safe_max_files = 11; + // This comment is left unintentionally blank. int32 safe_max_lines = 12; + // This comment is left unintentionally blank. int32 safe_max_bytes = 13; // DiffMode is the mode used for generating the diff. Please refer to the enum declaration for supported modes. @@ -81,15 +106,23 @@ message CommitDiffRequest { message CommitDiffResponse { reserved 8; + // This comment is left unintentionally blank. bytes from_path = 1; + // This comment is left unintentionally blank. bytes to_path = 2; // Blob ID as returned via `git diff --full-index` string from_id = 3; + // This comment is left unintentionally blank. string to_id = 4; + // This comment is left unintentionally blank. int32 old_mode = 5; + // This comment is left unintentionally blank. int32 new_mode = 6; + // This comment is left unintentionally blank. bool binary = 7; + // This comment is left unintentionally blank. bytes raw_patch_data = 9; + // This comment is left unintentionally blank. bool end_of_patch = 10; // Indicates the diff file at which we overflow according to the limitations sent, // in which case only this attribute will be set. @@ -102,61 +135,97 @@ message CommitDiffResponse { bool too_large = 13; } +// This comment is left unintentionally blank. message CommitDeltaRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string left_commit_id = 2; + // This comment is left unintentionally blank. string right_commit_id = 3; + // This comment is left unintentionally blank. repeated bytes paths = 4; } +// This comment is left unintentionally blank. message CommitDelta { + // This comment is left unintentionally blank. bytes from_path = 1; + // This comment is left unintentionally blank. bytes to_path = 2; // Blob ID as returned via `git diff --full-index` string from_id = 3; + // This comment is left unintentionally blank. string to_id = 4; + // This comment is left unintentionally blank. int32 old_mode = 5; + // This comment is left unintentionally blank. int32 new_mode = 6; } +// This comment is left unintentionally blank. message CommitDeltaResponse { + // This comment is left unintentionally blank. repeated CommitDelta deltas = 1; } +// This comment is left unintentionally blank. message RawDiffRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string left_commit_id = 2; + // This comment is left unintentionally blank. string right_commit_id = 3; } +// This comment is left unintentionally blank. message RawDiffResponse { + // This comment is left unintentionally blank. bytes data = 1; } +// This comment is left unintentionally blank. message RawPatchRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string left_commit_id = 2; + // This comment is left unintentionally blank. string right_commit_id = 3; } +// This comment is left unintentionally blank. message RawPatchResponse { + // This comment is left unintentionally blank. bytes data = 1; } +// This comment is left unintentionally blank. message DiffStatsRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string left_commit_id = 2; + // This comment is left unintentionally blank. string right_commit_id = 3; } +// This comment is left unintentionally blank. message DiffStats { + // This comment is left unintentionally blank. bytes path = 1; + // This comment is left unintentionally blank. int32 additions = 2; + // This comment is left unintentionally blank. int32 deletions = 3; + // This comment is left unintentionally blank. bytes old_path = 4; } +// This comment is left unintentionally blank. message DiffStatsResponse { + // This comment is left unintentionally blank. repeated DiffStats stats = 1; } @@ -164,25 +233,36 @@ message DiffStatsResponse { // to its parent. Merge commits will show files which are different to all of // its parents. message FindChangedPathsRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. repeated string commits = 2; } // Returns a list of files that have been changed in the commits given message FindChangedPathsResponse { + // This comment is left unintentionally blank. repeated ChangedPaths paths = 1; } // Includes the path of the file, and the status of the change message ChangedPaths { + // This comment is left unintentionally blank. enum Status { + // This comment is left unintentionally blank. ADDED = 0; + // This comment is left unintentionally blank. MODIFIED = 1; + // This comment is left unintentionally blank. DELETED = 2; + // This comment is left unintentionally blank. TYPE_CHANGE = 3; + // This comment is left unintentionally blank. COPIED = 4; } + // This comment is left unintentionally blank. bytes path = 1; + // This comment is left unintentionally blank. Status status = 2; } diff --git a/proto/go/gitalypb/blob.pb.go b/proto/go/gitalypb/blob.pb.go index 5e1e0b406..c4a157148 100644 --- a/proto/go/gitalypb/blob.pb.go +++ b/proto/go/gitalypb/blob.pb.go @@ -20,11 +20,13 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type GetBlobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Object ID (SHA1) of the blob we want to get Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"` @@ -85,6 +87,7 @@ func (x *GetBlobRequest) GetLimit() int64 { return 0 } +// This comment is left unintentionally blank. type GetBlobResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -151,11 +154,13 @@ func (x *GetBlobResponse) GetOid() string { return "" } +// This comment is left unintentionally blank. type GetBlobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Revision/Path pairs of the blobs we want to get. RevisionPaths []*GetBlobsRequest_RevisionPath `protobuf:"bytes,2,rep,name=revision_paths,json=revisionPaths,proto3" json:"revision_paths,omitempty"` @@ -216,6 +221,7 @@ func (x *GetBlobsRequest) GetLimit() int64 { return 0 } +// This comment is left unintentionally blank. type GetBlobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -226,12 +232,17 @@ type GetBlobsResponse struct { // Chunk of blob data, could span over multiple messages. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // Object ID of the current blob. Only present on the first message per blob. Empty if no blob was found. - Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` - IsSubmodule bool `protobuf:"varint,4,opt,name=is_submodule,json=isSubmodule,proto3" json:"is_submodule,omitempty"` - Mode int32 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty"` - Revision string `protobuf:"bytes,6,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"` - Type ObjectType `protobuf:"varint,8,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"` + Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` + // This comment is left unintentionally blank. + IsSubmodule bool `protobuf:"varint,4,opt,name=is_submodule,json=isSubmodule,proto3" json:"is_submodule,omitempty"` + // This comment is left unintentionally blank. + Mode int32 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty"` + // This comment is left unintentionally blank. + Revision string `protobuf:"bytes,6,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + Type ObjectType `protobuf:"varint,8,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"` } func (x *GetBlobsResponse) Reset() { @@ -660,13 +671,17 @@ func (x *LFSPointer) GetOid() string { return "" } +// This comment is left unintentionally blank. type NewBlobObject struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` - Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"` + // This comment is left unintentionally blank. + Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` + // This comment is left unintentionally blank. + Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"` + // This comment is left unintentionally blank. Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` } @@ -1058,13 +1073,16 @@ func (x *ListAllLFSPointersResponse) GetLfsPointers() []*LFSPointer { return nil } +// This comment is left unintentionally blank. type GetBlobsRequest_RevisionPath struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Revision string `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` } func (x *GetBlobsRequest_RevisionPath) Reset() { diff --git a/proto/go/gitalypb/blob_grpc.pb.go b/proto/go/gitalypb/blob_grpc.pb.go index ffc48c044..02dbd20b2 100644 --- a/proto/go/gitalypb/blob_grpc.pb.go +++ b/proto/go/gitalypb/blob_grpc.pb.go @@ -22,6 +22,7 @@ type BlobServiceClient interface { // ID. We use a stream to return a chunked arbitrarily large binary // response GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) + // This comment is left unintentionally blank. GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) // ListBlobs will list all blobs reachable from a given set of revisions by // doing a graph walk. It is not valid to pass revisions which do not resolve @@ -286,6 +287,7 @@ type BlobServiceServer interface { // ID. We use a stream to return a chunked arbitrarily large binary // response GetBlob(*GetBlobRequest, BlobService_GetBlobServer) error + // This comment is left unintentionally blank. GetBlobs(*GetBlobsRequest, BlobService_GetBlobsServer) error // ListBlobs will list all blobs reachable from a given set of revisions by // doing a graph walk. It is not valid to pass revisions which do not resolve diff --git a/proto/go/gitalypb/cleanup.pb.go b/proto/go/gitalypb/cleanup.pb.go index 84c75b06b..abbef370f 100644 --- a/proto/go/gitalypb/cleanup.pb.go +++ b/proto/go/gitalypb/cleanup.pb.go @@ -20,6 +20,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type ApplyBfgObjectMapStreamRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -79,11 +80,13 @@ func (x *ApplyBfgObjectMapStreamRequest) GetObjectMap() []byte { return nil } +// This comment is left unintentionally blank. type ApplyBfgObjectMapStreamResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Entries []*ApplyBfgObjectMapStreamResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` } @@ -133,9 +136,12 @@ type ApplyBfgObjectMapStreamResponse_Entry struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Type ObjectType `protobuf:"varint,1,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"` - OldOid string `protobuf:"bytes,2,opt,name=old_oid,json=oldOid,proto3" json:"old_oid,omitempty"` - NewOid string `protobuf:"bytes,3,opt,name=new_oid,json=newOid,proto3" json:"new_oid,omitempty"` + // This comment is left unintentionally blank. + Type ObjectType `protobuf:"varint,1,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"` + // This comment is left unintentionally blank. + OldOid string `protobuf:"bytes,2,opt,name=old_oid,json=oldOid,proto3" json:"old_oid,omitempty"` + // This comment is left unintentionally blank. + NewOid string `protobuf:"bytes,3,opt,name=new_oid,json=newOid,proto3" json:"new_oid,omitempty"` } func (x *ApplyBfgObjectMapStreamResponse_Entry) Reset() { diff --git a/proto/go/gitalypb/cleanup_grpc.pb.go b/proto/go/gitalypb/cleanup_grpc.pb.go index f49c5560c..dce610b19 100644 --- a/proto/go/gitalypb/cleanup_grpc.pb.go +++ b/proto/go/gitalypb/cleanup_grpc.pb.go @@ -18,6 +18,7 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type CleanupServiceClient interface { + // This comment is left unintentionally blank. ApplyBfgObjectMapStream(ctx context.Context, opts ...grpc.CallOption) (CleanupService_ApplyBfgObjectMapStreamClient, error) } @@ -64,6 +65,7 @@ func (x *cleanupServiceApplyBfgObjectMapStreamClient) Recv() (*ApplyBfgObjectMap // All implementations must embed UnimplementedCleanupServiceServer // for forward compatibility type CleanupServiceServer interface { + // This comment is left unintentionally blank. ApplyBfgObjectMapStream(CleanupService_ApplyBfgObjectMapStreamServer) error mustEmbedUnimplementedCleanupServiceServer() } diff --git a/proto/go/gitalypb/commit.pb.go b/proto/go/gitalypb/commit.pb.go index d5b5689a4..a2c9d0a20 100644 --- a/proto/go/gitalypb/commit.pb.go +++ b/proto/go/gitalypb/commit.pb.go @@ -82,10 +82,14 @@ func (ListCommitsRequest_Order) EnumDescriptor() ([]byte, []int) { type TreeEntryResponse_ObjectType int32 const ( + // This comment is left unintentionally blank. TreeEntryResponse_COMMIT TreeEntryResponse_ObjectType = 0 - TreeEntryResponse_BLOB TreeEntryResponse_ObjectType = 1 - TreeEntryResponse_TREE TreeEntryResponse_ObjectType = 2 - TreeEntryResponse_TAG TreeEntryResponse_ObjectType = 3 + // This comment is left unintentionally blank. + TreeEntryResponse_BLOB TreeEntryResponse_ObjectType = 1 + // This comment is left unintentionally blank. + TreeEntryResponse_TREE TreeEntryResponse_ObjectType = 2 + // This comment is left unintentionally blank. + TreeEntryResponse_TAG TreeEntryResponse_ObjectType = 3 ) // Enum value maps for TreeEntryResponse_ObjectType. @@ -135,8 +139,11 @@ func (TreeEntryResponse_ObjectType) EnumDescriptor() ([]byte, []int) { type TreeEntry_EntryType int32 const ( - TreeEntry_BLOB TreeEntry_EntryType = 0 - TreeEntry_TREE TreeEntry_EntryType = 1 + // This comment is left unintentionally blank. + TreeEntry_BLOB TreeEntry_EntryType = 0 + // This comment is left unintentionally blank. + TreeEntry_TREE TreeEntry_EntryType = 1 + // This comment is left unintentionally blank. TreeEntry_COMMIT TreeEntry_EntryType = 3 ) @@ -181,10 +188,13 @@ func (TreeEntry_EntryType) EnumDescriptor() ([]byte, []int) { return file_commit_proto_rawDescGZIP(), []int{14, 0} } +// This comment is left unintentionally blank. type GetTreeEntriesRequest_SortBy int32 const ( - GetTreeEntriesRequest_DEFAULT GetTreeEntriesRequest_SortBy = 0 // Preserve order of git ls-tree + // This comment is left unintentionally blank. + GetTreeEntriesRequest_DEFAULT GetTreeEntriesRequest_SortBy = 0 // Preserve order of git ls-tree + // This comment is left unintentionally blank. GetTreeEntriesRequest_TREES_FIRST GetTreeEntriesRequest_SortBy = 1 // trees, blobs, submodules ) @@ -227,11 +237,15 @@ func (GetTreeEntriesRequest_SortBy) EnumDescriptor() ([]byte, []int) { return file_commit_proto_rawDescGZIP(), []int{15, 0} } +// This comment is left unintentionally blank. type FindAllCommitsRequest_Order int32 const ( + // This comment is left unintentionally blank. FindAllCommitsRequest_NONE FindAllCommitsRequest_Order = 0 + // This comment is left unintentionally blank. FindAllCommitsRequest_TOPO FindAllCommitsRequest_Order = 1 + // This comment is left unintentionally blank. FindAllCommitsRequest_DATE FindAllCommitsRequest_Order = 2 ) @@ -276,10 +290,13 @@ func (FindAllCommitsRequest_Order) EnumDescriptor() ([]byte, []int) { return file_commit_proto_rawDescGZIP(), []int{25, 0} } +// This comment is left unintentionally blank. type FindCommitsRequest_Order int32 const ( + // This comment is left unintentionally blank. FindCommitsRequest_NONE FindCommitsRequest_Order = 0 + // This comment is left unintentionally blank. FindCommitsRequest_TOPO FindCommitsRequest_Order = 1 ) @@ -631,13 +648,16 @@ func (x *ListAllCommitsResponse) GetCommits() []*GitCommit { return nil } +// This comment is left unintentionally blank. type CommitStatsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` } func (x *CommitStatsRequest) Reset() { @@ -686,15 +706,18 @@ func (x *CommitStatsRequest) GetRevision() []byte { return nil } +// This comment is left unintentionally blank. type CommitStatsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // OID is the commit. Empty means not found - Oid string `protobuf:"bytes,1,opt,name=oid,proto3" json:"oid,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"` + Oid string `protobuf:"bytes,1,opt,name=oid,proto3" json:"oid,omitempty"` + // This comment is left unintentionally blank. + Additions int32 `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"` + // This comment is left unintentionally blank. + Deletions int32 `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"` } func (x *CommitStatsResponse) Reset() { @@ -750,14 +773,18 @@ func (x *CommitStatsResponse) GetDeletions() int32 { return 0 } +// This comment is left unintentionally blank. type CommitIsAncestorRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - AncestorId string `protobuf:"bytes,2,opt,name=ancestor_id,json=ancestorId,proto3" json:"ancestor_id,omitempty"` - ChildId string `protobuf:"bytes,3,opt,name=child_id,json=childId,proto3" json:"child_id,omitempty"` + // This comment is left unintentionally blank. + AncestorId string `protobuf:"bytes,2,opt,name=ancestor_id,json=ancestorId,proto3" json:"ancestor_id,omitempty"` + // This comment is left unintentionally blank. + ChildId string `protobuf:"bytes,3,opt,name=child_id,json=childId,proto3" json:"child_id,omitempty"` } func (x *CommitIsAncestorRequest) Reset() { @@ -813,11 +840,13 @@ func (x *CommitIsAncestorRequest) GetChildId() string { return "" } +// This comment is left unintentionally blank. type CommitIsAncestorResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } @@ -860,11 +889,13 @@ func (x *CommitIsAncestorResponse) GetValue() bool { return false } +// This comment is left unintentionally blank. type TreeEntryRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // commit ID or refname Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` @@ -945,15 +976,18 @@ func (x *TreeEntryRequest) GetMaxSize() int64 { return 0 } +// This comment is left unintentionally blank. type TreeEntryResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Type TreeEntryResponse_ObjectType `protobuf:"varint,1,opt,name=type,proto3,enum=gitaly.TreeEntryResponse_ObjectType" json:"type,omitempty"` // SHA1 object ID - Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"` - Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` + Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"` + // This comment is left unintentionally blank. + Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // file mode Mode int32 `protobuf:"varint,4,opt,name=mode,proto3" json:"mode,omitempty"` // raw object contents @@ -1027,20 +1061,29 @@ func (x *TreeEntryResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type CountCommitsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - After *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=after,proto3" json:"after,omitempty"` - Before *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=before,proto3" json:"before,omitempty"` - Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` - MaxCount int32 `protobuf:"varint,6,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + After *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=after,proto3" json:"after,omitempty"` + // This comment is left unintentionally blank. + Before *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=before,proto3" json:"before,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + MaxCount int32 `protobuf:"varint,6,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` // all and revision are mutually exclusive - All bool `protobuf:"varint,7,opt,name=all,proto3" json:"all,omitempty"` - FirstParent bool `protobuf:"varint,8,opt,name=first_parent,json=firstParent,proto3" json:"first_parent,omitempty"` + All bool `protobuf:"varint,7,opt,name=all,proto3" json:"all,omitempty"` + // This comment is left unintentionally blank. + FirstParent bool `protobuf:"varint,8,opt,name=first_parent,json=firstParent,proto3" json:"first_parent,omitempty"` + // This comment is left unintentionally blank. GlobalOptions *GlobalOptions `protobuf:"bytes,9,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` } @@ -1139,11 +1182,13 @@ func (x *CountCommitsRequest) GetGlobalOptions() *GlobalOptions { return nil } +// This comment is left unintentionally blank. type CountCommitsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` } @@ -1186,15 +1231,20 @@ func (x *CountCommitsResponse) GetCount() int32 { return 0 } +// This comment is left unintentionally blank. type CountDivergingCommitsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - To []byte `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` - MaxCount int32 `protobuf:"varint,7,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` + // This comment is left unintentionally blank. + From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // This comment is left unintentionally blank. + To []byte `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // This comment is left unintentionally blank. + MaxCount int32 `protobuf:"varint,7,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` } func (x *CountDivergingCommitsRequest) Reset() { @@ -1257,12 +1307,15 @@ func (x *CountDivergingCommitsRequest) GetMaxCount() int32 { return 0 } +// This comment is left unintentionally blank. type CountDivergingCommitsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - LeftCount int32 `protobuf:"varint,1,opt,name=left_count,json=leftCount,proto3" json:"left_count,omitempty"` + // This comment is left unintentionally blank. + LeftCount int32 `protobuf:"varint,1,opt,name=left_count,json=leftCount,proto3" json:"left_count,omitempty"` + // This comment is left unintentionally blank. RightCount int32 `protobuf:"varint,2,opt,name=right_count,json=rightCount,proto3" json:"right_count,omitempty"` } @@ -1312,6 +1365,7 @@ func (x *CountDivergingCommitsResponse) GetRightCount() int32 { return 0 } +// This comment is left unintentionally blank. type TreeEntry struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1322,7 +1376,8 @@ type TreeEntry struct { // OID of the tree attached to commit_oid RootOid string `protobuf:"bytes,2,opt,name=root_oid,json=rootOid,proto3" json:"root_oid,omitempty"` // Path relative to repository root - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. Type TreeEntry_EntryType `protobuf:"varint,4,opt,name=type,proto3,enum=gitaly.TreeEntry_EntryType" json:"type,omitempty"` // File mode e.g. 0644 Mode int32 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty"` @@ -1413,16 +1468,22 @@ func (x *TreeEntry) GetFlatPath() []byte { return nil } +// This comment is left unintentionally blank. type GetTreeEntriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - Recursive bool `protobuf:"varint,4,opt,name=recursive,proto3" json:"recursive,omitempty"` - Sort GetTreeEntriesRequest_SortBy `protobuf:"varint,5,opt,name=sort,proto3,enum=gitaly.GetTreeEntriesRequest_SortBy" json:"sort,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + Recursive bool `protobuf:"varint,4,opt,name=recursive,proto3" json:"recursive,omitempty"` + // This comment is left unintentionally blank. + Sort GetTreeEntriesRequest_SortBy `protobuf:"varint,5,opt,name=sort,proto3,enum=gitaly.GetTreeEntriesRequest_SortBy" json:"sort,omitempty"` // The page token is the last commit OID that was sent. It's expected to be the // full object ID to guard against ambigious OIDs. PaginationParams *PaginationParameter `protobuf:"bytes,6,opt,name=pagination_params,json=paginationParams,proto3" json:"pagination_params,omitempty"` @@ -1502,12 +1563,15 @@ func (x *GetTreeEntriesRequest) GetPaginationParams() *PaginationParameter { return nil } +// This comment is left unintentionally blank. type GetTreeEntriesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Entries []*TreeEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + // This comment is left unintentionally blank. + Entries []*TreeEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + // This comment is left unintentionally blank. PaginationCursor *PaginationCursor `protobuf:"bytes,2,opt,name=pagination_cursor,json=paginationCursor,proto3" json:"pagination_cursor,omitempty"` } @@ -1557,13 +1621,16 @@ func (x *GetTreeEntriesResponse) GetPaginationCursor() *PaginationCursor { return nil } +// This comment is left unintentionally blank. type ListFilesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` } func (x *ListFilesRequest) Reset() { @@ -1661,14 +1728,18 @@ func (x *ListFilesResponse) GetPaths() [][]byte { return nil } +// This comment is left unintentionally blank. type FindCommitRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Trailers bool `protobuf:"varint,3,opt,name=trailers,proto3" json:"trailers,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Trailers bool `protobuf:"varint,3,opt,name=trailers,proto3" json:"trailers,omitempty"` } func (x *FindCommitRequest) Reset() { @@ -1724,6 +1795,7 @@ func (x *FindCommitRequest) GetTrailers() bool { return false } +// This comment is left unintentionally blank. type FindCommitResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1772,13 +1844,16 @@ func (x *FindCommitResponse) GetCommit() *GitCommit { return nil } +// This comment is left unintentionally blank. type ListCommitsByOidRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Oid []string `protobuf:"bytes,2,rep,name=oid,proto3" json:"oid,omitempty"` // protolint:disable:this REPEATED_FIELD_NAMES_PLURALIZED + // This comment is left unintentionally blank. + Oid []string `protobuf:"bytes,2,rep,name=oid,proto3" json:"oid,omitempty"` // protolint:disable:this REPEATED_FIELD_NAMES_PLURALIZED } func (x *ListCommitsByOidRequest) Reset() { @@ -1827,11 +1902,13 @@ func (x *ListCommitsByOidRequest) GetOid() []string { return nil } +// This comment is left unintentionally blank. type ListCommitsByOidResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } @@ -1874,13 +1951,16 @@ func (x *ListCommitsByOidResponse) GetCommits() []*GitCommit { return nil } +// This comment is left unintentionally blank. type ListCommitsByRefNameRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - RefNames [][]byte `protobuf:"bytes,2,rep,name=ref_names,json=refNames,proto3" json:"ref_names,omitempty"` + // This comment is left unintentionally blank. + RefNames [][]byte `protobuf:"bytes,2,rep,name=ref_names,json=refNames,proto3" json:"ref_names,omitempty"` } func (x *ListCommitsByRefNameRequest) Reset() { @@ -1929,11 +2009,13 @@ func (x *ListCommitsByRefNameRequest) GetRefNames() [][]byte { return nil } +// This comment is left unintentionally blank. type ListCommitsByRefNameResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. CommitRefs []*ListCommitsByRefNameResponse_CommitForRef `protobuf:"bytes,2,rep,name=commit_refs,json=commitRefs,proto3" json:"commit_refs,omitempty"` } @@ -1976,17 +2058,22 @@ func (x *ListCommitsByRefNameResponse) GetCommitRefs() []*ListCommitsByRefNameRe return nil } +// This comment is left unintentionally blank. type FindAllCommitsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // When nil, return all commits reachable by any branch in the repo - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - MaxCount int32 `protobuf:"varint,3,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` - Skip int32 `protobuf:"varint,4,opt,name=skip,proto3" json:"skip,omitempty"` - Order FindAllCommitsRequest_Order `protobuf:"varint,5,opt,name=order,proto3,enum=gitaly.FindAllCommitsRequest_Order" json:"order,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + MaxCount int32 `protobuf:"varint,3,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` + // This comment is left unintentionally blank. + Skip int32 `protobuf:"varint,4,opt,name=skip,proto3" json:"skip,omitempty"` + // This comment is left unintentionally blank. + Order FindAllCommitsRequest_Order `protobuf:"varint,5,opt,name=order,proto3,enum=gitaly.FindAllCommitsRequest_Order" json:"order,omitempty"` } func (x *FindAllCommitsRequest) Reset() { @@ -2062,6 +2149,7 @@ type FindAllCommitsResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } @@ -2104,28 +2192,44 @@ func (x *FindAllCommitsResponse) GetCommits() []*GitCommit { return nil } +// This comment is left unintentionally blank. type FindCommitsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` - Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"` - Follow bool `protobuf:"varint,6,opt,name=follow,proto3" json:"follow,omitempty"` - SkipMerges bool `protobuf:"varint,7,opt,name=skip_merges,json=skipMerges,proto3" json:"skip_merges,omitempty"` - DisableWalk bool `protobuf:"varint,8,opt,name=disable_walk,json=disableWalk,proto3" json:"disable_walk,omitempty"` - After *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=after,proto3" json:"after,omitempty"` - Before *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=before,proto3" json:"before,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + // This comment is left unintentionally blank. + Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` + // This comment is left unintentionally blank. + Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"` + // This comment is left unintentionally blank. + Follow bool `protobuf:"varint,6,opt,name=follow,proto3" json:"follow,omitempty"` + // This comment is left unintentionally blank. + SkipMerges bool `protobuf:"varint,7,opt,name=skip_merges,json=skipMerges,proto3" json:"skip_merges,omitempty"` + // This comment is left unintentionally blank. + DisableWalk bool `protobuf:"varint,8,opt,name=disable_walk,json=disableWalk,proto3" json:"disable_walk,omitempty"` + // This comment is left unintentionally blank. + After *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=after,proto3" json:"after,omitempty"` + // This comment is left unintentionally blank. + Before *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=before,proto3" json:"before,omitempty"` // all and revision are mutually exclusive - All bool `protobuf:"varint,11,opt,name=all,proto3" json:"all,omitempty"` - FirstParent bool `protobuf:"varint,12,opt,name=first_parent,json=firstParent,proto3" json:"first_parent,omitempty"` - Author []byte `protobuf:"bytes,13,opt,name=author,proto3" json:"author,omitempty"` - Order FindCommitsRequest_Order `protobuf:"varint,14,opt,name=order,proto3,enum=gitaly.FindCommitsRequest_Order" json:"order,omitempty"` - GlobalOptions *GlobalOptions `protobuf:"bytes,15,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` - Trailers bool `protobuf:"varint,16,opt,name=trailers,proto3" json:"trailers,omitempty"` + All bool `protobuf:"varint,11,opt,name=all,proto3" json:"all,omitempty"` + // This comment is left unintentionally blank. + FirstParent bool `protobuf:"varint,12,opt,name=first_parent,json=firstParent,proto3" json:"first_parent,omitempty"` + // This comment is left unintentionally blank. + Author []byte `protobuf:"bytes,13,opt,name=author,proto3" json:"author,omitempty"` + // This comment is left unintentionally blank. + Order FindCommitsRequest_Order `protobuf:"varint,14,opt,name=order,proto3,enum=gitaly.FindCommitsRequest_Order" json:"order,omitempty"` + // This comment is left unintentionally blank. + GlobalOptions *GlobalOptions `protobuf:"bytes,15,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` + // This comment is left unintentionally blank. + Trailers bool `protobuf:"varint,16,opt,name=trailers,proto3" json:"trailers,omitempty"` } func (x *FindCommitsRequest) Reset() { @@ -2278,6 +2382,7 @@ type FindCommitsResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } @@ -2320,13 +2425,16 @@ func (x *FindCommitsResponse) GetCommits() []*GitCommit { return nil } +// This comment is left unintentionally blank. type CommitLanguagesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` } func (x *CommitLanguagesRequest) Reset() { @@ -2375,11 +2483,13 @@ func (x *CommitLanguagesRequest) GetRevision() []byte { return nil } +// This comment is left unintentionally blank. type CommitLanguagesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Languages []*CommitLanguagesResponse_Language `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"` } @@ -2422,14 +2532,18 @@ func (x *CommitLanguagesResponse) GetLanguages() []*CommitLanguagesResponse_Lang return nil } +// This comment is left unintentionally blank. type RawBlameRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // Comma-separated range of line numbers to perform the blame on: "1,1000". // Optional - if no range is provided, the whole file will be blamed. Range []byte `protobuf:"bytes,4,opt,name=range,proto3" json:"range,omitempty"` @@ -2495,11 +2609,13 @@ func (x *RawBlameRequest) GetRange() []byte { return nil } +// This comment is left unintentionally blank. type RawBlameResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } @@ -2542,16 +2658,24 @@ func (x *RawBlameResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type LastCommitForPathRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - LiteralPathspec bool `protobuf:"varint,4,opt,name=literal_pathspec,json=literalPathspec,proto3" json:"literal_pathspec,omitempty"` // Deprecate after Rails stops using this - GlobalOptions *GlobalOptions `protobuf:"bytes,5,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + // This comment is left unintentionally blank. + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + LiteralPathspec bool `protobuf:"varint,4,opt,name=literal_pathspec,json=literalPathspec,proto3" json:"literal_pathspec,omitempty"` // Deprecate after Rails stops using this + // This comment is left unintentionally blank. + GlobalOptions *GlobalOptions `protobuf:"bytes,5,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` } func (x *LastCommitForPathRequest) Reset() { @@ -2621,6 +2745,7 @@ func (x *LastCommitForPathRequest) GetGlobalOptions() *GlobalOptions { return nil } +// This comment is left unintentionally blank. type LastCommitForPathResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2669,19 +2794,28 @@ func (x *LastCommitForPathResponse) GetCommit() *GitCommit { return nil } +// This comment is left unintentionally blank. type ListLastCommitsForTreeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - Offset int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` + // This comment is left unintentionally blank. + Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + // This comment is left unintentionally blank. + Offset int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` + // This comment is left unintentionally blank. + // // Deprecated: Do not use. - LiteralPathspec bool `protobuf:"varint,6,opt,name=literal_pathspec,json=literalPathspec,proto3" json:"literal_pathspec,omitempty"` - GlobalOptions *GlobalOptions `protobuf:"bytes,7,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` + LiteralPathspec bool `protobuf:"varint,6,opt,name=literal_pathspec,json=literalPathspec,proto3" json:"literal_pathspec,omitempty"` + // This comment is left unintentionally blank. + GlobalOptions *GlobalOptions `protobuf:"bytes,7,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` } func (x *ListLastCommitsForTreeRequest) Reset() { @@ -2766,11 +2900,13 @@ func (x *ListLastCommitsForTreeRequest) GetGlobalOptions() *GlobalOptions { return nil } +// This comment is left unintentionally blank. type ListLastCommitsForTreeResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Commits []*ListLastCommitsForTreeResponse_CommitForTree `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } @@ -2813,17 +2949,25 @@ func (x *ListLastCommitsForTreeResponse) GetCommits() []*ListLastCommitsForTreeR return nil } +// This comment is left unintentionally blank. type CommitsByMessageRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` - Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` - Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + // This comment is left unintentionally blank. + Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` + // This comment is left unintentionally blank. GlobalOptions *GlobalOptions `protobuf:"bytes,7,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty"` } @@ -2914,6 +3058,7 @@ type CommitsByMessageResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` } @@ -2956,13 +3101,16 @@ func (x *CommitsByMessageResponse) GetCommits() []*GitCommit { return nil } +// This comment is left unintentionally blank. type FilterShasWithSignaturesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Shas [][]byte `protobuf:"bytes,2,rep,name=shas,proto3" json:"shas,omitempty"` + // This comment is left unintentionally blank. + Shas [][]byte `protobuf:"bytes,2,rep,name=shas,proto3" json:"shas,omitempty"` } func (x *FilterShasWithSignaturesRequest) Reset() { @@ -3011,11 +3159,13 @@ func (x *FilterShasWithSignaturesRequest) GetShas() [][]byte { return nil } +// This comment is left unintentionally blank. type FilterShasWithSignaturesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Shas [][]byte `protobuf:"bytes,1,rep,name=shas,proto3" json:"shas,omitempty"` } @@ -3058,13 +3208,16 @@ func (x *FilterShasWithSignaturesResponse) GetShas() [][]byte { return nil } +// This comment is left unintentionally blank. type ExtractCommitSignatureRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + // This comment is left unintentionally blank. + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` } func (x *ExtractCommitSignatureRequest) Reset() { @@ -3120,7 +3273,9 @@ type ExtractCommitSignatureResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` + // This comment is left unintentionally blank. + Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` + // This comment is left unintentionally blank. SignedText []byte `protobuf:"bytes,2,opt,name=signed_text,json=signedText,proto3" json:"signed_text,omitempty"` } @@ -3170,13 +3325,16 @@ func (x *ExtractCommitSignatureResponse) GetSignedText() []byte { return nil } +// This comment is left unintentionally blank. type GetCommitSignaturesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds,proto3" json:"commit_ids,omitempty"` + // This comment is left unintentionally blank. + CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds,proto3" json:"commit_ids,omitempty"` } func (x *GetCommitSignaturesRequest) Reset() { @@ -3225,6 +3383,7 @@ func (x *GetCommitSignaturesRequest) GetCommitIds() []string { return nil } +// This comment is left unintentionally blank. type GetCommitSignaturesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3233,7 +3392,8 @@ type GetCommitSignaturesResponse struct { // Only present for a new commit signature data. CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // See ExtractCommitSignatureResponse above for how these fields should be handled. - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + // This comment is left unintentionally blank. SignedText []byte `protobuf:"bytes,3,opt,name=signed_text,json=signedText,proto3" json:"signed_text,omitempty"` } @@ -3290,13 +3450,16 @@ func (x *GetCommitSignaturesResponse) GetSignedText() []byte { return nil } +// This comment is left unintentionally blank. type GetCommitMessagesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds,proto3" json:"commit_ids,omitempty"` + // This comment is left unintentionally blank. + CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds,proto3" json:"commit_ids,omitempty"` } func (x *GetCommitMessagesRequest) Reset() { @@ -3345,6 +3508,7 @@ func (x *GetCommitMessagesRequest) GetCommitIds() []string { return nil } +// This comment is left unintentionally blank. type GetCommitMessagesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3352,7 +3516,8 @@ type GetCommitMessagesResponse struct { // Only present for a new commit message CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` - Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // This comment is left unintentionally blank. + Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } func (x *GetCommitMessagesResponse) Reset() { @@ -3463,11 +3628,13 @@ func (x *CheckObjectsExistRequest) GetRevisions() [][]byte { return nil } +// This comment is left unintentionally blank. type CheckObjectsExistResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Revisions []*CheckObjectsExistResponse_RevisionExistence `protobuf:"bytes,1,rep,name=revisions,proto3" json:"revisions,omitempty"` } @@ -3510,13 +3677,16 @@ func (x *CheckObjectsExistResponse) GetRevisions() []*CheckObjectsExistResponse_ return nil } +// This comment is left unintentionally blank. type ListCommitsByRefNameResponse_CommitForRef struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` - RefName []byte `protobuf:"bytes,2,opt,name=ref_name,json=refName,proto3" json:"ref_name,omitempty"` + // This comment is left unintentionally blank. + Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` + // This comment is left unintentionally blank. + RefName []byte `protobuf:"bytes,2,opt,name=ref_name,json=refName,proto3" json:"ref_name,omitempty"` } func (x *ListCommitsByRefNameResponse_CommitForRef) Reset() { @@ -3565,16 +3735,22 @@ func (x *ListCommitsByRefNameResponse_CommitForRef) GetRefName() []byte { return nil } +// This comment is left unintentionally blank. type CommitLanguagesResponse_Language struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Share float32 `protobuf:"fixed32,2,opt,name=share,proto3" json:"share,omitempty"` - Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` - FileCount uint32 `protobuf:"varint,4,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty"` - Bytes uint64 `protobuf:"varint,5,opt,name=bytes,proto3" json:"bytes,omitempty"` + // This comment is left unintentionally blank. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Share float32 `protobuf:"fixed32,2,opt,name=share,proto3" json:"share,omitempty"` + // This comment is left unintentionally blank. + Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` + // This comment is left unintentionally blank. + FileCount uint32 `protobuf:"varint,4,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty"` + // This comment is left unintentionally blank. + Bytes uint64 `protobuf:"varint,5,opt,name=bytes,proto3" json:"bytes,omitempty"` } func (x *CommitLanguagesResponse_Language) Reset() { @@ -3644,13 +3820,16 @@ func (x *CommitLanguagesResponse_Language) GetBytes() uint64 { return 0 } +// This comment is left unintentionally blank. type ListLastCommitsForTreeResponse_CommitForTree struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Commit *GitCommit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` - PathBytes []byte `protobuf:"bytes,4,opt,name=path_bytes,json=pathBytes,proto3" json:"path_bytes,omitempty"` + // This comment is left unintentionally blank. + Commit *GitCommit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` + // This comment is left unintentionally blank. + PathBytes []byte `protobuf:"bytes,4,opt,name=path_bytes,json=pathBytes,proto3" json:"path_bytes,omitempty"` } func (x *ListLastCommitsForTreeResponse_CommitForTree) Reset() { @@ -3699,13 +3878,16 @@ func (x *ListLastCommitsForTreeResponse_CommitForTree) GetPathBytes() []byte { return nil } +// This comment is left unintentionally blank. type CheckObjectsExistResponse_RevisionExistence struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"` } func (x *CheckObjectsExistResponse_RevisionExistence) Reset() { diff --git a/proto/go/gitalypb/commit_grpc.pb.go b/proto/go/gitalypb/commit_grpc.pb.go index 0e1f603bd..54ce4ad3f 100644 --- a/proto/go/gitalypb/commit_grpc.pb.go +++ b/proto/go/gitalypb/commit_grpc.pb.go @@ -25,26 +25,45 @@ type CommitServiceClient interface { // ListAllCommits lists all commits present in the repository, including // those not reachable by any reference. ListAllCommits(ctx context.Context, in *ListAllCommitsRequest, opts ...grpc.CallOption) (CommitService_ListAllCommitsClient, error) + // This comment is left unintentionally blank. CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) + // This comment is left unintentionally blank. TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (CommitService_TreeEntryClient, error) + // This comment is left unintentionally blank. CountCommits(ctx context.Context, in *CountCommitsRequest, opts ...grpc.CallOption) (*CountCommitsResponse, error) + // This comment is left unintentionally blank. CountDivergingCommits(ctx context.Context, in *CountDivergingCommitsRequest, opts ...grpc.CallOption) (*CountDivergingCommitsResponse, error) + // This comment is left unintentionally blank. GetTreeEntries(ctx context.Context, in *GetTreeEntriesRequest, opts ...grpc.CallOption) (CommitService_GetTreeEntriesClient, error) + // This comment is left unintentionally blank. ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (CommitService_ListFilesClient, error) + // This comment is left unintentionally blank. FindCommit(ctx context.Context, in *FindCommitRequest, opts ...grpc.CallOption) (*FindCommitResponse, error) + // This comment is left unintentionally blank. CommitStats(ctx context.Context, in *CommitStatsRequest, opts ...grpc.CallOption) (*CommitStatsResponse, error) // Use a stream to paginate the result set FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) + // This comment is left unintentionally blank. FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) + // This comment is left unintentionally blank. CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) + // This comment is left unintentionally blank. RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) + // This comment is left unintentionally blank. LastCommitForPath(ctx context.Context, in *LastCommitForPathRequest, opts ...grpc.CallOption) (*LastCommitForPathResponse, error) + // This comment is left unintentionally blank. ListLastCommitsForTree(ctx context.Context, in *ListLastCommitsForTreeRequest, opts ...grpc.CallOption) (CommitService_ListLastCommitsForTreeClient, error) + // This comment is left unintentionally blank. CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error) + // This comment is left unintentionally blank. ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error) + // This comment is left unintentionally blank. ListCommitsByRefName(ctx context.Context, in *ListCommitsByRefNameRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByRefNameClient, error) + // This comment is left unintentionally blank. FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error) + // This comment is left unintentionally blank. GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) + // This comment is left unintentionally blank. GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) // CheckObjectsExist will check for the existence of revisions against a // repository. It returns two sets of data. An array containing the revisions @@ -645,26 +664,45 @@ type CommitServiceServer interface { // ListAllCommits lists all commits present in the repository, including // those not reachable by any reference. ListAllCommits(*ListAllCommitsRequest, CommitService_ListAllCommitsServer) error + // This comment is left unintentionally blank. CommitIsAncestor(context.Context, *CommitIsAncestorRequest) (*CommitIsAncestorResponse, error) + // This comment is left unintentionally blank. TreeEntry(*TreeEntryRequest, CommitService_TreeEntryServer) error + // This comment is left unintentionally blank. CountCommits(context.Context, *CountCommitsRequest) (*CountCommitsResponse, error) + // This comment is left unintentionally blank. CountDivergingCommits(context.Context, *CountDivergingCommitsRequest) (*CountDivergingCommitsResponse, error) + // This comment is left unintentionally blank. GetTreeEntries(*GetTreeEntriesRequest, CommitService_GetTreeEntriesServer) error + // This comment is left unintentionally blank. ListFiles(*ListFilesRequest, CommitService_ListFilesServer) error + // This comment is left unintentionally blank. FindCommit(context.Context, *FindCommitRequest) (*FindCommitResponse, error) + // This comment is left unintentionally blank. CommitStats(context.Context, *CommitStatsRequest) (*CommitStatsResponse, error) // Use a stream to paginate the result set FindAllCommits(*FindAllCommitsRequest, CommitService_FindAllCommitsServer) error + // This comment is left unintentionally blank. FindCommits(*FindCommitsRequest, CommitService_FindCommitsServer) error + // This comment is left unintentionally blank. CommitLanguages(context.Context, *CommitLanguagesRequest) (*CommitLanguagesResponse, error) + // This comment is left unintentionally blank. RawBlame(*RawBlameRequest, CommitService_RawBlameServer) error + // This comment is left unintentionally blank. LastCommitForPath(context.Context, *LastCommitForPathRequest) (*LastCommitForPathResponse, error) + // This comment is left unintentionally blank. ListLastCommitsForTree(*ListLastCommitsForTreeRequest, CommitService_ListLastCommitsForTreeServer) error + // This comment is left unintentionally blank. CommitsByMessage(*CommitsByMessageRequest, CommitService_CommitsByMessageServer) error + // This comment is left unintentionally blank. ListCommitsByOid(*ListCommitsByOidRequest, CommitService_ListCommitsByOidServer) error + // This comment is left unintentionally blank. ListCommitsByRefName(*ListCommitsByRefNameRequest, CommitService_ListCommitsByRefNameServer) error + // This comment is left unintentionally blank. FilterShasWithSignatures(CommitService_FilterShasWithSignaturesServer) error + // This comment is left unintentionally blank. GetCommitSignatures(*GetCommitSignaturesRequest, CommitService_GetCommitSignaturesServer) error + // This comment is left unintentionally blank. GetCommitMessages(*GetCommitMessagesRequest, CommitService_GetCommitMessagesServer) error // CheckObjectsExist will check for the existence of revisions against a // repository. It returns two sets of data. An array containing the revisions diff --git a/proto/go/gitalypb/conflicts.pb.go b/proto/go/gitalypb/conflicts.pb.go index 67fa740cf..48dcc1f3f 100644 --- a/proto/go/gitalypb/conflicts.pb.go +++ b/proto/go/gitalypb/conflicts.pb.go @@ -21,14 +21,18 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type ListConflictFilesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid,proto3" json:"our_commit_oid,omitempty"` - TheirCommitOid string `protobuf:"bytes,3,opt,name=their_commit_oid,json=theirCommitOid,proto3" json:"their_commit_oid,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid,proto3" json:"our_commit_oid,omitempty"` + // This comment is left unintentionally blank. + TheirCommitOid string `protobuf:"bytes,3,opt,name=their_commit_oid,json=theirCommitOid,proto3" json:"their_commit_oid,omitempty"` // AllowTreeConflicts will not cause the request to fail in case there are // tree conflicts. If set to true, then responses may contain conflict files // where some of the paths are unset. @@ -95,15 +99,21 @@ func (x *ListConflictFilesRequest) GetAllowTreeConflicts() bool { return false } +// This comment is left unintentionally blank. type ConflictFileHeader struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - CommitOid string `protobuf:"bytes,2,opt,name=commit_oid,json=commitOid,proto3" json:"commit_oid,omitempty"` - TheirPath []byte `protobuf:"bytes,3,opt,name=their_path,json=theirPath,proto3" json:"their_path,omitempty"` - OurPath []byte `protobuf:"bytes,4,opt,name=our_path,json=ourPath,proto3" json:"our_path,omitempty"` - OurMode int32 `protobuf:"varint,5,opt,name=our_mode,json=ourMode,proto3" json:"our_mode,omitempty"` + // This comment is left unintentionally blank. + CommitOid string `protobuf:"bytes,2,opt,name=commit_oid,json=commitOid,proto3" json:"commit_oid,omitempty"` + // This comment is left unintentionally blank. + TheirPath []byte `protobuf:"bytes,3,opt,name=their_path,json=theirPath,proto3" json:"their_path,omitempty"` + // This comment is left unintentionally blank. + OurPath []byte `protobuf:"bytes,4,opt,name=our_path,json=ourPath,proto3" json:"our_path,omitempty"` + // This comment is left unintentionally blank. + OurMode int32 `protobuf:"varint,5,opt,name=our_mode,json=ourMode,proto3" json:"our_mode,omitempty"` + // This comment is left unintentionally blank. AncestorPath []byte `protobuf:"bytes,6,opt,name=ancestor_path,json=ancestorPath,proto3" json:"ancestor_path,omitempty"` } @@ -174,6 +184,7 @@ func (x *ConflictFileHeader) GetAncestorPath() []byte { return nil } +// This comment is left unintentionally blank. type ConflictFile struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -243,10 +254,12 @@ type isConflictFile_ConflictFilePayload interface { } type ConflictFile_Header struct { + // This comment is left unintentionally blank. Header *ConflictFileHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` } type ConflictFile_Content struct { + // This comment is left unintentionally blank. Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"` } @@ -254,11 +267,13 @@ func (*ConflictFile_Header) isConflictFile_ConflictFilePayload() {} func (*ConflictFile_Content) isConflictFile_ConflictFilePayload() {} +// This comment is left unintentionally blank. type ListConflictFilesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Files []*ConflictFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` } diff --git a/proto/go/gitalypb/conflicts_grpc.pb.go b/proto/go/gitalypb/conflicts_grpc.pb.go index ec73fb129..f50ae2a56 100644 --- a/proto/go/gitalypb/conflicts_grpc.pb.go +++ b/proto/go/gitalypb/conflicts_grpc.pb.go @@ -18,6 +18,8 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ConflictsServiceClient interface { + // ListConflictFiles returns all conflicting files which result from a merge + // of two specified commit objects. ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error) // ResolveConflicts tries to resolve a conflicting merge with a set of // user-provided merge resolutions. If resolving the conflict succeeds, the @@ -103,6 +105,8 @@ func (x *conflictsServiceResolveConflictsClient) CloseAndRecv() (*ResolveConflic // All implementations must embed UnimplementedConflictsServiceServer // for forward compatibility type ConflictsServiceServer interface { + // ListConflictFiles returns all conflicting files which result from a merge + // of two specified commit objects. ListConflictFiles(*ListConflictFilesRequest, ConflictsService_ListConflictFilesServer) error // ResolveConflicts tries to resolve a conflicting merge with a set of // user-provided merge resolutions. If resolving the conflict succeeds, the diff --git a/proto/go/gitalypb/diff.pb.go b/proto/go/gitalypb/diff.pb.go index 2fa9602ad..cc2114b9c 100644 --- a/proto/go/gitalypb/diff.pb.go +++ b/proto/go/gitalypb/diff.pb.go @@ -20,6 +20,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type CommitDiffRequest_DiffMode int32 const ( @@ -68,14 +69,20 @@ func (CommitDiffRequest_DiffMode) EnumDescriptor() ([]byte, []int) { return file_diff_proto_rawDescGZIP(), []int{0, 0} } +// This comment is left unintentionally blank. type ChangedPaths_Status int32 const ( - ChangedPaths_ADDED ChangedPaths_Status = 0 - ChangedPaths_MODIFIED ChangedPaths_Status = 1 - ChangedPaths_DELETED ChangedPaths_Status = 2 + // This comment is left unintentionally blank. + ChangedPaths_ADDED ChangedPaths_Status = 0 + // This comment is left unintentionally blank. + ChangedPaths_MODIFIED ChangedPaths_Status = 1 + // This comment is left unintentionally blank. + ChangedPaths_DELETED ChangedPaths_Status = 2 + // This comment is left unintentionally blank. ChangedPaths_TYPE_CHANGE ChangedPaths_Status = 3 - ChangedPaths_COPIED ChangedPaths_Status = 4 + // This comment is left unintentionally blank. + ChangedPaths_COPIED ChangedPaths_Status = 4 ) // Enum value maps for ChangedPaths_Status. @@ -123,21 +130,31 @@ func (ChangedPaths_Status) EnumDescriptor() ([]byte, []int) { return file_diff_proto_rawDescGZIP(), []int{14, 0} } +// This comment is left unintentionally blank. type CommitDiffRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` - IgnoreWhitespaceChange bool `protobuf:"varint,4,opt,name=ignore_whitespace_change,json=ignoreWhitespaceChange,proto3" json:"ignore_whitespace_change,omitempty"` - Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"` - CollapseDiffs bool `protobuf:"varint,6,opt,name=collapse_diffs,json=collapseDiffs,proto3" json:"collapse_diffs,omitempty"` - EnforceLimits bool `protobuf:"varint,7,opt,name=enforce_limits,json=enforceLimits,proto3" json:"enforce_limits,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` + // This comment is left unintentionally blank. + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` + // This comment is left unintentionally blank. + IgnoreWhitespaceChange bool `protobuf:"varint,4,opt,name=ignore_whitespace_change,json=ignoreWhitespaceChange,proto3" json:"ignore_whitespace_change,omitempty"` + // This comment is left unintentionally blank. + Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"` + // This comment is left unintentionally blank. + CollapseDiffs bool `protobuf:"varint,6,opt,name=collapse_diffs,json=collapseDiffs,proto3" json:"collapse_diffs,omitempty"` + // This comment is left unintentionally blank. + EnforceLimits bool `protobuf:"varint,7,opt,name=enforce_limits,json=enforceLimits,proto3" json:"enforce_limits,omitempty"` // These limits are only enforced when enforce_limits == true. MaxFiles int32 `protobuf:"varint,8,opt,name=max_files,json=maxFiles,proto3" json:"max_files,omitempty"` + // This comment is left unintentionally blank. MaxLines int32 `protobuf:"varint,9,opt,name=max_lines,json=maxLines,proto3" json:"max_lines,omitempty"` + // This comment is left unintentionally blank. MaxBytes int32 `protobuf:"varint,10,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` // Limitation of a single diff patch, // patches surpassing this limit are pruned by default. @@ -145,7 +162,9 @@ type CommitDiffRequest struct { MaxPatchBytes int32 `protobuf:"varint,14,opt,name=max_patch_bytes,json=maxPatchBytes,proto3" json:"max_patch_bytes,omitempty"` // These limits are only enforced if collapse_diffs == true. SafeMaxFiles int32 `protobuf:"varint,11,opt,name=safe_max_files,json=safeMaxFiles,proto3" json:"safe_max_files,omitempty"` + // This comment is left unintentionally blank. SafeMaxLines int32 `protobuf:"varint,12,opt,name=safe_max_lines,json=safeMaxLines,proto3" json:"safe_max_lines,omitempty"` + // This comment is left unintentionally blank. SafeMaxBytes int32 `protobuf:"varint,13,opt,name=safe_max_bytes,json=safeMaxBytes,proto3" json:"safe_max_bytes,omitempty"` // DiffMode is the mode used for generating the diff. Please refer to the enum declaration for supported modes. DiffMode CommitDiffRequest_DiffMode `protobuf:"varint,15,opt,name=diff_mode,json=diffMode,proto3,enum=gitaly.CommitDiffRequest_DiffMode" json:"diff_mode,omitempty"` @@ -294,16 +313,24 @@ type CommitDiffResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"` - ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` + // This comment is left unintentionally blank. + ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` // Blob ID as returned via `git diff --full-index` - FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` - ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` - OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` - NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` - Binary bool `protobuf:"varint,7,opt,name=binary,proto3" json:"binary,omitempty"` + FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` + // This comment is left unintentionally blank. + ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` + // This comment is left unintentionally blank. + OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` + // This comment is left unintentionally blank. + NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` + // This comment is left unintentionally blank. + Binary bool `protobuf:"varint,7,opt,name=binary,proto3" json:"binary,omitempty"` + // This comment is left unintentionally blank. RawPatchData []byte `protobuf:"bytes,9,opt,name=raw_patch_data,json=rawPatchData,proto3" json:"raw_patch_data,omitempty"` - EndOfPatch bool `protobuf:"varint,10,opt,name=end_of_patch,json=endOfPatch,proto3" json:"end_of_patch,omitempty"` + // This comment is left unintentionally blank. + EndOfPatch bool `protobuf:"varint,10,opt,name=end_of_patch,json=endOfPatch,proto3" json:"end_of_patch,omitempty"` // Indicates the diff file at which we overflow according to the limitations sent, // in which case only this attribute will be set. OverflowMarker bool `protobuf:"varint,11,opt,name=overflow_marker,json=overflowMarker,proto3" json:"overflow_marker,omitempty"` @@ -431,15 +458,20 @@ func (x *CommitDiffResponse) GetTooLarge() bool { return false } +// This comment is left unintentionally blank. type CommitDeltaRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` - Paths [][]byte `protobuf:"bytes,4,rep,name=paths,proto3" json:"paths,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` + // This comment is left unintentionally blank. + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` + // This comment is left unintentionally blank. + Paths [][]byte `protobuf:"bytes,4,rep,name=paths,proto3" json:"paths,omitempty"` } func (x *CommitDeltaRequest) Reset() { @@ -502,18 +534,24 @@ func (x *CommitDeltaRequest) GetPaths() [][]byte { return nil } +// This comment is left unintentionally blank. type CommitDelta struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"` - ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` + // This comment is left unintentionally blank. + ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` // Blob ID as returned via `git diff --full-index` - FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` - ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` - OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` - NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` + FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` + // This comment is left unintentionally blank. + ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` + // This comment is left unintentionally blank. + OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` + // This comment is left unintentionally blank. + NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` } func (x *CommitDelta) Reset() { @@ -590,11 +628,13 @@ func (x *CommitDelta) GetNewMode() int32 { return 0 } +// This comment is left unintentionally blank. type CommitDeltaResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Deltas []*CommitDelta `protobuf:"bytes,1,rep,name=deltas,proto3" json:"deltas,omitempty"` } @@ -637,14 +677,18 @@ func (x *CommitDeltaResponse) GetDeltas() []*CommitDelta { return nil } +// This comment is left unintentionally blank. type RawDiffRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` + // This comment is left unintentionally blank. + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` } func (x *RawDiffRequest) Reset() { @@ -700,11 +744,13 @@ func (x *RawDiffRequest) GetRightCommitId() string { return "" } +// This comment is left unintentionally blank. type RawDiffResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } @@ -747,14 +793,18 @@ func (x *RawDiffResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type RawPatchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` + // This comment is left unintentionally blank. + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` } func (x *RawPatchRequest) Reset() { @@ -810,11 +860,13 @@ func (x *RawPatchRequest) GetRightCommitId() string { return "" } +// This comment is left unintentionally blank. type RawPatchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } @@ -857,14 +909,18 @@ func (x *RawPatchResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type DiffStatsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"` + // This comment is left unintentionally blank. + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"` } func (x *DiffStatsRequest) Reset() { @@ -920,15 +976,20 @@ func (x *DiffStatsRequest) GetRightCommitId() string { return "" } +// This comment is left unintentionally blank. type DiffStats struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,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"` - OldPath []byte `protobuf:"bytes,4,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + Additions int32 `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"` + // This comment is left unintentionally blank. + Deletions int32 `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"` + // This comment is left unintentionally blank. + OldPath []byte `protobuf:"bytes,4,opt,name=old_path,json=oldPath,proto3" json:"old_path,omitempty"` } func (x *DiffStats) Reset() { @@ -991,11 +1052,13 @@ func (x *DiffStats) GetOldPath() []byte { return nil } +// This comment is left unintentionally blank. type DiffStatsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Stats []*DiffStats `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` } @@ -1046,8 +1109,10 @@ type FindChangedPathsRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Commits []string `protobuf:"bytes,2,rep,name=commits,proto3" json:"commits,omitempty"` + // This comment is left unintentionally blank. + Commits []string `protobuf:"bytes,2,rep,name=commits,proto3" json:"commits,omitempty"` } func (x *FindChangedPathsRequest) Reset() { @@ -1102,6 +1167,7 @@ type FindChangedPathsResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Paths []*ChangedPaths `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` } @@ -1150,7 +1216,9 @@ type ChangedPaths struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. Status ChangedPaths_Status `protobuf:"varint,2,opt,name=status,proto3,enum=gitaly.ChangedPaths_Status" json:"status,omitempty"` } diff --git a/proto/go/gitalypb/diff_grpc.pb.go b/proto/go/gitalypb/diff_grpc.pb.go index 7fdc2a73c..c946202b6 100644 --- a/proto/go/gitalypb/diff_grpc.pb.go +++ b/proto/go/gitalypb/diff_grpc.pb.go @@ -22,8 +22,11 @@ type DiffServiceClient interface { CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error) // Return a stream so we can divide the response in chunks of deltas CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (DiffService_CommitDeltaClient, error) + // This comment is left unintentionally blank. RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error) + // This comment is left unintentionally blank. RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error) + // This comment is left unintentionally blank. DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error) // Return a list of files changed along with the status of each file FindChangedPaths(ctx context.Context, in *FindChangedPathsRequest, opts ...grpc.CallOption) (DiffService_FindChangedPathsClient, error) @@ -237,8 +240,11 @@ type DiffServiceServer interface { CommitDiff(*CommitDiffRequest, DiffService_CommitDiffServer) error // Return a stream so we can divide the response in chunks of deltas CommitDelta(*CommitDeltaRequest, DiffService_CommitDeltaServer) error + // This comment is left unintentionally blank. RawDiff(*RawDiffRequest, DiffService_RawDiffServer) error + // This comment is left unintentionally blank. RawPatch(*RawPatchRequest, DiffService_RawPatchServer) error + // This comment is left unintentionally blank. DiffStats(*DiffStatsRequest, DiffService_DiffStatsServer) error // Return a list of files changed along with the status of each file FindChangedPaths(*FindChangedPathsRequest, DiffService_FindChangedPathsServer) error diff --git a/proto/go/gitalypb/hook.pb.go b/proto/go/gitalypb/hook.pb.go index 9a19748ea..8fd4fe4c3 100644 --- a/proto/go/gitalypb/hook.pb.go +++ b/proto/go/gitalypb/hook.pb.go @@ -20,12 +20,16 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type ReferenceTransactionHookRequest_State int32 const ( - ReferenceTransactionHookRequest_PREPARED ReferenceTransactionHookRequest_State = 0 + // This comment is left unintentionally blank. + ReferenceTransactionHookRequest_PREPARED ReferenceTransactionHookRequest_State = 0 + // This comment is left unintentionally blank. ReferenceTransactionHookRequest_COMMITTED ReferenceTransactionHookRequest_State = 1 - ReferenceTransactionHookRequest_ABORTED ReferenceTransactionHookRequest_State = 2 + // This comment is left unintentionally blank. + ReferenceTransactionHookRequest_ABORTED ReferenceTransactionHookRequest_State = 2 ) // Enum value maps for ReferenceTransactionHookRequest_State. @@ -69,15 +73,20 @@ func (ReferenceTransactionHookRequest_State) EnumDescriptor() ([]byte, []int) { return file_hook_proto_rawDescGZIP(), []int{6, 0} } +// This comment is left unintentionally blank. type PreReceiveHookRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` - Stdin []byte `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"` - GitPushOptions []string `protobuf:"bytes,5,rep,name=git_push_options,json=gitPushOptions,proto3" json:"git_push_options,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` + // This comment is left unintentionally blank. + Stdin []byte `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"` + // This comment is left unintentionally blank. + GitPushOptions []string `protobuf:"bytes,5,rep,name=git_push_options,json=gitPushOptions,proto3" json:"git_push_options,omitempty"` } func (x *PreReceiveHookRequest) Reset() { @@ -140,13 +149,17 @@ func (x *PreReceiveHookRequest) GetGitPushOptions() []string { return nil } +// This comment is left unintentionally blank. type PreReceiveHookResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This comment is left unintentionally blank. + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + // This comment is left unintentionally blank. + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This comment is left unintentionally blank. ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } @@ -203,15 +216,20 @@ func (x *PreReceiveHookResponse) GetExitStatus() *ExitStatus { return nil } +// This comment is left unintentionally blank. type PostReceiveHookRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` - Stdin []byte `protobuf:"bytes,3,opt,name=stdin,proto3" json:"stdin,omitempty"` - GitPushOptions []string `protobuf:"bytes,4,rep,name=git_push_options,json=gitPushOptions,proto3" json:"git_push_options,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` + // This comment is left unintentionally blank. + Stdin []byte `protobuf:"bytes,3,opt,name=stdin,proto3" json:"stdin,omitempty"` + // This comment is left unintentionally blank. + GitPushOptions []string `protobuf:"bytes,4,rep,name=git_push_options,json=gitPushOptions,proto3" json:"git_push_options,omitempty"` } func (x *PostReceiveHookRequest) Reset() { @@ -274,13 +292,17 @@ func (x *PostReceiveHookRequest) GetGitPushOptions() []string { return nil } +// This comment is left unintentionally blank. type PostReceiveHookResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This comment is left unintentionally blank. + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + // This comment is left unintentionally blank. + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This comment is left unintentionally blank. ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } @@ -337,16 +359,22 @@ func (x *PostReceiveHookResponse) GetExitStatus() *ExitStatus { return nil } +// This comment is left unintentionally blank. type UpdateHookRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` - Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` - OldValue string `protobuf:"bytes,4,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"` - NewValue string `protobuf:"bytes,5,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` + // This comment is left unintentionally blank. + Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` + // This comment is left unintentionally blank. + OldValue string `protobuf:"bytes,4,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"` + // This comment is left unintentionally blank. + NewValue string `protobuf:"bytes,5,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"` } func (x *UpdateHookRequest) Reset() { @@ -416,13 +444,17 @@ func (x *UpdateHookRequest) GetNewValue() string { return "" } +// This comment is left unintentionally blank. type UpdateHookResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This comment is left unintentionally blank. + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + // This comment is left unintentionally blank. + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This comment is left unintentionally blank. ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } @@ -479,15 +511,20 @@ func (x *UpdateHookResponse) GetExitStatus() *ExitStatus { return nil } +// This comment is left unintentionally blank. type ReferenceTransactionHookRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` - Stdin []byte `protobuf:"bytes,3,opt,name=stdin,proto3" json:"stdin,omitempty"` - State ReferenceTransactionHookRequest_State `protobuf:"varint,4,opt,name=state,proto3,enum=gitaly.ReferenceTransactionHookRequest_State" json:"state,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + EnvironmentVariables []string `protobuf:"bytes,2,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty"` + // This comment is left unintentionally blank. + Stdin []byte `protobuf:"bytes,3,opt,name=stdin,proto3" json:"stdin,omitempty"` + // This comment is left unintentionally blank. + State ReferenceTransactionHookRequest_State `protobuf:"varint,4,opt,name=state,proto3,enum=gitaly.ReferenceTransactionHookRequest_State" json:"state,omitempty"` } func (x *ReferenceTransactionHookRequest) Reset() { @@ -550,13 +587,17 @@ func (x *ReferenceTransactionHookRequest) GetState() ReferenceTransactionHookReq return ReferenceTransactionHookRequest_PREPARED } +// This comment is left unintentionally blank. type ReferenceTransactionHookResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This comment is left unintentionally blank. + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + // This comment is left unintentionally blank. + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This comment is left unintentionally blank. ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` } @@ -613,11 +654,13 @@ func (x *ReferenceTransactionHookResponse) GetExitStatus() *ExitStatus { return nil } +// This comment is left unintentionally blank. type PackObjectsHookWithSidechannelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // args contains the arguments passed to the pack-objects hook, without the leading "git" Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` @@ -669,6 +712,7 @@ func (x *PackObjectsHookWithSidechannelRequest) GetArgs() []string { return nil } +// This comment is left unintentionally blank. type PackObjectsHookWithSidechannelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/proto/go/gitalypb/hook_grpc.pb.go b/proto/go/gitalypb/hook_grpc.pb.go index 8e9b0e989..a87c5f932 100644 --- a/proto/go/gitalypb/hook_grpc.pb.go +++ b/proto/go/gitalypb/hook_grpc.pb.go @@ -18,9 +18,13 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type HookServiceClient interface { + // This comment is left unintentionally blank. PreReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PreReceiveHookClient, error) + // This comment is left unintentionally blank. PostReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PostReceiveHookClient, error) + // This comment is left unintentionally blank. UpdateHook(ctx context.Context, in *UpdateHookRequest, opts ...grpc.CallOption) (HookService_UpdateHookClient, error) + // This comment is left unintentionally blank. ReferenceTransactionHook(ctx context.Context, opts ...grpc.CallOption) (HookService_ReferenceTransactionHookClient, error) // PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses // a unix socket side channel. @@ -173,9 +177,13 @@ func (c *hookServiceClient) PackObjectsHookWithSidechannel(ctx context.Context, // All implementations must embed UnimplementedHookServiceServer // for forward compatibility type HookServiceServer interface { + // This comment is left unintentionally blank. PreReceiveHook(HookService_PreReceiveHookServer) error + // This comment is left unintentionally blank. PostReceiveHook(HookService_PostReceiveHookServer) error + // This comment is left unintentionally blank. UpdateHook(*UpdateHookRequest, HookService_UpdateHookServer) error + // This comment is left unintentionally blank. ReferenceTransactionHook(HookService_ReferenceTransactionHookServer) error // PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses // a unix socket side channel. diff --git a/proto/go/gitalypb/internal.pb.go b/proto/go/gitalypb/internal.pb.go index 041fb48f1..ed3f6bcd4 100644 --- a/proto/go/gitalypb/internal.pb.go +++ b/proto/go/gitalypb/internal.pb.go @@ -21,11 +21,13 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type WalkReposRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` } @@ -68,11 +70,13 @@ func (x *WalkReposRequest) GetStorageName() string { return "" } +// This comment is left unintentionally blank. type WalkReposResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. RelativePath string `protobuf:"bytes,1,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` // modification_time is the modification time of the repository directory. // This can be used as a proxy for when the repository was last diff --git a/proto/go/gitalypb/lint.pb.go b/proto/go/gitalypb/lint.pb.go index 13c98757d..08d2ad0ae 100644 --- a/proto/go/gitalypb/lint.pb.go +++ b/proto/go/gitalypb/lint.pb.go @@ -21,12 +21,17 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type OperationMsg_Operation int32 const ( - OperationMsg_UNKNOWN OperationMsg_Operation = 0 - OperationMsg_MUTATOR OperationMsg_Operation = 1 - OperationMsg_ACCESSOR OperationMsg_Operation = 2 + // This comment is left unintentionally blank. + OperationMsg_UNKNOWN OperationMsg_Operation = 0 + // This comment is left unintentionally blank. + OperationMsg_MUTATOR OperationMsg_Operation = 1 + // This comment is left unintentionally blank. + OperationMsg_ACCESSOR OperationMsg_Operation = 2 + // This comment is left unintentionally blank. OperationMsg_MAINTENANCE OperationMsg_Operation = 3 ) @@ -73,11 +78,14 @@ func (OperationMsg_Operation) EnumDescriptor() ([]byte, []int) { return file_lint_proto_rawDescGZIP(), []int{0, 0} } +// This comment is left unintentionally blank. type OperationMsg_Scope int32 const ( + // This comment is left unintentionally blank. OperationMsg_REPOSITORY OperationMsg_Scope = 0 - OperationMsg_STORAGE OperationMsg_Scope = 2 + // This comment is left unintentionally blank. + OperationMsg_STORAGE OperationMsg_Scope = 2 ) // Enum value maps for OperationMsg_Scope. @@ -119,11 +127,13 @@ func (OperationMsg_Scope) EnumDescriptor() ([]byte, []int) { return file_lint_proto_rawDescGZIP(), []int{0, 1} } +// This comment is left unintentionally blank. type OperationMsg struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Op OperationMsg_Operation `protobuf:"varint,1,opt,name=op,proto3,enum=gitaly.OperationMsg_Operation" json:"op,omitempty"` // Scope level indicates what level an RPC interacts with a server: // - REPOSITORY: scoped to only a single repo diff --git a/proto/go/gitalypb/namespace.pb.go b/proto/go/gitalypb/namespace.pb.go index 1fb49c9c1..135661650 100644 --- a/proto/go/gitalypb/namespace.pb.go +++ b/proto/go/gitalypb/namespace.pb.go @@ -20,13 +20,16 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type AddNamespaceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } func (x *AddNamespaceRequest) Reset() { @@ -75,13 +78,16 @@ func (x *AddNamespaceRequest) GetName() string { return "" } +// This comment is left unintentionally blank. type RemoveNamespaceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } func (x *RemoveNamespaceRequest) Reset() { @@ -130,14 +136,18 @@ func (x *RemoveNamespaceRequest) GetName() string { return "" } +// This comment is left unintentionally blank. type RenameNamespaceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` + // This comment is left unintentionally blank. + From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + // This comment is left unintentionally blank. + To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` } func (x *RenameNamespaceRequest) Reset() { @@ -193,13 +203,16 @@ func (x *RenameNamespaceRequest) GetTo() string { return "" } +// This comment is left unintentionally blank. type NamespaceExistsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } func (x *NamespaceExistsRequest) Reset() { @@ -248,11 +261,13 @@ func (x *NamespaceExistsRequest) GetName() string { return "" } +// This comment is left unintentionally blank. type NamespaceExistsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` } @@ -295,6 +310,7 @@ func (x *NamespaceExistsResponse) GetExists() bool { return false } +// This comment is left unintentionally blank. type AddNamespaceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -333,6 +349,7 @@ func (*AddNamespaceResponse) Descriptor() ([]byte, []int) { return file_namespace_proto_rawDescGZIP(), []int{5} } +// This comment is left unintentionally blank. type RemoveNamespaceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -371,6 +388,7 @@ func (*RemoveNamespaceResponse) Descriptor() ([]byte, []int) { return file_namespace_proto_rawDescGZIP(), []int{6} } +// This comment is left unintentionally blank. type RenameNamespaceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/proto/go/gitalypb/namespace_grpc.pb.go b/proto/go/gitalypb/namespace_grpc.pb.go index 33ff20ee3..b7d1b33ab 100644 --- a/proto/go/gitalypb/namespace_grpc.pb.go +++ b/proto/go/gitalypb/namespace_grpc.pb.go @@ -18,9 +18,13 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type NamespaceServiceClient interface { + // This comment is left unintentionally blank. AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error) + // This comment is left unintentionally blank. RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error) + // This comment is left unintentionally blank. RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error) + // This comment is left unintentionally blank. NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error) } @@ -72,9 +76,13 @@ func (c *namespaceServiceClient) NamespaceExists(ctx context.Context, in *Namesp // All implementations must embed UnimplementedNamespaceServiceServer // for forward compatibility type NamespaceServiceServer interface { + // This comment is left unintentionally blank. AddNamespace(context.Context, *AddNamespaceRequest) (*AddNamespaceResponse, error) + // This comment is left unintentionally blank. RemoveNamespace(context.Context, *RemoveNamespaceRequest) (*RemoveNamespaceResponse, error) + // This comment is left unintentionally blank. RenameNamespace(context.Context, *RenameNamespaceRequest) (*RenameNamespaceResponse, error) + // This comment is left unintentionally blank. NamespaceExists(context.Context, *NamespaceExistsRequest) (*NamespaceExistsResponse, error) mustEmbedUnimplementedNamespaceServiceServer() } diff --git a/proto/go/gitalypb/objectpool.pb.go b/proto/go/gitalypb/objectpool.pb.go index 460cb87e8..461d6a992 100644 --- a/proto/go/gitalypb/objectpool.pb.go +++ b/proto/go/gitalypb/objectpool.pb.go @@ -27,8 +27,10 @@ type CreateObjectPoolRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` - Origin *Repository `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` + // This comment is left unintentionally blank. + Origin *Repository `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` } func (x *CreateObjectPoolRequest) Reset() { @@ -77,6 +79,7 @@ func (x *CreateObjectPoolRequest) GetOrigin() *Repository { return nil } +// This comment is left unintentionally blank. type CreateObjectPoolResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -122,6 +125,7 @@ type DeleteObjectPoolRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` } @@ -164,6 +168,7 @@ func (x *DeleteObjectPoolRequest) GetObjectPool() *ObjectPool { return nil } +// This comment is left unintentionally blank. type DeleteObjectPoolResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -202,12 +207,15 @@ func (*DeleteObjectPoolResponse) Descriptor() ([]byte, []int) { return file_objectpool_proto_rawDescGZIP(), []int{3} } +// This comment is left unintentionally blank. type LinkRepositoryToObjectPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -257,6 +265,7 @@ func (x *LinkRepositoryToObjectPoolRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type LinkRepositoryToObjectPoolResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -295,11 +304,13 @@ func (*LinkRepositoryToObjectPoolResponse) Descriptor() ([]byte, []int) { return file_objectpool_proto_rawDescGZIP(), []int{5} } +// This comment is left unintentionally blank. type ReduplicateRepositoryRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -342,6 +353,7 @@ func (x *ReduplicateRepositoryRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type ReduplicateRepositoryResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -380,11 +392,13 @@ func (*ReduplicateRepositoryResponse) Descriptor() ([]byte, []int) { return file_objectpool_proto_rawDescGZIP(), []int{7} } +// This comment is left unintentionally blank. type DisconnectGitAlternatesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -427,6 +441,7 @@ func (x *DisconnectGitAlternatesRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type DisconnectGitAlternatesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -465,14 +480,18 @@ func (*DisconnectGitAlternatesResponse) Descriptor() ([]byte, []int) { return file_objectpool_proto_rawDescGZIP(), []int{9} } +// This comment is left unintentionally blank. type FetchIntoObjectPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Origin *Repository `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` + // This comment is left unintentionally blank. + Origin *Repository `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` + // This comment is left unintentionally blank. ObjectPool *ObjectPool `protobuf:"bytes,2,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` - Repack bool `protobuf:"varint,3,opt,name=repack,proto3" json:"repack,omitempty"` + // This comment is left unintentionally blank. + Repack bool `protobuf:"varint,3,opt,name=repack,proto3" json:"repack,omitempty"` } func (x *FetchIntoObjectPoolRequest) Reset() { @@ -528,6 +547,7 @@ func (x *FetchIntoObjectPoolRequest) GetRepack() bool { return false } +// This comment is left unintentionally blank. type FetchIntoObjectPoolResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -566,11 +586,13 @@ func (*FetchIntoObjectPoolResponse) Descriptor() ([]byte, []int) { return file_objectpool_proto_rawDescGZIP(), []int{11} } +// This comment is left unintentionally blank. type GetObjectPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -613,11 +635,13 @@ func (x *GetObjectPoolRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type GetObjectPoolResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"` } diff --git a/proto/go/gitalypb/objectpool_grpc.pb.go b/proto/go/gitalypb/objectpool_grpc.pb.go index b46a4bc1c..c052d4ec3 100644 --- a/proto/go/gitalypb/objectpool_grpc.pb.go +++ b/proto/go/gitalypb/objectpool_grpc.pb.go @@ -18,13 +18,19 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ObjectPoolServiceClient interface { + // This comment is left unintentionally blank. CreateObjectPool(ctx context.Context, in *CreateObjectPoolRequest, opts ...grpc.CallOption) (*CreateObjectPoolResponse, error) + // This comment is left unintentionally blank. DeleteObjectPool(ctx context.Context, in *DeleteObjectPoolRequest, opts ...grpc.CallOption) (*DeleteObjectPoolResponse, error) // Repositories are assumed to be stored on the same disk LinkRepositoryToObjectPool(ctx context.Context, in *LinkRepositoryToObjectPoolRequest, opts ...grpc.CallOption) (*LinkRepositoryToObjectPoolResponse, error) + // This comment is left unintentionally blank. ReduplicateRepository(ctx context.Context, in *ReduplicateRepositoryRequest, opts ...grpc.CallOption) (*ReduplicateRepositoryResponse, error) + // This comment is left unintentionally blank. DisconnectGitAlternates(ctx context.Context, in *DisconnectGitAlternatesRequest, opts ...grpc.CallOption) (*DisconnectGitAlternatesResponse, error) + // This comment is left unintentionally blank. FetchIntoObjectPool(ctx context.Context, in *FetchIntoObjectPoolRequest, opts ...grpc.CallOption) (*FetchIntoObjectPoolResponse, error) + // This comment is left unintentionally blank. GetObjectPool(ctx context.Context, in *GetObjectPoolRequest, opts ...grpc.CallOption) (*GetObjectPoolResponse, error) } @@ -103,13 +109,19 @@ func (c *objectPoolServiceClient) GetObjectPool(ctx context.Context, in *GetObje // All implementations must embed UnimplementedObjectPoolServiceServer // for forward compatibility type ObjectPoolServiceServer interface { + // This comment is left unintentionally blank. CreateObjectPool(context.Context, *CreateObjectPoolRequest) (*CreateObjectPoolResponse, error) + // This comment is left unintentionally blank. DeleteObjectPool(context.Context, *DeleteObjectPoolRequest) (*DeleteObjectPoolResponse, error) // Repositories are assumed to be stored on the same disk LinkRepositoryToObjectPool(context.Context, *LinkRepositoryToObjectPoolRequest) (*LinkRepositoryToObjectPoolResponse, error) + // This comment is left unintentionally blank. ReduplicateRepository(context.Context, *ReduplicateRepositoryRequest) (*ReduplicateRepositoryResponse, error) + // This comment is left unintentionally blank. DisconnectGitAlternates(context.Context, *DisconnectGitAlternatesRequest) (*DisconnectGitAlternatesResponse, error) + // This comment is left unintentionally blank. FetchIntoObjectPool(context.Context, *FetchIntoObjectPoolRequest) (*FetchIntoObjectPoolResponse, error) + // This comment is left unintentionally blank. GetObjectPool(context.Context, *GetObjectPoolRequest) (*GetObjectPoolResponse, error) mustEmbedUnimplementedObjectPoolServiceServer() } diff --git a/proto/go/gitalypb/operations.pb.go b/proto/go/gitalypb/operations.pb.go index 0ec200180..5131a8573 100644 --- a/proto/go/gitalypb/operations.pb.go +++ b/proto/go/gitalypb/operations.pb.go @@ -131,6 +131,7 @@ func (UserRevertResponse_CreateTreeError) EnumDescriptor() ([]byte, []int) { return file_operations_proto_rawDescGZIP(), []int{22, 0} } +// This comment is left unintentionally blank. type UserCommitFilesActionHeader_ActionType int32 const ( @@ -195,15 +196,20 @@ func (UserCommitFilesActionHeader_ActionType) EnumDescriptor() ([]byte, []int) { return file_operations_proto_rawDescGZIP(), []int{23, 0} } +// This comment is left unintentionally blank. type UserCreateBranchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` - StartPoint []byte `protobuf:"bytes,4,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` + // This comment is left unintentionally blank. + BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + // This comment is left unintentionally blank. + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + // This comment is left unintentionally blank. + StartPoint []byte `protobuf:"bytes,4,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` } func (x *UserCreateBranchRequest) Reset() { @@ -266,11 +272,13 @@ func (x *UserCreateBranchRequest) GetStartPoint() []byte { return nil } +// This comment is left unintentionally blank. type UserCreateBranchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Branch *Branch `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` // Error returned by the pre-receive hook. If no error was thrown, // it's the empty string ("") @@ -323,16 +331,22 @@ func (x *UserCreateBranchResponse) GetPreReceiveError() string { return "" } +// This comment is left unintentionally blank. type UserUpdateBranchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` - Newrev []byte `protobuf:"bytes,4,opt,name=newrev,proto3" json:"newrev,omitempty"` - Oldrev []byte `protobuf:"bytes,5,opt,name=oldrev,proto3" json:"oldrev,omitempty"` + // This comment is left unintentionally blank. + BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + // This comment is left unintentionally blank. + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + // This comment is left unintentionally blank. + Newrev []byte `protobuf:"bytes,4,opt,name=newrev,proto3" json:"newrev,omitempty"` + // This comment is left unintentionally blank. + Oldrev []byte `protobuf:"bytes,5,opt,name=oldrev,proto3" json:"oldrev,omitempty"` } func (x *UserUpdateBranchRequest) Reset() { @@ -402,11 +416,13 @@ func (x *UserUpdateBranchRequest) GetOldrev() []byte { return nil } +// This comment is left unintentionally blank. type UserUpdateBranchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } @@ -449,14 +465,18 @@ func (x *UserUpdateBranchResponse) GetPreReceiveError() string { return "" } +// This comment is left unintentionally blank. type UserDeleteBranchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + // This comment is left unintentionally blank. + BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + // This comment is left unintentionally blank. + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` } func (x *UserDeleteBranchRequest) Reset() { @@ -512,11 +532,13 @@ func (x *UserDeleteBranchRequest) GetUser() *User { return nil } +// This comment is left unintentionally blank. type UserDeleteBranchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } @@ -559,14 +581,18 @@ func (x *UserDeleteBranchResponse) GetPreReceiveError() string { return "" } +// This comment is left unintentionally blank. type UserDeleteTagRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + // This comment is left unintentionally blank. + TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` + // This comment is left unintentionally blank. + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` } func (x *UserDeleteTagRequest) Reset() { @@ -622,11 +648,13 @@ func (x *UserDeleteTagRequest) GetUser() *User { return nil } +// This comment is left unintentionally blank. type UserDeleteTagResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } @@ -669,6 +697,7 @@ func (x *UserDeleteTagResponse) GetPreReceiveError() string { return "" } +// This comment is left unintentionally blank. type UserCreateTagRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -765,6 +794,7 @@ func (x *UserCreateTagRequest) GetTimestamp() *timestamppb.Timestamp { return nil } +// This comment is left unintentionally blank. type UserCreateTagResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -832,6 +862,7 @@ func (x *UserCreateTagResponse) GetPreReceiveError() string { return "" } +// This comment is left unintentionally blank. type UserMergeBranchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -940,6 +971,7 @@ func (x *UserMergeBranchRequest) GetApply() bool { return false } +// This comment is left unintentionally blank. type UserMergeBranchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1097,6 +1129,7 @@ func (*UserMergeBranchError_AccessCheck) isUserMergeBranchError_Error() {} func (*UserMergeBranchError_ReferenceUpdate) isUserMergeBranchError_Error() {} +// This comment is left unintentionally blank. type UserMergeToRefRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1225,6 +1258,7 @@ func (x *UserMergeToRefRequest) GetTimestamp() *timestamppb.Timestamp { return nil } +// This comment is left unintentionally blank. type UserMergeToRefResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1434,13 +1468,16 @@ func (x *UserFFBranchRequest) GetBranch() []byte { return nil } +// This comment is left unintentionally blank. type UserFFBranchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` - PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` + // This comment is left unintentionally blank. + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"` + // This comment is left unintentionally blank. + PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"` } func (x *UserFFBranchResponse) Reset() { @@ -1489,6 +1526,7 @@ func (x *UserFFBranchResponse) GetPreReceiveError() string { return "" } +// This comment is left unintentionally blank. type UserCherryPickRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1616,6 +1654,7 @@ func (x *UserCherryPickRequest) GetTimestamp() *timestamppb.Timestamp { return nil } +// This comment is left unintentionally blank. type UserCherryPickResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1823,6 +1862,7 @@ func (*UserCherryPickError_ChangesAlreadyApplied) isUserCherryPickError_Error() func (*UserCherryPickError_AccessCheck) isUserCherryPickError_Error() {} +// This comment is left unintentionally blank. type UserRevertRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1949,6 +1989,7 @@ func (x *UserRevertRequest) GetTimestamp() *timestamppb.Timestamp { return nil } +// This comment is left unintentionally blank. type UserRevertResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2528,6 +2569,7 @@ func (x *UserCommitFilesResponse) GetPreReceiveError() string { return "" } +// This comment is left unintentionally blank. type UserRebaseConfirmableRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2614,6 +2656,7 @@ func (*UserRebaseConfirmableRequest_Header_) isUserRebaseConfirmableRequest_User func (*UserRebaseConfirmableRequest_Apply) isUserRebaseConfirmableRequest_UserRebaseConfirmableRequestPayload() { } +// This comment is left unintentionally blank. type UserRebaseConfirmableResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2719,6 +2762,7 @@ func (*UserRebaseConfirmableResponse_RebaseSha) isUserRebaseConfirmableResponse_ func (*UserRebaseConfirmableResponse_RebaseApplied) isUserRebaseConfirmableResponse_UserRebaseConfirmableResponsePayload() { } +// This comment is left unintentionally blank. type UserSquashRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2825,6 +2869,7 @@ func (x *UserSquashRequest) GetTimestamp() *timestamppb.Timestamp { return nil } +// This comment is left unintentionally blank. type UserSquashResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2887,6 +2932,7 @@ func (x *UserSquashResponse) GetGitError() string { return "" } +// This comment is left unintentionally blank. type UserRebaseConfirmableError struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3057,6 +3103,7 @@ func (*UserSquashError_ResolveRevision) isUserSquashError_Error() {} func (*UserSquashError_RebaseConflict) isUserSquashError_Error() {} +// This comment is left unintentionally blank. type UserApplyPatchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3140,6 +3187,7 @@ func (*UserApplyPatchRequest_Header_) isUserApplyPatchRequest_UserApplyPatchRequ func (*UserApplyPatchRequest_Patches) isUserApplyPatchRequest_UserApplyPatchRequestPayload() {} +// This comment is left unintentionally blank. type UserApplyPatchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3188,6 +3236,7 @@ func (x *UserApplyPatchResponse) GetBranchUpdate() *OperationBranchUpdate { return nil } +// This comment is left unintentionally blank. type UserUpdateSubmoduleRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3294,6 +3343,7 @@ func (x *UserUpdateSubmoduleRequest) GetTimestamp() *timestamppb.Timestamp { return nil } +// This comment is left unintentionally blank. type UserUpdateSubmoduleResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/proto/go/gitalypb/operations_grpc.pb.go b/proto/go/gitalypb/operations_grpc.pb.go index 45c083841..a1db433bc 100644 --- a/proto/go/gitalypb/operations_grpc.pb.go +++ b/proto/go/gitalypb/operations_grpc.pb.go @@ -18,11 +18,15 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type OperationServiceClient interface { + // This comment is left unintentionally blank. UserCreateBranch(ctx context.Context, in *UserCreateBranchRequest, opts ...grpc.CallOption) (*UserCreateBranchResponse, error) + // This comment is left unintentionally blank. UserUpdateBranch(ctx context.Context, in *UserUpdateBranchRequest, opts ...grpc.CallOption) (*UserUpdateBranchResponse, error) + // This comment is left unintentionally blank. UserDeleteBranch(ctx context.Context, in *UserDeleteBranchRequest, opts ...grpc.CallOption) (*UserDeleteBranchResponse, error) // UserCreateTag creates a new tag. UserCreateTag(ctx context.Context, in *UserCreateTagRequest, opts ...grpc.CallOption) (*UserCreateTagResponse, error) + // This comment is left unintentionally blank. UserDeleteTag(ctx context.Context, in *UserDeleteTagRequest, opts ...grpc.CallOption) (*UserDeleteTagResponse, error) // UserMergeRef creates a merge commit and updates target_ref to point to that // new commit. The first parent of the merge commit (the main line) is taken @@ -316,11 +320,15 @@ func (c *operationServiceClient) UserUpdateSubmodule(ctx context.Context, in *Us // All implementations must embed UnimplementedOperationServiceServer // for forward compatibility type OperationServiceServer interface { + // This comment is left unintentionally blank. UserCreateBranch(context.Context, *UserCreateBranchRequest) (*UserCreateBranchResponse, error) + // This comment is left unintentionally blank. UserUpdateBranch(context.Context, *UserUpdateBranchRequest) (*UserUpdateBranchResponse, error) + // This comment is left unintentionally blank. UserDeleteBranch(context.Context, *UserDeleteBranchRequest) (*UserDeleteBranchResponse, error) // UserCreateTag creates a new tag. UserCreateTag(context.Context, *UserCreateTagRequest) (*UserCreateTagResponse, error) + // This comment is left unintentionally blank. UserDeleteTag(context.Context, *UserDeleteTagRequest) (*UserDeleteTagResponse, error) // UserMergeRef creates a merge commit and updates target_ref to point to that // new commit. The first parent of the merge commit (the main line) is taken diff --git a/proto/go/gitalypb/praefect.pb.go b/proto/go/gitalypb/praefect.pb.go index dc5cab186..198bb6ff8 100644 --- a/proto/go/gitalypb/praefect.pb.go +++ b/proto/go/gitalypb/praefect.pb.go @@ -473,13 +473,17 @@ func (x *SetReplicationFactorResponse) GetStorages() []string { return nil } +// This comment is left unintentionally blank. type SetAuthoritativeStorageRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - VirtualStorage string `protobuf:"bytes,1,opt,name=virtual_storage,json=virtualStorage,proto3" json:"virtual_storage,omitempty"` - RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` + // This comment is left unintentionally blank. + VirtualStorage string `protobuf:"bytes,1,opt,name=virtual_storage,json=virtualStorage,proto3" json:"virtual_storage,omitempty"` + // This comment is left unintentionally blank. + RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` + // This comment is left unintentionally blank. AuthoritativeStorage string `protobuf:"bytes,3,opt,name=authoritative_storage,json=authoritativeStorage,proto3" json:"authoritative_storage,omitempty"` } @@ -536,6 +540,7 @@ func (x *SetAuthoritativeStorageRequest) GetAuthoritativeStorage() string { return "" } +// This comment is left unintentionally blank. type SetAuthoritativeStorageResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -574,11 +579,13 @@ func (*SetAuthoritativeStorageResponse) Descriptor() ([]byte, []int) { return file_praefect_proto_rawDescGZIP(), []int{7} } +// This comment is left unintentionally blank. type DatalossCheckRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. VirtualStorage string `protobuf:"bytes,1,opt,name=virtual_storage,json=virtualStorage,proto3" json:"virtual_storage,omitempty"` // include_partially_unavailable indicates whether to include repositories which are available but // are unavailable on some assigned storages. @@ -631,6 +638,7 @@ func (x *DatalossCheckRequest) GetIncludePartiallyReplicated() bool { return false } +// This comment is left unintentionally blank. type DatalossCheckResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -679,11 +687,13 @@ func (x *DatalossCheckResponse) GetRepositories() []*DatalossCheckResponse_Repos return nil } +// This comment is left unintentionally blank. type RepositoryReplicasRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -726,12 +736,15 @@ func (x *RepositoryReplicasRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type RepositoryReplicasResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Primary *RepositoryReplicasResponse_RepositoryDetails `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"` + // This comment is left unintentionally blank. + Primary *RepositoryReplicasResponse_RepositoryDetails `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"` + // This comment is left unintentionally blank. Replicas []*RepositoryReplicasResponse_RepositoryDetails `protobuf:"bytes,2,rep,name=replicas,proto3" json:"replicas,omitempty"` } @@ -839,6 +852,7 @@ func (x *MarkUnverifiedRequest_Storage) GetStorage() string { return "" } +// This comment is left unintentionally blank. type GetRepositoryMetadataRequest_Path struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -896,6 +910,7 @@ func (x *GetRepositoryMetadataRequest_Path) GetRelativePath() string { return "" } +// This comment is left unintentionally blank. type GetRepositoryMetadataResponse_Replica struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -990,6 +1005,7 @@ func (x *GetRepositoryMetadataResponse_Replica) GetVerifiedAt() *timestamppb.Tim return nil } +// This comment is left unintentionally blank. type DatalossCheckResponse_Repository struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1065,6 +1081,7 @@ func (x *DatalossCheckResponse_Repository) GetPrimary() string { return "" } +// This comment is left unintentionally blank. type DatalossCheckResponse_Repository_Storage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1149,13 +1166,16 @@ func (x *DatalossCheckResponse_Repository_Storage) GetValidPrimary() bool { return false } +// This comment is left unintentionally blank. type RepositoryReplicasResponse_RepositoryDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"` + // This comment is left unintentionally blank. + Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"` } func (x *RepositoryReplicasResponse_RepositoryDetails) Reset() { diff --git a/proto/go/gitalypb/praefect_grpc.pb.go b/proto/go/gitalypb/praefect_grpc.pb.go index b01e699f6..d1e45fa50 100644 --- a/proto/go/gitalypb/praefect_grpc.pb.go +++ b/proto/go/gitalypb/praefect_grpc.pb.go @@ -18,6 +18,7 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type PraefectInfoServiceClient interface { + // This comment is left unintentionally blank. RepositoryReplicas(ctx context.Context, in *RepositoryReplicasRequest, opts ...grpc.CallOption) (*RepositoryReplicasResponse, error) // DatalossCheck checks for unavailable repositories. DatalossCheck(ctx context.Context, in *DatalossCheckRequest, opts ...grpc.CallOption) (*DatalossCheckResponse, error) @@ -107,6 +108,7 @@ func (c *praefectInfoServiceClient) GetRepositoryMetadata(ctx context.Context, i // All implementations must embed UnimplementedPraefectInfoServiceServer // for forward compatibility type PraefectInfoServiceServer interface { + // This comment is left unintentionally blank. RepositoryReplicas(context.Context, *RepositoryReplicasRequest) (*RepositoryReplicasResponse, error) // DatalossCheck checks for unavailable repositories. DatalossCheck(context.Context, *DatalossCheckRequest) (*DatalossCheckResponse, error) diff --git a/proto/go/gitalypb/ref.pb.go b/proto/go/gitalypb/ref.pb.go index 8b2ad1fe1..536f61ff2 100644 --- a/proto/go/gitalypb/ref.pb.go +++ b/proto/go/gitalypb/ref.pb.go @@ -21,11 +21,15 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type FindLocalBranchesRequest_SortBy int32 const ( - FindLocalBranchesRequest_NAME FindLocalBranchesRequest_SortBy = 0 - FindLocalBranchesRequest_UPDATED_ASC FindLocalBranchesRequest_SortBy = 1 + // This comment is left unintentionally blank. + FindLocalBranchesRequest_NAME FindLocalBranchesRequest_SortBy = 0 + // This comment is left unintentionally blank. + FindLocalBranchesRequest_UPDATED_ASC FindLocalBranchesRequest_SortBy = 1 + // This comment is left unintentionally blank. FindLocalBranchesRequest_UPDATED_DESC FindLocalBranchesRequest_SortBy = 2 ) @@ -74,7 +78,9 @@ func (FindLocalBranchesRequest_SortBy) EnumDescriptor() ([]byte, []int) { type FindAllTagsRequest_SortBy_Key int32 const ( - FindAllTagsRequest_SortBy_REFNAME FindAllTagsRequest_SortBy_Key = 0 + // This comment is left unintentionally blank. + FindAllTagsRequest_SortBy_REFNAME FindAllTagsRequest_SortBy_Key = 0 + // This comment is left unintentionally blank. FindAllTagsRequest_SortBy_CREATORDATE FindAllTagsRequest_SortBy_Key = 1 ) @@ -117,12 +123,17 @@ func (FindAllTagsRequest_SortBy_Key) EnumDescriptor() ([]byte, []int) { return file_ref_proto_rawDescGZIP(), []int{14, 0, 0} } +// This comment is left unintentionally blank. type CreateBranchResponse_Status int32 const ( - CreateBranchResponse_OK CreateBranchResponse_Status = 0 - CreateBranchResponse_ERR_EXISTS CreateBranchResponse_Status = 1 - CreateBranchResponse_ERR_INVALID CreateBranchResponse_Status = 2 + // This comment is left unintentionally blank. + CreateBranchResponse_OK CreateBranchResponse_Status = 0 + // This comment is left unintentionally blank. + CreateBranchResponse_ERR_EXISTS CreateBranchResponse_Status = 1 + // This comment is left unintentionally blank. + CreateBranchResponse_ERR_INVALID CreateBranchResponse_Status = 2 + // This comment is left unintentionally blank. CreateBranchResponse_ERR_INVALID_START_POINT CreateBranchResponse_Status = 3 ) @@ -169,12 +180,17 @@ func (CreateBranchResponse_Status) EnumDescriptor() ([]byte, []int) { return file_ref_proto_rawDescGZIP(), []int{19, 0} } +// This comment is left unintentionally blank. type ListRefsRequest_SortBy_Key int32 const ( - ListRefsRequest_SortBy_REFNAME ListRefsRequest_SortBy_Key = 0 - ListRefsRequest_SortBy_CREATORDATE ListRefsRequest_SortBy_Key = 1 - ListRefsRequest_SortBy_AUTHORDATE ListRefsRequest_SortBy_Key = 2 + // This comment is left unintentionally blank. + ListRefsRequest_SortBy_REFNAME ListRefsRequest_SortBy_Key = 0 + // This comment is left unintentionally blank. + ListRefsRequest_SortBy_CREATORDATE ListRefsRequest_SortBy_Key = 1 + // This comment is left unintentionally blank. + ListRefsRequest_SortBy_AUTHORDATE ListRefsRequest_SortBy_Key = 2 + // This comment is left unintentionally blank. ListRefsRequest_SortBy_COMMITTERDATE ListRefsRequest_SortBy_Key = 3 ) @@ -221,11 +237,13 @@ func (ListRefsRequest_SortBy_Key) EnumDescriptor() ([]byte, []int) { return file_ref_proto_rawDescGZIP(), []int{38, 0, 0} } +// This comment is left unintentionally blank. type FindDefaultBranchNameRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -268,11 +286,13 @@ func (x *FindDefaultBranchNameRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type FindDefaultBranchNameResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } @@ -315,11 +335,13 @@ func (x *FindDefaultBranchNameResponse) GetName() []byte { return nil } +// This comment is left unintentionally blank. type FindAllBranchNamesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -362,11 +384,13 @@ func (x *FindAllBranchNamesRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type FindAllBranchNamesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` } @@ -409,11 +433,13 @@ func (x *FindAllBranchNamesResponse) GetNames() [][]byte { return nil } +// This comment is left unintentionally blank. type FindAllTagNamesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -456,11 +482,13 @@ func (x *FindAllTagNamesRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type FindAllTagNamesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` } @@ -503,13 +531,16 @@ func (x *FindAllTagNamesResponse) GetNames() [][]byte { return nil } +// This comment is left unintentionally blank. type FindLocalBranchesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - SortBy FindLocalBranchesRequest_SortBy `protobuf:"varint,2,opt,name=sort_by,json=sortBy,proto3,enum=gitaly.FindLocalBranchesRequest_SortBy" json:"sort_by,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + SortBy FindLocalBranchesRequest_SortBy `protobuf:"varint,2,opt,name=sort_by,json=sortBy,proto3,enum=gitaly.FindLocalBranchesRequest_SortBy" json:"sort_by,omitempty"` // The page token is the branch name, with the `refs/heads/` prefix, for // example "refs/heads/master". After the first branch name is encountered // which lexicographically exceeds the page token, it will be the first result @@ -570,11 +601,13 @@ func (x *FindLocalBranchesRequest) GetPaginationParams() *PaginationParameter { return nil } +// This comment is left unintentionally blank. type FindLocalBranchesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Branches []*FindLocalBranchResponse `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` } @@ -617,17 +650,24 @@ func (x *FindLocalBranchesResponse) GetBranches() []*FindLocalBranchResponse { return nil } +// This comment is left unintentionally blank. type FindLocalBranchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` - CommitSubject []byte `protobuf:"bytes,3,opt,name=commit_subject,json=commitSubject,proto3" json:"commit_subject,omitempty"` - CommitAuthor *FindLocalBranchCommitAuthor `protobuf:"bytes,4,opt,name=commit_author,json=commitAuthor,proto3" json:"commit_author,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + // This comment is left unintentionally blank. + CommitSubject []byte `protobuf:"bytes,3,opt,name=commit_subject,json=commitSubject,proto3" json:"commit_subject,omitempty"` + // This comment is left unintentionally blank. + CommitAuthor *FindLocalBranchCommitAuthor `protobuf:"bytes,4,opt,name=commit_author,json=commitAuthor,proto3" json:"commit_author,omitempty"` + // This comment is left unintentionally blank. CommitCommitter *FindLocalBranchCommitAuthor `protobuf:"bytes,5,opt,name=commit_committer,json=commitCommitter,proto3" json:"commit_committer,omitempty"` - Commit *GitCommit `protobuf:"bytes,6,opt,name=commit,proto3" json:"commit,omitempty"` + // This comment is left unintentionally blank. + Commit *GitCommit `protobuf:"bytes,6,opt,name=commit,proto3" json:"commit,omitempty"` } func (x *FindLocalBranchResponse) Reset() { @@ -704,15 +744,20 @@ func (x *FindLocalBranchResponse) GetCommit() *GitCommit { return nil } +// This comment is left unintentionally blank. type FindLocalBranchCommitAuthor struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Date *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` - Timezone []byte `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + // This comment is left unintentionally blank. + Date *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` + // This comment is left unintentionally blank. + Timezone []byte `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"` } func (x *FindLocalBranchCommitAuthor) Reset() { @@ -775,11 +820,13 @@ func (x *FindLocalBranchCommitAuthor) GetTimezone() []byte { return nil } +// This comment is left unintentionally blank. type FindAllBranchesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Only return branches that are merged into root ref MergedOnly bool `protobuf:"varint,2,opt,name=merged_only,json=mergedOnly,proto3" json:"merged_only,omitempty"` @@ -841,11 +888,13 @@ func (x *FindAllBranchesRequest) GetMergedBranches() [][]byte { return nil } +// This comment is left unintentionally blank. type FindAllBranchesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Branches []*FindAllBranchesResponse_Branch `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` } @@ -888,13 +937,16 @@ func (x *FindAllBranchesResponse) GetBranches() []*FindAllBranchesResponse_Branc return nil } +// This comment is left unintentionally blank. type FindTagRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` + // This comment is left unintentionally blank. + TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` } func (x *FindTagRequest) Reset() { @@ -943,11 +995,13 @@ func (x *FindTagRequest) GetTagName() []byte { return nil } +// This comment is left unintentionally blank. type FindTagResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` } @@ -990,11 +1044,13 @@ func (x *FindTagResponse) GetTag() *Tag { return nil } +// This comment is left unintentionally blank. type FindAllTagsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // SortBy allows to request tags in particular order. SortBy *FindAllTagsRequest_SortBy `protobuf:"bytes,2,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` @@ -1057,11 +1113,13 @@ func (x *FindAllTagsRequest) GetPaginationParams() *PaginationParameter { return nil } +// This comment is left unintentionally blank. type FindAllTagsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Tags []*Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` } @@ -1104,11 +1162,13 @@ func (x *FindAllTagsResponse) GetTags() []*Tag { return nil } +// This comment is left unintentionally blank. type RefExistsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Any ref, e.g. 'refs/heads/master' or 'refs/tags/v1.0.1'. Must start with 'refs/'. Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` @@ -1160,11 +1220,13 @@ func (x *RefExistsRequest) GetRef() []byte { return nil } +// This comment is left unintentionally blank. type RefExistsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } @@ -1207,14 +1269,18 @@ func (x *RefExistsResponse) GetValue() bool { return false } +// This comment is left unintentionally blank. type CreateBranchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - StartPoint []byte `protobuf:"bytes,3,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + StartPoint []byte `protobuf:"bytes,3,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` } func (x *CreateBranchRequest) Reset() { @@ -1270,13 +1336,16 @@ func (x *CreateBranchRequest) GetStartPoint() []byte { return nil } +// This comment is left unintentionally blank. type CreateBranchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Status CreateBranchResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gitaly.CreateBranchResponse_Status" json:"status,omitempty"` - Branch *Branch `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"` + // This comment is left unintentionally blank. + Branch *Branch `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"` } func (x *CreateBranchResponse) Reset() { @@ -1325,13 +1394,16 @@ func (x *CreateBranchResponse) GetBranch() *Branch { return nil } +// This comment is left unintentionally blank. type DeleteBranchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } func (x *DeleteBranchRequest) Reset() { @@ -1419,6 +1491,7 @@ func (*DeleteBranchResponse) Descriptor() ([]byte, []int) { return file_ref_proto_rawDescGZIP(), []int{21} } +// This comment is left unintentionally blank. type FindBranchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1477,11 +1550,13 @@ func (x *FindBranchRequest) GetName() []byte { return nil } +// This comment is left unintentionally blank. type FindBranchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Branch *Branch `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` } @@ -1524,15 +1599,18 @@ func (x *FindBranchResponse) GetBranch() *Branch { return nil } +// This comment is left unintentionally blank. type DeleteRefsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // The following two fields are mutually exclusive ExceptWithPrefix [][]byte `protobuf:"bytes,2,rep,name=except_with_prefix,json=exceptWithPrefix,proto3" json:"except_with_prefix,omitempty"` // protolint:disable:this REPEATED_FIELD_NAMES_PLURALIZED - Refs [][]byte `protobuf:"bytes,3,rep,name=refs,proto3" json:"refs,omitempty"` + // This comment is left unintentionally blank. + Refs [][]byte `protobuf:"bytes,3,rep,name=refs,proto3" json:"refs,omitempty"` } func (x *DeleteRefsRequest) Reset() { @@ -1588,11 +1666,13 @@ func (x *DeleteRefsRequest) GetRefs() [][]byte { return nil } +// This comment is left unintentionally blank. type DeleteRefsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. GitError string `protobuf:"bytes,1,opt,name=git_error,json=gitError,proto3" json:"git_error,omitempty"` } @@ -1635,13 +1715,16 @@ func (x *DeleteRefsResponse) GetGitError() string { return "" } +// This comment is left unintentionally blank. type ListBranchNamesContainingCommitRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + // This comment is left unintentionally blank. + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // Limit the number of tag names to be returned // If the limit is set to zero, all items will be returned Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` @@ -1700,11 +1783,13 @@ func (x *ListBranchNamesContainingCommitRequest) GetLimit() uint32 { return 0 } +// This comment is left unintentionally blank. type ListBranchNamesContainingCommitResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. BranchNames [][]byte `protobuf:"bytes,2,rep,name=branch_names,json=branchNames,proto3" json:"branch_names,omitempty"` } @@ -1747,13 +1832,16 @@ func (x *ListBranchNamesContainingCommitResponse) GetBranchNames() [][]byte { return nil } +// This comment is left unintentionally blank. type ListTagNamesContainingCommitRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + // This comment is left unintentionally blank. + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // Limit the number of tag names to be returned // If the limit is set to zero, all items will be returned Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` @@ -1812,11 +1900,13 @@ func (x *ListTagNamesContainingCommitRequest) GetLimit() uint32 { return 0 } +// This comment is left unintentionally blank. type ListTagNamesContainingCommitResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. TagNames [][]byte `protobuf:"bytes,2,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"` } @@ -1970,13 +2060,16 @@ func (x *GetTagSignaturesResponse) GetSignatures() []*GetTagSignaturesResponse_T return nil } +// This comment is left unintentionally blank. type GetTagMessagesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - TagIds []string `protobuf:"bytes,3,rep,name=tag_ids,json=tagIds,proto3" json:"tag_ids,omitempty"` + // This comment is left unintentionally blank. + TagIds []string `protobuf:"bytes,3,rep,name=tag_ids,json=tagIds,proto3" json:"tag_ids,omitempty"` } func (x *GetTagMessagesRequest) Reset() { @@ -2025,11 +2118,13 @@ func (x *GetTagMessagesRequest) GetTagIds() []string { return nil } +// This comment is left unintentionally blank. type GetTagMessagesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Only present for a new tag message TagId string `protobuf:"bytes,3,opt,name=tag_id,json=tagId,proto3" json:"tag_id,omitempty"` @@ -2081,13 +2176,16 @@ func (x *GetTagMessagesResponse) GetTagId() string { return "" } +// This comment is left unintentionally blank. type FindAllRemoteBranchesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - RemoteName string `protobuf:"bytes,2,opt,name=remote_name,json=remoteName,proto3" json:"remote_name,omitempty"` + // This comment is left unintentionally blank. + RemoteName string `protobuf:"bytes,2,opt,name=remote_name,json=remoteName,proto3" json:"remote_name,omitempty"` } func (x *FindAllRemoteBranchesRequest) Reset() { @@ -2136,11 +2234,13 @@ func (x *FindAllRemoteBranchesRequest) GetRemoteName() string { return "" } +// This comment is left unintentionally blank. type FindAllRemoteBranchesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Branches []*Branch `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` } @@ -2183,11 +2283,13 @@ func (x *FindAllRemoteBranchesResponse) GetBranches() []*Branch { return nil } +// This comment is left unintentionally blank. type PackRefsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -2230,6 +2332,7 @@ func (x *PackRefsRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type PackRefsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2397,6 +2500,7 @@ func (x *ListRefsResponse) GetReferences() []*ListRefsResponse_Reference { return nil } +// This comment is left unintentionally blank. type FindRefsByOIDRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2484,6 +2588,7 @@ func (x *FindRefsByOIDRequest) GetLimit() uint32 { return 0 } +// This comment is left unintentionally blank. type FindRefsByOIDResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2532,12 +2637,15 @@ func (x *FindRefsByOIDResponse) GetRefs() []string { return nil } +// This comment is left unintentionally blank. type FindAllBranchesResponse_Branch struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. Target *GitCommit `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` } @@ -2593,8 +2701,10 @@ type FindAllTagsRequest_SortBy struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key FindAllTagsRequest_SortBy_Key `protobuf:"varint,1,opt,name=key,proto3,enum=gitaly.FindAllTagsRequest_SortBy_Key" json:"key,omitempty"` - Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gitaly.SortDirection" json:"direction,omitempty"` + // This comment is left unintentionally blank. + Key FindAllTagsRequest_SortBy_Key `protobuf:"varint,1,opt,name=key,proto3,enum=gitaly.FindAllTagsRequest_SortBy_Key" json:"key,omitempty"` + // This comment is left unintentionally blank. + Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gitaly.SortDirection" json:"direction,omitempty"` } func (x *FindAllTagsRequest_SortBy) Reset() { @@ -2713,14 +2823,16 @@ func (x *GetTagSignaturesResponse_TagSignature) GetContent() []byte { return nil } +// This comment is left unintentionally blank. type ListRefsRequest_SortBy struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Key is a key used for sorting. - Key ListRefsRequest_SortBy_Key `protobuf:"varint,1,opt,name=key,proto3,enum=gitaly.ListRefsRequest_SortBy_Key" json:"key,omitempty"` - Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gitaly.SortDirection" json:"direction,omitempty"` + Key ListRefsRequest_SortBy_Key `protobuf:"varint,1,opt,name=key,proto3,enum=gitaly.ListRefsRequest_SortBy_Key" json:"key,omitempty"` + // This comment is left unintentionally blank. + Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gitaly.SortDirection" json:"direction,omitempty"` } func (x *ListRefsRequest_SortBy) Reset() { diff --git a/proto/go/gitalypb/ref_grpc.pb.go b/proto/go/gitalypb/ref_grpc.pb.go index 825002030..5d9f4a540 100644 --- a/proto/go/gitalypb/ref_grpc.pb.go +++ b/proto/go/gitalypb/ref_grpc.pb.go @@ -18,28 +18,39 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type RefServiceClient interface { + // This comment is left unintentionally blank. FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) + // This comment is left unintentionally blank. FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error) + // This comment is left unintentionally blank. FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, error) // Return a stream so we can divide the response in chunks of branches FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (RefService_FindLocalBranchesClient, error) + // This comment is left unintentionally blank. FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error) // Returns a stream of tags repository has. FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error) + // This comment is left unintentionally blank. FindTag(ctx context.Context, in *FindTagRequest, opts ...grpc.CallOption) (*FindTagResponse, error) + // This comment is left unintentionally blank. FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error) + // This comment is left unintentionally blank. RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error) // FindBranch finds a branch by its unqualified name (like "master") and // returns the commit it currently points to. FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error) + // This comment is left unintentionally blank. DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error) + // This comment is left unintentionally blank. ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error) + // This comment is left unintentionally blank. ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error) // GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions // which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved // result in an error. Tags which are annotated but not signed will return a TagSignature response // which has no signature, but its unsigned contents will still be returned. GetTagSignatures(ctx context.Context, in *GetTagSignaturesRequest, opts ...grpc.CallOption) (RefService_GetTagSignaturesClient, error) + // This comment is left unintentionally blank. GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error) // Deprecated: Do not use. // PackRefs is deprecated in favor of OptimizeRepository. @@ -482,28 +493,39 @@ func (c *refServiceClient) FindRefsByOID(ctx context.Context, in *FindRefsByOIDR // All implementations must embed UnimplementedRefServiceServer // for forward compatibility type RefServiceServer interface { + // This comment is left unintentionally blank. FindDefaultBranchName(context.Context, *FindDefaultBranchNameRequest) (*FindDefaultBranchNameResponse, error) + // This comment is left unintentionally blank. FindAllBranchNames(*FindAllBranchNamesRequest, RefService_FindAllBranchNamesServer) error + // This comment is left unintentionally blank. FindAllTagNames(*FindAllTagNamesRequest, RefService_FindAllTagNamesServer) error // Return a stream so we can divide the response in chunks of branches FindLocalBranches(*FindLocalBranchesRequest, RefService_FindLocalBranchesServer) error + // This comment is left unintentionally blank. FindAllBranches(*FindAllBranchesRequest, RefService_FindAllBranchesServer) error // Returns a stream of tags repository has. FindAllTags(*FindAllTagsRequest, RefService_FindAllTagsServer) error + // This comment is left unintentionally blank. FindTag(context.Context, *FindTagRequest) (*FindTagResponse, error) + // This comment is left unintentionally blank. FindAllRemoteBranches(*FindAllRemoteBranchesRequest, RefService_FindAllRemoteBranchesServer) error + // This comment is left unintentionally blank. RefExists(context.Context, *RefExistsRequest) (*RefExistsResponse, error) // FindBranch finds a branch by its unqualified name (like "master") and // returns the commit it currently points to. FindBranch(context.Context, *FindBranchRequest) (*FindBranchResponse, error) + // This comment is left unintentionally blank. DeleteRefs(context.Context, *DeleteRefsRequest) (*DeleteRefsResponse, error) + // This comment is left unintentionally blank. ListBranchNamesContainingCommit(*ListBranchNamesContainingCommitRequest, RefService_ListBranchNamesContainingCommitServer) error + // This comment is left unintentionally blank. ListTagNamesContainingCommit(*ListTagNamesContainingCommitRequest, RefService_ListTagNamesContainingCommitServer) error // GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions // which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved // result in an error. Tags which are annotated but not signed will return a TagSignature response // which has no signature, but its unsigned contents will still be returned. GetTagSignatures(*GetTagSignaturesRequest, RefService_GetTagSignaturesServer) error + // This comment is left unintentionally blank. GetTagMessages(*GetTagMessagesRequest, RefService_GetTagMessagesServer) error // Deprecated: Do not use. // PackRefs is deprecated in favor of OptimizeRepository. diff --git a/proto/go/gitalypb/remote.pb.go b/proto/go/gitalypb/remote.pb.go index 0ddfda907..7122ffe1c 100644 --- a/proto/go/gitalypb/remote.pb.go +++ b/proto/go/gitalypb/remote.pb.go @@ -20,6 +20,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type UpdateRemoteMirrorRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -123,6 +124,7 @@ func (x *UpdateRemoteMirrorRequest) GetKeepDivergentRefs() bool { return false } +// This comment is left unintentionally blank. type UpdateRemoteMirrorResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -172,11 +174,13 @@ func (x *UpdateRemoteMirrorResponse) GetDivergentRefs() [][]byte { return nil } +// This comment is left unintentionally blank. type FindRemoteRepositoryRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` // This field is used to redirect request to proper storage where it can be handled. // As of now it doesn't matter what storage will be used, but it still must be a valid. @@ -237,6 +241,7 @@ type FindRemoteRepositoryResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` } @@ -410,6 +415,7 @@ func (x *FindRemoteRootRefResponse) GetRef() string { return "" } +// This comment is left unintentionally blank. type UpdateRemoteMirrorRequest_Remote struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/proto/go/gitalypb/remote_grpc.pb.go b/proto/go/gitalypb/remote_grpc.pb.go index f97b453a5..0c8591cdf 100644 --- a/proto/go/gitalypb/remote_grpc.pb.go +++ b/proto/go/gitalypb/remote_grpc.pb.go @@ -24,6 +24,7 @@ type RemoteServiceClient interface { // deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match // the patterns specified in the requests. UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) + // This comment is left unintentionally blank. FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) // FindRemoteRootRef tries to find the root reference of a remote // repository. The root reference is the default branch as pointed to by @@ -103,6 +104,7 @@ type RemoteServiceServer interface { // deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match // the patterns specified in the requests. UpdateRemoteMirror(RemoteService_UpdateRemoteMirrorServer) error + // This comment is left unintentionally blank. FindRemoteRepository(context.Context, *FindRemoteRepositoryRequest) (*FindRemoteRepositoryResponse, error) // FindRemoteRootRef tries to find the root reference of a remote // repository. The root reference is the default branch as pointed to by diff --git a/proto/go/gitalypb/repository.pb.go b/proto/go/gitalypb/repository.pb.go index 74baaf946..90f8a7e6f 100644 --- a/proto/go/gitalypb/repository.pb.go +++ b/proto/go/gitalypb/repository.pb.go @@ -20,6 +20,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type WriteCommitGraphRequest_SplitStrategy int32 const ( @@ -66,12 +67,17 @@ func (WriteCommitGraphRequest_SplitStrategy) EnumDescriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{10, 0} } +// This comment is left unintentionally blank. type GetArchiveRequest_Format int32 const ( - GetArchiveRequest_ZIP GetArchiveRequest_Format = 0 - GetArchiveRequest_TAR GetArchiveRequest_Format = 1 - GetArchiveRequest_TAR_GZ GetArchiveRequest_Format = 2 + // This comment is left unintentionally blank. + GetArchiveRequest_ZIP GetArchiveRequest_Format = 0 + // This comment is left unintentionally blank. + GetArchiveRequest_TAR GetArchiveRequest_Format = 1 + // This comment is left unintentionally blank. + GetArchiveRequest_TAR_GZ GetArchiveRequest_Format = 2 + // This comment is left unintentionally blank. GetArchiveRequest_TAR_BZ2 GetArchiveRequest_Format = 3 ) @@ -118,15 +124,23 @@ func (GetArchiveRequest_Format) EnumDescriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{24, 0} } +// This comment is left unintentionally blank. type GetRawChangesResponse_RawChange_Operation int32 const ( - GetRawChangesResponse_RawChange_UNKNOWN GetRawChangesResponse_RawChange_Operation = 0 - GetRawChangesResponse_RawChange_ADDED GetRawChangesResponse_RawChange_Operation = 1 - GetRawChangesResponse_RawChange_COPIED GetRawChangesResponse_RawChange_Operation = 2 - GetRawChangesResponse_RawChange_DELETED GetRawChangesResponse_RawChange_Operation = 3 - GetRawChangesResponse_RawChange_MODIFIED GetRawChangesResponse_RawChange_Operation = 4 - GetRawChangesResponse_RawChange_RENAMED GetRawChangesResponse_RawChange_Operation = 5 + // This comment is left unintentionally blank. + GetRawChangesResponse_RawChange_UNKNOWN GetRawChangesResponse_RawChange_Operation = 0 + // This comment is left unintentionally blank. + GetRawChangesResponse_RawChange_ADDED GetRawChangesResponse_RawChange_Operation = 1 + // This comment is left unintentionally blank. + GetRawChangesResponse_RawChange_COPIED GetRawChangesResponse_RawChange_Operation = 2 + // This comment is left unintentionally blank. + GetRawChangesResponse_RawChange_DELETED GetRawChangesResponse_RawChange_Operation = 3 + // This comment is left unintentionally blank. + GetRawChangesResponse_RawChange_MODIFIED GetRawChangesResponse_RawChange_Operation = 4 + // This comment is left unintentionally blank. + GetRawChangesResponse_RawChange_RENAMED GetRawChangesResponse_RawChange_Operation = 5 + // This comment is left unintentionally blank. GetRawChangesResponse_RawChange_TYPE_CHANGED GetRawChangesResponse_RawChange_Operation = 6 ) @@ -179,11 +193,13 @@ func (GetRawChangesResponse_RawChange_Operation) EnumDescriptor() ([]byte, []int return file_repository_proto_rawDescGZIP(), []int{63, 0, 0} } +// This comment is left unintentionally blank. type RepositoryExistsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -226,11 +242,13 @@ func (x *RepositoryExistsRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type RepositoryExistsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` } @@ -273,11 +291,13 @@ func (x *RepositoryExistsResponse) GetExists() bool { return false } +// This comment is left unintentionally blank. type RepackIncrementalRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -320,6 +340,7 @@ func (x *RepackIncrementalRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type RepackIncrementalResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -358,13 +379,16 @@ func (*RepackIncrementalResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{3} } +// This comment is left unintentionally blank. type RepackFullRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap,proto3" json:"create_bitmap,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap,proto3" json:"create_bitmap,omitempty"` } func (x *RepackFullRequest) Reset() { @@ -413,6 +437,7 @@ func (x *RepackFullRequest) GetCreateBitmap() bool { return false } +// This comment is left unintentionally blank. type RepackFullResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -451,11 +476,13 @@ func (*RepackFullResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{5} } +// This comment is left unintentionally blank. type MidxRepackRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -498,6 +525,7 @@ func (x *MidxRepackRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type MidxRepackResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -536,13 +564,16 @@ func (*MidxRepackResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{7} } +// This comment is left unintentionally blank. type GarbageCollectRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap,proto3" json:"create_bitmap,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap,proto3" json:"create_bitmap,omitempty"` // If set to 'true' the 'gc' will be triggered with '--prune=30.minutes.ago' flag. // This will remove dangling objects from the object storage that were not modified in the last 30 minutes. // If 'false' provided the 'gc' will rely on the default expiration period (2 weeks). @@ -604,6 +635,7 @@ func (x *GarbageCollectRequest) GetPrune() bool { return false } +// This comment is left unintentionally blank. type GarbageCollectResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -642,11 +674,13 @@ func (*GarbageCollectResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{9} } +// This comment is left unintentionally blank. type WriteCommitGraphRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // SplitStrategy is a strategy used to create/update commit graph. SplitStrategy WriteCommitGraphRequest_SplitStrategy `protobuf:"varint,2,opt,name=splitStrategy,proto3,enum=gitaly.WriteCommitGraphRequest_SplitStrategy" json:"splitStrategy,omitempty"` // protolint:disable:this FIELD_NAMES_LOWER_SNAKE_CASE @@ -698,6 +732,7 @@ func (x *WriteCommitGraphRequest) GetSplitStrategy() WriteCommitGraphRequest_Spl return WriteCommitGraphRequest_SizeMultiple } +// This comment is left unintentionally blank. type WriteCommitGraphResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -736,11 +771,13 @@ func (*WriteCommitGraphResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{11} } +// This comment is left unintentionally blank. type CleanupRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -783,6 +820,7 @@ func (x *CleanupRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type CleanupResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -821,11 +859,13 @@ func (*CleanupResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{13} } +// This comment is left unintentionally blank. type RepositorySizeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -868,6 +908,7 @@ func (x *RepositorySizeRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type RepositorySizeResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -916,13 +957,16 @@ func (x *RepositorySizeResponse) GetSize() int64 { return 0 } +// This comment is left unintentionally blank. type ApplyGitattributesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` } func (x *ApplyGitattributesRequest) Reset() { @@ -971,6 +1015,7 @@ func (x *ApplyGitattributesRequest) GetRevision() []byte { return nil } +// This comment is left unintentionally blank. type ApplyGitattributesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1009,6 +1054,7 @@ func (*ApplyGitattributesResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{17} } +// This comment is left unintentionally blank. type FetchBundleRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1075,6 +1121,7 @@ func (x *FetchBundleRequest) GetUpdateHead() bool { return false } +// This comment is left unintentionally blank. type FetchBundleResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1113,11 +1160,13 @@ func (*FetchBundleResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{19} } +// This comment is left unintentionally blank. type FetchRemoteRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // force determines if references should be force-updated in case they have // diverged. @@ -1125,8 +1174,10 @@ type FetchRemoteRequest struct { // no_tags determines whether tags should be fetched. NoTags bool `protobuf:"varint,4,opt,name=no_tags,json=noTags,proto3" json:"no_tags,omitempty"` // timeout specifies a timeout for the fetch. - Timeout int32 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` - SshKey string `protobuf:"bytes,6,opt,name=ssh_key,json=sshKey,proto3" json:"ssh_key,omitempty"` + Timeout int32 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` + // This comment is left unintentionally blank. + SshKey string `protobuf:"bytes,6,opt,name=ssh_key,json=sshKey,proto3" json:"ssh_key,omitempty"` + // This comment is left unintentionally blank. KnownHosts string `protobuf:"bytes,7,opt,name=known_hosts,json=knownHosts,proto3" json:"known_hosts,omitempty"` // no_prune will the fetch to not prune remote references which do not exist // in the remote repository anymore. @@ -1235,6 +1286,7 @@ func (x *FetchRemoteRequest) GetCheckTagsChanged() bool { return false } +// This comment is left unintentionally blank. type FetchRemoteResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1285,11 +1337,13 @@ func (x *FetchRemoteResponse) GetTagsChanged() bool { return false } +// This comment is left unintentionally blank. type CreateRepositoryRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Provide a branch name to set as the default branch of a newly created // repository. Note, this will be treated as the branch name and not a @@ -1343,6 +1397,7 @@ func (x *CreateRepositoryRequest) GetDefaultBranch() []byte { return nil } +// This comment is left unintentionally blank. type CreateRepositoryResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1381,24 +1436,32 @@ func (*CreateRepositoryResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{23} } +// This comment is left unintentionally blank. type GetArchiveRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` - Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` - Format GetArchiveRequest_Format `protobuf:"varint,4,opt,name=format,proto3,enum=gitaly.GetArchiveRequest_Format" json:"format,omitempty"` - Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` - Exclude [][]byte `protobuf:"bytes,6,rep,name=exclude,proto3" json:"exclude,omitempty"` // protolint:disable:this REPEATED_FIELD_NAMES_PLURALIZED + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + // This comment is left unintentionally blank. + Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` + // This comment is left unintentionally blank. + Format GetArchiveRequest_Format `protobuf:"varint,4,opt,name=format,proto3,enum=gitaly.GetArchiveRequest_Format" json:"format,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + Exclude [][]byte `protobuf:"bytes,6,rep,name=exclude,proto3" json:"exclude,omitempty"` // protolint:disable:this REPEATED_FIELD_NAMES_PLURALIZED // If `elide_path` is true and `path` refers to a subdirectory, that // subdirectory will be elided from archive entries. For example, if `dir` // contains `README.md`, with `elide_path = false` the corresponding entry // will be `dir/README.md`; with `elide_path = true`, the entry will be // `README.md`. `elide_path` has no effect if `path` refers to the repository // root. `elide_path = true` is not supported if `path` refers to a file. - ElidePath bool `protobuf:"varint,7,opt,name=elide_path,json=elidePath,proto3" json:"elide_path,omitempty"` + ElidePath bool `protobuf:"varint,7,opt,name=elide_path,json=elidePath,proto3" json:"elide_path,omitempty"` + // This comment is left unintentionally blank. IncludeLfsBlobs bool `protobuf:"varint,8,opt,name=include_lfs_blobs,json=includeLfsBlobs,proto3" json:"include_lfs_blobs,omitempty"` } @@ -1490,11 +1553,13 @@ func (x *GetArchiveRequest) GetIncludeLfsBlobs() bool { return false } +// This comment is left unintentionally blank. type GetArchiveResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } @@ -1537,11 +1602,13 @@ func (x *GetArchiveResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type HasLocalBranchesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -1584,11 +1651,13 @@ func (x *HasLocalBranchesRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type HasLocalBranchesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } @@ -1631,6 +1700,7 @@ func (x *HasLocalBranchesResponse) GetValue() bool { return false } +// This comment is left unintentionally blank. type FetchSourceBranchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1709,6 +1779,7 @@ func (x *FetchSourceBranchRequest) GetTargetRef() []byte { return nil } +// This comment is left unintentionally blank. type FetchSourceBranchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1758,11 +1829,13 @@ func (x *FetchSourceBranchResponse) GetResult() bool { return false } +// This comment is left unintentionally blank. type FsckRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -1805,11 +1878,13 @@ func (x *FsckRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type FsckResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } @@ -1852,16 +1927,22 @@ func (x *FsckResponse) GetError() []byte { return nil } +// This comment is left unintentionally blank. type WriteRefRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` - OldRevision []byte `protobuf:"bytes,4,opt,name=old_revision,json=oldRevision,proto3" json:"old_revision,omitempty"` - Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + OldRevision []byte `protobuf:"bytes,4,opt,name=old_revision,json=oldRevision,proto3" json:"old_revision,omitempty"` + // This comment is left unintentionally blank. + Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` } func (x *WriteRefRequest) Reset() { @@ -1931,6 +2012,7 @@ func (x *WriteRefRequest) GetForce() bool { return false } +// This comment is left unintentionally blank. type WriteRefResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1969,11 +2051,13 @@ func (*WriteRefResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{33} } +// This comment is left unintentionally blank. type FindMergeBaseRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // We use a repeated field because rugged supports finding a base // for more than 2 revisions, so if we needed that in the future we don't @@ -2027,11 +2111,13 @@ func (x *FindMergeBaseRequest) GetRevisions() [][]byte { return nil } +// This comment is left unintentionally blank. type FindMergeBaseResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Base string `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` } @@ -2074,12 +2160,15 @@ func (x *FindMergeBaseResponse) GetBase() string { return "" } +// This comment is left unintentionally blank. type CreateForkRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. SourceRepository *Repository `protobuf:"bytes,2,opt,name=source_repository,json=sourceRepository,proto3" json:"source_repository,omitempty"` } @@ -2129,6 +2218,7 @@ func (x *CreateForkRequest) GetSourceRepository() *Repository { return nil } +// This comment is left unintentionally blank. type CreateForkResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2167,13 +2257,16 @@ func (*CreateForkResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{37} } +// This comment is left unintentionally blank. type CreateRepositoryFromURLRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + // This comment is left unintentionally blank. + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // HttpHost is the hostname of the remote repository. Use this when the // URL hostname has already been resolved to an IP address to prevent DNS // rebinding. @@ -2256,6 +2349,7 @@ func (x *CreateRepositoryFromURLRequest) GetMirror() bool { return false } +// This comment is left unintentionally blank. type CreateRepositoryFromURLResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2294,11 +2388,13 @@ func (*CreateRepositoryFromURLResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{39} } +// This comment is left unintentionally blank. type CreateBundleRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -2341,11 +2437,13 @@ func (x *CreateBundleRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type CreateBundleResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } @@ -2388,6 +2486,7 @@ func (x *CreateBundleResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type CreateBundleFromRefListRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2447,11 +2546,13 @@ func (x *CreateBundleFromRefListRequest) GetPatterns() [][]byte { return nil } +// This comment is left unintentionally blank. type CreateBundleFromRefListResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } @@ -2593,13 +2694,16 @@ func (x *GetConfigResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type RestoreCustomHooksRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + // This comment is left unintentionally blank. + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } func (x *RestoreCustomHooksRequest) Reset() { @@ -2648,6 +2752,7 @@ func (x *RestoreCustomHooksRequest) GetData() []byte { return nil } +// This comment is left unintentionally blank. type RestoreCustomHooksResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2686,11 +2791,13 @@ func (*RestoreCustomHooksResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{47} } +// This comment is left unintentionally blank. type BackupCustomHooksRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -2733,11 +2840,13 @@ func (x *BackupCustomHooksRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type BackupCustomHooksResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } @@ -2780,6 +2889,7 @@ func (x *BackupCustomHooksResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type CreateRepositoryFromBundleRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2787,7 +2897,8 @@ type CreateRepositoryFromBundleRequest struct { // Only available on the first message Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + // This comment is left unintentionally blank. + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } func (x *CreateRepositoryFromBundleRequest) Reset() { @@ -2836,6 +2947,7 @@ func (x *CreateRepositoryFromBundleRequest) GetData() []byte { return nil } +// This comment is left unintentionally blank. type CreateRepositoryFromBundleResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2874,11 +2986,13 @@ func (*CreateRepositoryFromBundleResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{51} } +// This comment is left unintentionally blank. type FindLicenseRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -2921,11 +3035,13 @@ func (x *FindLicenseRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type FindLicenseResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. LicenseShortName string `protobuf:"bytes,1,opt,name=license_short_name,json=licenseShortName,proto3" json:"license_short_name,omitempty"` } @@ -2968,11 +3084,13 @@ func (x *FindLicenseResponse) GetLicenseShortName() string { return "" } +// This comment is left unintentionally blank. type GetInfoAttributesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -3015,11 +3133,13 @@ func (x *GetInfoAttributesRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type GetInfoAttributesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Attributes []byte `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` } @@ -3062,11 +3182,13 @@ func (x *GetInfoAttributesResponse) GetAttributes() []byte { return nil } +// This comment is left unintentionally blank. type CalculateChecksumRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -3109,11 +3231,13 @@ func (x *CalculateChecksumRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type CalculateChecksumResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Checksum string `protobuf:"bytes,1,opt,name=checksum,proto3" json:"checksum,omitempty"` } @@ -3156,11 +3280,13 @@ func (x *CalculateChecksumResponse) GetChecksum() string { return "" } +// This comment is left unintentionally blank. type GetSnapshotRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -3203,11 +3329,13 @@ func (x *GetSnapshotRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type GetSnapshotResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } @@ -3250,14 +3378,18 @@ func (x *GetSnapshotResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type CreateRepositoryFromSnapshotRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - HttpUrl string `protobuf:"bytes,2,opt,name=http_url,json=httpUrl,proto3" json:"http_url,omitempty"` - HttpAuth string `protobuf:"bytes,3,opt,name=http_auth,json=httpAuth,proto3" json:"http_auth,omitempty"` + // This comment is left unintentionally blank. + HttpUrl string `protobuf:"bytes,2,opt,name=http_url,json=httpUrl,proto3" json:"http_url,omitempty"` + // This comment is left unintentionally blank. + HttpAuth string `protobuf:"bytes,3,opt,name=http_auth,json=httpAuth,proto3" json:"http_auth,omitempty"` // HttpHost is the hostname of the remote snapshot. Use this when the // URL hostname has already been resolved to an IP address to prevent DNS // rebinding. @@ -3324,6 +3456,7 @@ func (x *CreateRepositoryFromSnapshotRequest) GetHttpHost() string { return "" } +// This comment is left unintentionally blank. type CreateRepositoryFromSnapshotResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3362,14 +3495,18 @@ func (*CreateRepositoryFromSnapshotResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{61} } +// This comment is left unintentionally blank. type GetRawChangesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - FromRevision string `protobuf:"bytes,2,opt,name=from_revision,json=fromRevision,proto3" json:"from_revision,omitempty"` - ToRevision string `protobuf:"bytes,3,opt,name=to_revision,json=toRevision,proto3" json:"to_revision,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + FromRevision string `protobuf:"bytes,2,opt,name=from_revision,json=fromRevision,proto3" json:"from_revision,omitempty"` + // This comment is left unintentionally blank. + ToRevision string `protobuf:"bytes,3,opt,name=to_revision,json=toRevision,proto3" json:"to_revision,omitempty"` } func (x *GetRawChangesRequest) Reset() { @@ -3425,11 +3562,13 @@ func (x *GetRawChangesRequest) GetToRevision() string { return "" } +// This comment is left unintentionally blank. type GetRawChangesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. RawChanges []*GetRawChangesResponse_RawChange `protobuf:"bytes,1,rep,name=raw_changes,json=rawChanges,proto3" json:"raw_changes,omitempty"` } @@ -3472,14 +3611,18 @@ func (x *GetRawChangesResponse) GetRawChanges() []*GetRawChangesResponse_RawChan return nil } +// This comment is left unintentionally blank. type SearchFilesByNameRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` - Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` + // This comment is left unintentionally blank. + Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` + // This comment is left unintentionally blank. + Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` // If `filter` is specified and non-empty, it will be parsed as a regular // expression and used to filter the result set before it is transmitted. It is // parsed using Go's `regexp` package, which is closely related to PCRE, @@ -3548,11 +3691,13 @@ func (x *SearchFilesByNameRequest) GetFilter() string { return "" } +// This comment is left unintentionally blank. type SearchFilesByNameResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Files [][]byte `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` } @@ -3595,15 +3740,20 @@ func (x *SearchFilesByNameResponse) GetFiles() [][]byte { return nil } +// This comment is left unintentionally blank. type SearchFilesByContentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` - Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` - ChunkedResponse bool `protobuf:"varint,4,opt,name=chunked_response,json=chunkedResponse,proto3" json:"chunked_response,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` + // This comment is left unintentionally blank. + Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` + // This comment is left unintentionally blank. + ChunkedResponse bool `protobuf:"varint,4,opt,name=chunked_response,json=chunkedResponse,proto3" json:"chunked_response,omitempty"` } func (x *SearchFilesByContentRequest) Reset() { @@ -3666,14 +3816,18 @@ func (x *SearchFilesByContentRequest) GetChunkedResponse() bool { return false } +// This comment is left unintentionally blank. type SearchFilesByContentResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Matches [][]byte `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` - MatchData []byte `protobuf:"bytes,2,opt,name=match_data,json=matchData,proto3" json:"match_data,omitempty"` - EndOfMatch bool `protobuf:"varint,3,opt,name=end_of_match,json=endOfMatch,proto3" json:"end_of_match,omitempty"` + // This comment is left unintentionally blank. + Matches [][]byte `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` + // This comment is left unintentionally blank. + MatchData []byte `protobuf:"bytes,2,opt,name=match_data,json=matchData,proto3" json:"match_data,omitempty"` + // This comment is left unintentionally blank. + EndOfMatch bool `protobuf:"varint,3,opt,name=end_of_match,json=endOfMatch,proto3" json:"end_of_match,omitempty"` } func (x *SearchFilesByContentResponse) Reset() { @@ -3818,11 +3972,13 @@ func (x *Remote) GetHttpHost() string { return "" } +// This comment is left unintentionally blank. type GetObjectDirectorySizeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -3865,6 +4021,7 @@ func (x *GetObjectDirectorySizeRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type GetObjectDirectorySizeResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3913,11 +4070,13 @@ func (x *GetObjectDirectorySizeResponse) GetSize() int64 { return 0 } +// This comment is left unintentionally blank. type RemoveRepositoryRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -3960,6 +4119,7 @@ func (x *RemoveRepositoryRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type RemoveRepositoryResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3998,13 +4158,16 @@ func (*RemoveRepositoryResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{72} } +// This comment is left unintentionally blank. type RenameRepositoryRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` + // This comment is left unintentionally blank. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` } func (x *RenameRepositoryRequest) Reset() { @@ -4053,6 +4216,7 @@ func (x *RenameRepositoryRequest) GetRelativePath() string { return "" } +// This comment is left unintentionally blank. type RenameRepositoryResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -4091,13 +4255,16 @@ func (*RenameRepositoryResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{74} } +// This comment is left unintentionally blank. type ReplicateRepositoryRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Source *Repository `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + // This comment is left unintentionally blank. + Source *Repository `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` } func (x *ReplicateRepositoryRequest) Reset() { @@ -4146,6 +4313,7 @@ func (x *ReplicateRepositoryRequest) GetSource() *Repository { return nil } +// This comment is left unintentionally blank. type ReplicateRepositoryResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -4184,11 +4352,13 @@ func (*ReplicateRepositoryResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{76} } +// This comment is left unintentionally blank. type OptimizeRepositoryRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -4231,6 +4401,7 @@ func (x *OptimizeRepositoryRequest) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type OptimizeRepositoryResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -4276,6 +4447,7 @@ type PruneUnreachableObjectsRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -4455,19 +4627,27 @@ func (*SetFullPathResponse) Descriptor() ([]byte, []int) { return file_repository_proto_rawDescGZIP(), []int{82} } +// This comment is left unintentionally blank. type GetRawChangesResponse_RawChange struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - BlobId string `protobuf:"bytes,1,opt,name=blob_id,json=blobId,proto3" json:"blob_id,omitempty"` - Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Operation GetRawChangesResponse_RawChange_Operation `protobuf:"varint,5,opt,name=operation,proto3,enum=gitaly.GetRawChangesResponse_RawChange_Operation" json:"operation,omitempty"` - RawOperation string `protobuf:"bytes,6,opt,name=raw_operation,json=rawOperation,proto3" json:"raw_operation,omitempty"` - OldMode int32 `protobuf:"varint,7,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` - NewMode int32 `protobuf:"varint,8,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` + // This comment is left unintentionally blank. + BlobId string `protobuf:"bytes,1,opt,name=blob_id,json=blobId,proto3" json:"blob_id,omitempty"` + // This comment is left unintentionally blank. + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + // This comment is left unintentionally blank. + Operation GetRawChangesResponse_RawChange_Operation `protobuf:"varint,5,opt,name=operation,proto3,enum=gitaly.GetRawChangesResponse_RawChange_Operation" json:"operation,omitempty"` + // This comment is left unintentionally blank. + RawOperation string `protobuf:"bytes,6,opt,name=raw_operation,json=rawOperation,proto3" json:"raw_operation,omitempty"` + // This comment is left unintentionally blank. + OldMode int32 `protobuf:"varint,7,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"` + // This comment is left unintentionally blank. + NewMode int32 `protobuf:"varint,8,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"` // the following fields, 9 and 10, will eventually replace 3 and 4 NewPathBytes []byte `protobuf:"bytes,9,opt,name=new_path_bytes,json=newPathBytes,proto3" json:"new_path_bytes,omitempty"` + // This comment is left unintentionally blank. OldPathBytes []byte `protobuf:"bytes,10,opt,name=old_path_bytes,json=oldPathBytes,proto3" json:"old_path_bytes,omitempty"` } diff --git a/proto/go/gitalypb/repository_grpc.pb.go b/proto/go/gitalypb/repository_grpc.pb.go index b05caa251..c4a979a21 100644 --- a/proto/go/gitalypb/repository_grpc.pb.go +++ b/proto/go/gitalypb/repository_grpc.pb.go @@ -18,6 +18,7 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type RepositoryServiceClient interface { + // This comment is left unintentionally blank. RepositoryExists(ctx context.Context, in *RepositoryExistsRequest, opts ...grpc.CallOption) (*RepositoryExistsResponse, error) // Deprecated: Do not use. // RepackIncremental is deprecated in favor of OptimizeRepository. @@ -34,21 +35,31 @@ type RepositoryServiceClient interface { // Deprecated: Do not use. // WriteCommitGraph is deprecated in favor of OptimizeRepository. WriteCommitGraph(ctx context.Context, in *WriteCommitGraphRequest, opts ...grpc.CallOption) (*WriteCommitGraphResponse, error) + // This comment is left unintentionally blank. RepositorySize(ctx context.Context, in *RepositorySizeRequest, opts ...grpc.CallOption) (*RepositorySizeResponse, error) + // This comment is left unintentionally blank. ApplyGitattributes(ctx context.Context, in *ApplyGitattributesRequest, opts ...grpc.CallOption) (*ApplyGitattributesResponse, error) // FetchRemote fetches references from a remote repository into the local // repository. FetchRemote(ctx context.Context, in *FetchRemoteRequest, opts ...grpc.CallOption) (*FetchRemoteResponse, error) + // This comment is left unintentionally blank. CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*CreateRepositoryResponse, error) + // This comment is left unintentionally blank. GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (RepositoryService_GetArchiveClient, error) + // This comment is left unintentionally blank. HasLocalBranches(ctx context.Context, in *HasLocalBranchesRequest, opts ...grpc.CallOption) (*HasLocalBranchesResponse, error) // FetchSourceBranch fetches a branch from a second (potentially remote) // repository into the given repository. FetchSourceBranch(ctx context.Context, in *FetchSourceBranchRequest, opts ...grpc.CallOption) (*FetchSourceBranchResponse, error) + // This comment is left unintentionally blank. Fsck(ctx context.Context, in *FsckRequest, opts ...grpc.CallOption) (*FsckResponse, error) + // This comment is left unintentionally blank. WriteRef(ctx context.Context, in *WriteRefRequest, opts ...grpc.CallOption) (*WriteRefResponse, error) + // This comment is left unintentionally blank. FindMergeBase(ctx context.Context, in *FindMergeBaseRequest, opts ...grpc.CallOption) (*FindMergeBaseResponse, error) + // This comment is left unintentionally blank. CreateFork(ctx context.Context, in *CreateForkRequest, opts ...grpc.CallOption) (*CreateForkResponse, error) + // This comment is left unintentionally blank. CreateRepositoryFromURL(ctx context.Context, in *CreateRepositoryFromURLRequest, opts ...grpc.CallOption) (*CreateRepositoryFromURLResponse, error) // CreateBundle creates a bundle from all refs CreateBundle(ctx context.Context, in *CreateBundleRequest, opts ...grpc.CallOption) (RepositoryService_CreateBundleClient, error) @@ -59,29 +70,43 @@ type RepositoryServiceClient interface { // Refs will be mirrored to the target repository with the refspec // "+refs/*:refs/*" and refs that do not exist in the bundle will be removed. FetchBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_FetchBundleClient, error) + // This comment is left unintentionally blank. CreateRepositoryFromBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_CreateRepositoryFromBundleClient, error) // GetConfig reads the target repository's gitconfig and streams its contents // back. Returns a NotFound error in case no gitconfig was found. GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (RepositoryService_GetConfigClient, error) + // This comment is left unintentionally blank. FindLicense(ctx context.Context, in *FindLicenseRequest, opts ...grpc.CallOption) (*FindLicenseResponse, error) + // This comment is left unintentionally blank. GetInfoAttributes(ctx context.Context, in *GetInfoAttributesRequest, opts ...grpc.CallOption) (RepositoryService_GetInfoAttributesClient, error) + // This comment is left unintentionally blank. CalculateChecksum(ctx context.Context, in *CalculateChecksumRequest, opts ...grpc.CallOption) (*CalculateChecksumResponse, error) // Deprecated: Do not use. // Cleanup is deprecated in favor of OptimizeRepository. Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) + // This comment is left unintentionally blank. GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (RepositoryService_GetSnapshotClient, error) + // This comment is left unintentionally blank. CreateRepositoryFromSnapshot(ctx context.Context, in *CreateRepositoryFromSnapshotRequest, opts ...grpc.CallOption) (*CreateRepositoryFromSnapshotResponse, error) + // This comment is left unintentionally blank. GetRawChanges(ctx context.Context, in *GetRawChangesRequest, opts ...grpc.CallOption) (RepositoryService_GetRawChangesClient, error) + // This comment is left unintentionally blank. SearchFilesByContent(ctx context.Context, in *SearchFilesByContentRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByContentClient, error) + // This comment is left unintentionally blank. SearchFilesByName(ctx context.Context, in *SearchFilesByNameRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByNameClient, error) + // This comment is left unintentionally blank. RestoreCustomHooks(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_RestoreCustomHooksClient, error) + // This comment is left unintentionally blank. BackupCustomHooks(ctx context.Context, in *BackupCustomHooksRequest, opts ...grpc.CallOption) (RepositoryService_BackupCustomHooksClient, error) + // This comment is left unintentionally blank. GetObjectDirectorySize(ctx context.Context, in *GetObjectDirectorySizeRequest, opts ...grpc.CallOption) (*GetObjectDirectorySizeResponse, error) // RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and // eventually remove it. This ensures that even on networked filesystems the // data is actually removed even if there's someone still handling the data. RemoveRepository(ctx context.Context, in *RemoveRepositoryRequest, opts ...grpc.CallOption) (*RemoveRepositoryResponse, error) + // This comment is left unintentionally blank. RenameRepository(ctx context.Context, in *RenameRepositoryRequest, opts ...grpc.CallOption) (*RenameRepositoryResponse, error) + // This comment is left unintentionally blank. ReplicateRepository(ctx context.Context, in *ReplicateRepositoryRequest, opts ...grpc.CallOption) (*ReplicateRepositoryResponse, error) // OptimizeRepository performs all maintenance tasks in a repository to keep // it in an efficient state. It cleans up stale data, repacks objects, @@ -800,6 +825,7 @@ func (c *repositoryServiceClient) SetFullPath(ctx context.Context, in *SetFullPa // All implementations must embed UnimplementedRepositoryServiceServer // for forward compatibility type RepositoryServiceServer interface { + // This comment is left unintentionally blank. RepositoryExists(context.Context, *RepositoryExistsRequest) (*RepositoryExistsResponse, error) // Deprecated: Do not use. // RepackIncremental is deprecated in favor of OptimizeRepository. @@ -816,21 +842,31 @@ type RepositoryServiceServer interface { // Deprecated: Do not use. // WriteCommitGraph is deprecated in favor of OptimizeRepository. WriteCommitGraph(context.Context, *WriteCommitGraphRequest) (*WriteCommitGraphResponse, error) + // This comment is left unintentionally blank. RepositorySize(context.Context, *RepositorySizeRequest) (*RepositorySizeResponse, error) + // This comment is left unintentionally blank. ApplyGitattributes(context.Context, *ApplyGitattributesRequest) (*ApplyGitattributesResponse, error) // FetchRemote fetches references from a remote repository into the local // repository. FetchRemote(context.Context, *FetchRemoteRequest) (*FetchRemoteResponse, error) + // This comment is left unintentionally blank. CreateRepository(context.Context, *CreateRepositoryRequest) (*CreateRepositoryResponse, error) + // This comment is left unintentionally blank. GetArchive(*GetArchiveRequest, RepositoryService_GetArchiveServer) error + // This comment is left unintentionally blank. HasLocalBranches(context.Context, *HasLocalBranchesRequest) (*HasLocalBranchesResponse, error) // FetchSourceBranch fetches a branch from a second (potentially remote) // repository into the given repository. FetchSourceBranch(context.Context, *FetchSourceBranchRequest) (*FetchSourceBranchResponse, error) + // This comment is left unintentionally blank. Fsck(context.Context, *FsckRequest) (*FsckResponse, error) + // This comment is left unintentionally blank. WriteRef(context.Context, *WriteRefRequest) (*WriteRefResponse, error) + // This comment is left unintentionally blank. FindMergeBase(context.Context, *FindMergeBaseRequest) (*FindMergeBaseResponse, error) + // This comment is left unintentionally blank. CreateFork(context.Context, *CreateForkRequest) (*CreateForkResponse, error) + // This comment is left unintentionally blank. CreateRepositoryFromURL(context.Context, *CreateRepositoryFromURLRequest) (*CreateRepositoryFromURLResponse, error) // CreateBundle creates a bundle from all refs CreateBundle(*CreateBundleRequest, RepositoryService_CreateBundleServer) error @@ -841,29 +877,43 @@ type RepositoryServiceServer interface { // Refs will be mirrored to the target repository with the refspec // "+refs/*:refs/*" and refs that do not exist in the bundle will be removed. FetchBundle(RepositoryService_FetchBundleServer) error + // This comment is left unintentionally blank. CreateRepositoryFromBundle(RepositoryService_CreateRepositoryFromBundleServer) error // GetConfig reads the target repository's gitconfig and streams its contents // back. Returns a NotFound error in case no gitconfig was found. GetConfig(*GetConfigRequest, RepositoryService_GetConfigServer) error + // This comment is left unintentionally blank. FindLicense(context.Context, *FindLicenseRequest) (*FindLicenseResponse, error) + // This comment is left unintentionally blank. GetInfoAttributes(*GetInfoAttributesRequest, RepositoryService_GetInfoAttributesServer) error + // This comment is left unintentionally blank. CalculateChecksum(context.Context, *CalculateChecksumRequest) (*CalculateChecksumResponse, error) // Deprecated: Do not use. // Cleanup is deprecated in favor of OptimizeRepository. Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error) + // This comment is left unintentionally blank. GetSnapshot(*GetSnapshotRequest, RepositoryService_GetSnapshotServer) error + // This comment is left unintentionally blank. CreateRepositoryFromSnapshot(context.Context, *CreateRepositoryFromSnapshotRequest) (*CreateRepositoryFromSnapshotResponse, error) + // This comment is left unintentionally blank. GetRawChanges(*GetRawChangesRequest, RepositoryService_GetRawChangesServer) error + // This comment is left unintentionally blank. SearchFilesByContent(*SearchFilesByContentRequest, RepositoryService_SearchFilesByContentServer) error + // This comment is left unintentionally blank. SearchFilesByName(*SearchFilesByNameRequest, RepositoryService_SearchFilesByNameServer) error + // This comment is left unintentionally blank. RestoreCustomHooks(RepositoryService_RestoreCustomHooksServer) error + // This comment is left unintentionally blank. BackupCustomHooks(*BackupCustomHooksRequest, RepositoryService_BackupCustomHooksServer) error + // This comment is left unintentionally blank. GetObjectDirectorySize(context.Context, *GetObjectDirectorySizeRequest) (*GetObjectDirectorySizeResponse, error) // RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and // eventually remove it. This ensures that even on networked filesystems the // data is actually removed even if there's someone still handling the data. RemoveRepository(context.Context, *RemoveRepositoryRequest) (*RemoveRepositoryResponse, error) + // This comment is left unintentionally blank. RenameRepository(context.Context, *RenameRepositoryRequest) (*RenameRepositoryResponse, error) + // This comment is left unintentionally blank. ReplicateRepository(context.Context, *ReplicateRepositoryRequest) (*ReplicateRepositoryResponse, error) // OptimizeRepository performs all maintenance tasks in a repository to keep // it in an efficient state. It cleans up stale data, repacks objects, diff --git a/proto/go/gitalypb/server.pb.go b/proto/go/gitalypb/server.pb.go index a109a94d4..4bb30f084 100644 --- a/proto/go/gitalypb/server.pb.go +++ b/proto/go/gitalypb/server.pb.go @@ -20,6 +20,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type ServerInfoRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -58,13 +59,17 @@ func (*ServerInfoRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{0} } +// This comment is left unintentionally blank. type ServerInfoResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ServerVersion string `protobuf:"bytes,1,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` - GitVersion string `protobuf:"bytes,2,opt,name=git_version,json=gitVersion,proto3" json:"git_version,omitempty"` + // This comment is left unintentionally blank. + ServerVersion string `protobuf:"bytes,1,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` + // This comment is left unintentionally blank. + GitVersion string `protobuf:"bytes,2,opt,name=git_version,json=gitVersion,proto3" json:"git_version,omitempty"` + // This comment is left unintentionally blank. StorageStatuses []*ServerInfoResponse_StorageStatus `protobuf:"bytes,3,rep,name=storage_statuses,json=storageStatuses,proto3" json:"storage_statuses,omitempty"` } @@ -121,6 +126,7 @@ func (x *ServerInfoResponse) GetStorageStatuses() []*ServerInfoResponse_StorageS return nil } +// This comment is left unintentionally blank. type DiskStatisticsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -159,11 +165,13 @@ func (*DiskStatisticsRequest) Descriptor() ([]byte, []int) { return file_server_proto_rawDescGZIP(), []int{2} } +// This comment is left unintentionally blank. type DiskStatisticsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. StorageStatuses []*DiskStatisticsResponse_StorageStatus `protobuf:"bytes,1,rep,name=storage_statuses,json=storageStatuses,proto3" json:"storage_statuses,omitempty"` } @@ -206,6 +214,7 @@ func (x *DiskStatisticsResponse) GetStorageStatuses() []*DiskStatisticsResponse_ return nil } +// This comment is left unintentionally blank. type ClockSyncedRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -264,6 +273,7 @@ func (x *ClockSyncedRequest) GetDriftThresholdMillis() int64 { return 0 } +// This comment is left unintentionally blank. type ClockSyncedResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -312,16 +322,23 @@ func (x *ClockSyncedResponse) GetSynced() bool { return false } +// This comment is left unintentionally blank. type ServerInfoResponse_StorageStatus struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Readable bool `protobuf:"varint,2,opt,name=readable,proto3" json:"readable,omitempty"` - Writeable bool `protobuf:"varint,3,opt,name=writeable,proto3" json:"writeable,omitempty"` - FsType string `protobuf:"bytes,4,opt,name=fs_type,json=fsType,proto3" json:"fs_type,omitempty"` - FilesystemId string `protobuf:"bytes,5,opt,name=filesystem_id,json=filesystemId,proto3" json:"filesystem_id,omitempty"` + // This comment is left unintentionally blank. + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + // This comment is left unintentionally blank. + Readable bool `protobuf:"varint,2,opt,name=readable,proto3" json:"readable,omitempty"` + // This comment is left unintentionally blank. + Writeable bool `protobuf:"varint,3,opt,name=writeable,proto3" json:"writeable,omitempty"` + // This comment is left unintentionally blank. + FsType string `protobuf:"bytes,4,opt,name=fs_type,json=fsType,proto3" json:"fs_type,omitempty"` + // This comment is left unintentionally blank. + FilesystemId string `protobuf:"bytes,5,opt,name=filesystem_id,json=filesystemId,proto3" json:"filesystem_id,omitempty"` + // This comment is left unintentionally blank. ReplicationFactor uint32 `protobuf:"varint,6,opt,name=replication_factor,json=replicationFactor,proto3" json:"replication_factor,omitempty"` } @@ -399,6 +416,7 @@ func (x *ServerInfoResponse_StorageStatus) GetReplicationFactor() uint32 { return 0 } +// This comment is left unintentionally blank. type DiskStatisticsResponse_StorageStatus struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -407,8 +425,10 @@ type DiskStatisticsResponse_StorageStatus struct { // When both available and used fields are equal 0 that means that // Gitaly was unable to determine storage stats. StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Available int64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` - Used int64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"` + // This comment is left unintentionally blank. + Available int64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` + // This comment is left unintentionally blank. + Used int64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"` } func (x *DiskStatisticsResponse_StorageStatus) Reset() { @@ -520,7 +540,7 @@ var file_server_proto_rawDesc = []byte{ 0x73, 0x22, 0x2d, 0x0a, 0x13, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x79, 0x6e, 0x63, 0x65, 0x64, - 0x32, 0xf5, 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x32, 0xf3, 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69, @@ -530,16 +550,16 @@ var file_server_proto_rawDesc = []byte{ 0x6c, 0x79, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x43, 0x6c, 0x6f, 0x63, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x12, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x1a, 0x04, 0xf0, 0x97, 0x28, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, - 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, - 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x1a, 0x04, 0xf0, 0x97, 0x28, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, + 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/go/gitalypb/server_grpc.pb.go b/proto/go/gitalypb/server_grpc.pb.go index 7c23f806f..bb3ea1dfc 100644 --- a/proto/go/gitalypb/server_grpc.pb.go +++ b/proto/go/gitalypb/server_grpc.pb.go @@ -18,7 +18,9 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ServerServiceClient interface { + // This comment is left unintentionally blank. ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) + // This comment is left unintentionally blank. DiskStatistics(ctx context.Context, in *DiskStatisticsRequest, opts ...grpc.CallOption) (*DiskStatisticsResponse, error) // ClockSynced checks if machine clock is synced // (the offset is less that the one passed in the request). @@ -64,7 +66,9 @@ func (c *serverServiceClient) ClockSynced(ctx context.Context, in *ClockSyncedRe // All implementations must embed UnimplementedServerServiceServer // for forward compatibility type ServerServiceServer interface { + // This comment is left unintentionally blank. ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) + // This comment is left unintentionally blank. DiskStatistics(context.Context, *DiskStatisticsRequest) (*DiskStatisticsResponse, error) // ClockSynced checks if machine clock is synced // (the offset is less that the one passed in the request). diff --git a/proto/go/gitalypb/shared.pb.go b/proto/go/gitalypb/shared.pb.go index 47098ee0b..31a54b636 100644 --- a/proto/go/gitalypb/shared.pb.go +++ b/proto/go/gitalypb/shared.pb.go @@ -21,14 +21,20 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type ObjectType int32 const ( + // This comment is left unintentionally blank. ObjectType_UNKNOWN ObjectType = 0 - ObjectType_COMMIT ObjectType = 1 - ObjectType_BLOB ObjectType = 2 - ObjectType_TREE ObjectType = 3 - ObjectType_TAG ObjectType = 4 + // This comment is left unintentionally blank. + ObjectType_COMMIT ObjectType = 1 + // This comment is left unintentionally blank. + ObjectType_BLOB ObjectType = 2 + // This comment is left unintentionally blank. + ObjectType_TREE ObjectType = 3 + // This comment is left unintentionally blank. + ObjectType_TAG ObjectType = 4 ) // Enum value maps for ObjectType. @@ -76,13 +82,18 @@ func (ObjectType) EnumDescriptor() ([]byte, []int) { return file_shared_proto_rawDescGZIP(), []int{0} } +// This comment is left unintentionally blank. type SignatureType int32 const ( + // This comment is left unintentionally blank. SignatureType_NONE SignatureType = 0 - SignatureType_PGP SignatureType = 1 + // This comment is left unintentionally blank. + SignatureType_PGP SignatureType = 1 + // This comment is left unintentionally blank. SignatureType_X509 SignatureType = 2 - SignatureType_SSH SignatureType = 3 // maybe add X509+TSA or other combinations at a later step + // This comment is left unintentionally blank. + SignatureType_SSH SignatureType = 3 // maybe add X509+TSA or other combinations at a later step ) // Enum value maps for SignatureType. @@ -177,12 +188,15 @@ func (SortDirection) EnumDescriptor() ([]byte, []int) { return file_shared_proto_rawDescGZIP(), []int{2} } +// This comment is left unintentionally blank. type Repository struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + // This comment is left unintentionally blank. + StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + // This comment is left unintentionally blank. RelativePath string `protobuf:"bytes,3,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"` // Sets the GIT_OBJECT_DIRECTORY envvar on git commands to the value of this field. // It influences the object storage directory the SHA1 directories are created underneath. @@ -341,16 +355,23 @@ type GitCommit struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Subject []byte `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` - Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` - Author *CommitAuthor `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"` + // This comment is left unintentionally blank. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // This comment is left unintentionally blank. + Subject []byte `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` + // This comment is left unintentionally blank. + Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + // This comment is left unintentionally blank. + Author *CommitAuthor `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"` + // This comment is left unintentionally blank. Committer *CommitAuthor `protobuf:"bytes,5,opt,name=committer,proto3" json:"committer,omitempty"` - ParentIds []string `protobuf:"bytes,6,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` + // This comment is left unintentionally blank. + ParentIds []string `protobuf:"bytes,6,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` // If body exceeds a certain threshold, it will be nullified, // but its size will be set in body_size so we can know if // a commit had a body in the first place. - BodySize int64 `protobuf:"varint,7,opt,name=body_size,json=bodySize,proto3" json:"body_size,omitempty"` + BodySize int64 `protobuf:"varint,7,opt,name=body_size,json=bodySize,proto3" json:"body_size,omitempty"` + // This comment is left unintentionally blank. SignatureType SignatureType `protobuf:"varint,8,opt,name=signature_type,json=signatureType,proto3,enum=gitaly.SignatureType" json:"signature_type,omitempty"` // The tree ID will always be filled, even if the tree is empty. In that case // the value will be `4b825dc642cb6eb9a060e54bf8d69288fbee4904`. @@ -465,15 +486,20 @@ func (x *GitCommit) GetTrailers() []*CommitTrailer { return nil } +// This comment is left unintentionally blank. type CommitAuthor struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Date *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` - Timezone []byte `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + // This comment is left unintentionally blank. + Date *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` + // This comment is left unintentionally blank. + Timezone []byte `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"` } func (x *CommitAuthor) Reset() { @@ -536,11 +562,13 @@ func (x *CommitAuthor) GetTimezone() []byte { return nil } +// This comment is left unintentionally blank. type ExitStatus struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } @@ -589,7 +617,9 @@ type Branch struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. TargetCommit *GitCommit `protobuf:"bytes,2,opt,name=target_commit,json=targetCommit,proto3" json:"target_commit,omitempty"` } @@ -639,20 +669,27 @@ func (x *Branch) GetTargetCommit() *GitCommit { return nil } +// This comment is left unintentionally blank. type Tag struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // This comment is left unintentionally blank. TargetCommit *GitCommit `protobuf:"bytes,3,opt,name=target_commit,json=targetCommit,proto3" json:"target_commit,omitempty"` // If message exceeds a certain threshold, it will be nullified, // but its size will be set in message_size so we can know if // a tag had a message in the first place. - Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` - MessageSize int64 `protobuf:"varint,5,opt,name=message_size,json=messageSize,proto3" json:"message_size,omitempty"` - Tagger *CommitAuthor `protobuf:"bytes,6,opt,name=tagger,proto3" json:"tagger,omitempty"` + Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + // This comment is left unintentionally blank. + MessageSize int64 `protobuf:"varint,5,opt,name=message_size,json=messageSize,proto3" json:"message_size,omitempty"` + // This comment is left unintentionally blank. + Tagger *CommitAuthor `protobuf:"bytes,6,opt,name=tagger,proto3" json:"tagger,omitempty"` + // This comment is left unintentionally blank. SignatureType SignatureType `protobuf:"varint,7,opt,name=signature_type,json=signatureType,proto3,enum=gitaly.SignatureType" json:"signature_type,omitempty"` } @@ -737,14 +774,19 @@ func (x *Tag) GetSignatureType() SignatureType { return SignatureType_NONE } +// This comment is left unintentionally blank. type User struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - GlId string `protobuf:"bytes,1,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + // This comment is left unintentionally blank. + GlId string `protobuf:"bytes,1,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Email []byte `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + // This comment is left unintentionally blank. GlUsername string `protobuf:"bytes,4,opt,name=gl_username,json=glUsername,proto3" json:"gl_username,omitempty"` // Timezone is the timezone as configured by the user in the web interface. This // timezone may be used when new commits are created via RPC calls. @@ -818,11 +860,13 @@ func (x *User) GetTimezone() string { return "" } +// This comment is left unintentionally blank. type ObjectPool struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` } @@ -865,6 +909,7 @@ func (x *ObjectPool) GetRepository() *Repository { return nil } +// This comment is left unintentionally blank. type PaginationParameter struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -931,6 +976,7 @@ func (x *PaginationParameter) GetLimit() int32 { return 0 } +// This comment is left unintentionally blank. type PaginationCursor struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/proto/go/gitalypb/smarthttp.pb.go b/proto/go/gitalypb/smarthttp.pb.go index e7ec4a48a..307925a49 100644 --- a/proto/go/gitalypb/smarthttp.pb.go +++ b/proto/go/gitalypb/smarthttp.pb.go @@ -20,11 +20,13 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type InfoRefsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Parameters to use with git -c (key=value pairs) GitConfigOptions []string `protobuf:"bytes,2,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"` @@ -85,11 +87,13 @@ func (x *InfoRefsRequest) GetGitProtocol() string { return "" } +// This comment is left unintentionally blank. type InfoRefsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } @@ -132,6 +136,7 @@ func (x *InfoRefsResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type PostUploadPackRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -207,6 +212,7 @@ func (x *PostUploadPackRequest) GetGitProtocol() string { return "" } +// This comment is left unintentionally blank. type PostUploadPackResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -255,6 +261,7 @@ func (x *PostUploadPackResponse) GetData() []byte { return nil } +// This comment is left unintentionally blank. type PostUploadPackWithSidechannelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -321,6 +328,7 @@ func (x *PostUploadPackWithSidechannelRequest) GetGitProtocol() string { return "" } +// This comment is left unintentionally blank. type PostUploadPackWithSidechannelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -359,6 +367,7 @@ func (*PostUploadPackWithSidechannelResponse) Descriptor() ([]byte, []int) { return file_smarthttp_proto_rawDescGZIP(), []int{5} } +// This comment is left unintentionally blank. type PostReceivePackRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -370,9 +379,11 @@ type PostReceivePackRequest struct { Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // gl_id, gl_repository, and gl_username become env variables, used by the Git {pre,post}-receive // hooks. They should only be present in the first message of the stream. - GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"` + GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"` + // This comment is left unintentionally blank. GlRepository string `protobuf:"bytes,4,opt,name=gl_repository,json=glRepository,proto3" json:"gl_repository,omitempty"` - GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername,proto3" json:"gl_username,omitempty"` + // This comment is left unintentionally blank. + GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername,proto3" json:"gl_username,omitempty"` // Git protocol version GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"` // Parameters to use with git -c (key=value pairs) @@ -460,6 +471,7 @@ func (x *PostReceivePackRequest) GetGitConfigOptions() []string { return nil } +// This comment is left unintentionally blank. type PostReceivePackResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/proto/go/gitalypb/ssh.pb.go b/proto/go/gitalypb/ssh.pb.go index 32a62d738..497e36af3 100644 --- a/proto/go/gitalypb/ssh.pb.go +++ b/proto/go/gitalypb/ssh.pb.go @@ -20,6 +20,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type SSHUploadPackRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -95,6 +96,7 @@ func (x *SSHUploadPackRequest) GetGitProtocol() string { return "" } +// This comment is left unintentionally blank. type SSHUploadPackResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -162,6 +164,7 @@ func (x *SSHUploadPackResponse) GetExitStatus() *ExitStatus { return nil } +// This comment is left unintentionally blank. type SSHUploadPackWithSidechannelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -228,6 +231,7 @@ func (x *SSHUploadPackWithSidechannelRequest) GetGitProtocol() string { return "" } +// This comment is left unintentionally blank. type SSHUploadPackWithSidechannelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -266,6 +270,7 @@ func (*SSHUploadPackWithSidechannelResponse) Descriptor() ([]byte, []int) { return file_ssh_proto_rawDescGZIP(), []int{3} } +// This comment is left unintentionally blank. type SSHReceivePackRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -277,9 +282,11 @@ type SSHReceivePackRequest struct { Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"` // Contents of GL_ID, GL_REPOSITORY, and GL_USERNAME environment variables // for 'git receive-pack' - GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"` + GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"` + // This comment is left unintentionally blank. GlRepository string `protobuf:"bytes,4,opt,name=gl_repository,json=glRepository,proto3" json:"gl_repository,omitempty"` - GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername,proto3" json:"gl_username,omitempty"` + // This comment is left unintentionally blank. + GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername,proto3" json:"gl_username,omitempty"` // Git protocol version GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"` // Parameters to use with git -c (key=value pairs) @@ -367,6 +374,7 @@ func (x *SSHReceivePackRequest) GetGitConfigOptions() []string { return nil } +// This comment is left unintentionally blank. type SSHReceivePackResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -434,6 +442,7 @@ func (x *SSHReceivePackResponse) GetExitStatus() *ExitStatus { return nil } +// This comment is left unintentionally blank. type SSHUploadArchiveRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -491,6 +500,7 @@ func (x *SSHUploadArchiveRequest) GetStdin() []byte { return nil } +// This comment is left unintentionally blank. type SSHUploadArchiveResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/proto/go/gitalypb/transaction.pb.go b/proto/go/gitalypb/transaction.pb.go index 66956d527..b98a2af3a 100644 --- a/proto/go/gitalypb/transaction.pb.go +++ b/proto/go/gitalypb/transaction.pb.go @@ -20,6 +20,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type VoteTransactionRequest_Phase int32 const ( @@ -82,9 +83,12 @@ func (VoteTransactionRequest_Phase) EnumDescriptor() ([]byte, []int) { type VoteTransactionResponse_TransactionState int32 const ( + // This comment is left unintentionally blank. VoteTransactionResponse_COMMIT VoteTransactionResponse_TransactionState = 0 - VoteTransactionResponse_ABORT VoteTransactionResponse_TransactionState = 1 - VoteTransactionResponse_STOP VoteTransactionResponse_TransactionState = 2 + // This comment is left unintentionally blank. + VoteTransactionResponse_ABORT VoteTransactionResponse_TransactionState = 1 + // This comment is left unintentionally blank. + VoteTransactionResponse_STOP VoteTransactionResponse_TransactionState = 2 ) // Enum value maps for VoteTransactionResponse_TransactionState. @@ -128,11 +132,13 @@ func (VoteTransactionResponse_TransactionState) EnumDescriptor() ([]byte, []int) return file_transaction_proto_rawDescGZIP(), []int{1, 0} } +// This comment is left unintentionally blank. type VoteTransactionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // ID of the transaction we're processing TransactionId uint64 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` @@ -211,11 +217,13 @@ func (x *VoteTransactionRequest) GetPhase() VoteTransactionRequest_Phase { return VoteTransactionRequest_UNKNOWN_PHASE } +// This comment is left unintentionally blank. type VoteTransactionResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. State VoteTransactionResponse_TransactionState `protobuf:"varint,1,opt,name=state,proto3,enum=gitaly.VoteTransactionResponse_TransactionState" json:"state,omitempty"` } @@ -258,11 +266,13 @@ func (x *VoteTransactionResponse) GetState() VoteTransactionResponse_Transaction return VoteTransactionResponse_COMMIT } +// This comment is left unintentionally blank. type StopTransactionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // ID of the transaction we're processing TransactionId uint64 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` @@ -314,6 +324,7 @@ func (x *StopTransactionRequest) GetTransactionId() uint64 { return 0 } +// This comment is left unintentionally blank. type StopTransactionResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/proto/go/gitalypb/transaction_grpc.pb.go b/proto/go/gitalypb/transaction_grpc.pb.go index e0bff1022..6d8d589b0 100644 --- a/proto/go/gitalypb/transaction_grpc.pb.go +++ b/proto/go/gitalypb/transaction_grpc.pb.go @@ -18,7 +18,28 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type RefTransactionClient interface { + // VoteTransaction casts a vote on a transaction to establish whether the + // node is doing the same change as all the other nodes part of the + // transaction. This RPC blocks until quorum has been reached, which may be + // _before_ all nodes have cast a vote. + // + // This RPC may return one of the following error codes: + // + // - `NotFound` in case the transaction could not be found. + // - `Canceled` in case the transaction has been canceled before quorum was + // reached. VoteTransaction(ctx context.Context, in *VoteTransactionRequest, opts ...grpc.CallOption) (*VoteTransactionResponse, error) + // StopTransaction gracefully stops a transaction. This RPC can be used if + // only a subset of nodes executes specific code which may cause the + // transaction to fail. One such example is Git hooks, which only execute on + // the primary Gitaly noded. Other nodes which vote on this transaction will + // get a response with the `STOP` state being set. + // + // This RPC may return one of the following error codes: + // + // - `NotFound` in case the transaction could not be found. + // - `Canceled` in case the transaction has been canceled before quorum was + // reached. StopTransaction(ctx context.Context, in *StopTransactionRequest, opts ...grpc.CallOption) (*StopTransactionResponse, error) } @@ -52,7 +73,28 @@ func (c *refTransactionClient) StopTransaction(ctx context.Context, in *StopTran // All implementations must embed UnimplementedRefTransactionServer // for forward compatibility type RefTransactionServer interface { + // VoteTransaction casts a vote on a transaction to establish whether the + // node is doing the same change as all the other nodes part of the + // transaction. This RPC blocks until quorum has been reached, which may be + // _before_ all nodes have cast a vote. + // + // This RPC may return one of the following error codes: + // + // - `NotFound` in case the transaction could not be found. + // - `Canceled` in case the transaction has been canceled before quorum was + // reached. VoteTransaction(context.Context, *VoteTransactionRequest) (*VoteTransactionResponse, error) + // StopTransaction gracefully stops a transaction. This RPC can be used if + // only a subset of nodes executes specific code which may cause the + // transaction to fail. One such example is Git hooks, which only execute on + // the primary Gitaly noded. Other nodes which vote on this transaction will + // get a response with the `STOP` state being set. + // + // This RPC may return one of the following error codes: + // + // - `NotFound` in case the transaction could not be found. + // - `Canceled` in case the transaction has been canceled before quorum was + // reached. StopTransaction(context.Context, *StopTransactionRequest) (*StopTransactionResponse, error) mustEmbedUnimplementedRefTransactionServer() } diff --git a/proto/go/gitalypb/wiki.pb.go b/proto/go/gitalypb/wiki.pb.go index 647a412b6..a57413524 100644 --- a/proto/go/gitalypb/wiki.pb.go +++ b/proto/go/gitalypb/wiki.pb.go @@ -20,10 +20,13 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// This comment is left unintentionally blank. type WikiGetAllPagesRequest_SortBy int32 const ( - WikiGetAllPagesRequest_TITLE WikiGetAllPagesRequest_SortBy = 0 + // This comment is left unintentionally blank. + WikiGetAllPagesRequest_TITLE WikiGetAllPagesRequest_SortBy = 0 + // This comment is left unintentionally blank. WikiGetAllPagesRequest_CREATED_AT WikiGetAllPagesRequest_SortBy = 1 ) @@ -66,10 +69,13 @@ func (WikiGetAllPagesRequest_SortBy) EnumDescriptor() ([]byte, []int) { return file_wiki_proto_rawDescGZIP(), []int{9, 0} } +// This comment is left unintentionally blank. type WikiListPagesRequest_SortBy int32 const ( - WikiListPagesRequest_TITLE WikiListPagesRequest_SortBy = 0 + // This comment is left unintentionally blank. + WikiListPagesRequest_TITLE WikiListPagesRequest_SortBy = 0 + // This comment is left unintentionally blank. WikiListPagesRequest_CREATED_AT WikiListPagesRequest_SortBy = 1 ) @@ -112,15 +118,21 @@ func (WikiListPagesRequest_SortBy) EnumDescriptor() ([]byte, []int) { return file_wiki_proto_rawDescGZIP(), []int{11, 0} } +// This comment is left unintentionally blank. type WikiCommitDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + // This comment is left unintentionally blank. + Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + // This comment is left unintentionally blank. + UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + // This comment is left unintentionally blank. UserName []byte `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` } @@ -191,13 +203,16 @@ func (x *WikiCommitDetails) GetUserName() []byte { return nil } +// This comment is left unintentionally blank. type WikiPageVersion struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` - Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` + // This comment is left unintentionally blank. + Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` } func (x *WikiPageVersion) Reset() { @@ -246,19 +261,26 @@ func (x *WikiPageVersion) GetFormat() string { return "" } +// This comment is left unintentionally blank. type WikiPage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // These fields are only present in the first message of a WikiPage stream - Version *WikiPageVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` - Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - UrlPath string `protobuf:"bytes,4,opt,name=url_path,json=urlPath,proto3" json:"url_path,omitempty"` - Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` - Name []byte `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` - Historical bool `protobuf:"varint,7,opt,name=historical,proto3" json:"historical,omitempty"` + Version *WikiPageVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // This comment is left unintentionally blank. + Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` + // This comment is left unintentionally blank. + Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + // This comment is left unintentionally blank. + UrlPath string `protobuf:"bytes,4,opt,name=url_path,json=urlPath,proto3" json:"url_path,omitempty"` + // This comment is left unintentionally blank. + Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Historical bool `protobuf:"varint,7,opt,name=historical,proto3" json:"historical,omitempty"` // This field is present in all messages of a WikiPage stream RawData []byte `protobuf:"bytes,8,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"` } @@ -358,9 +380,12 @@ type WikiWritePageRequest struct { unknownFields protoimpl.UnknownFields // These following fields are only present in the first message. - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // This comment is left unintentionally blank. + Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` + // This comment is left unintentionally blank. CommitDetails *WikiCommitDetails `protobuf:"bytes,4,opt,name=commit_details,json=commitDetails,proto3" json:"commit_details,omitempty"` // This field is present in all messages. Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` @@ -433,11 +458,13 @@ func (x *WikiWritePageRequest) GetContent() []byte { return nil } +// This comment is left unintentionally blank. type WikiWritePageResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. DuplicateError []byte `protobuf:"bytes,1,opt,name=duplicate_error,json=duplicateError,proto3" json:"duplicate_error,omitempty"` } @@ -480,16 +507,21 @@ func (x *WikiWritePageResponse) GetDuplicateError() []byte { return nil } +// This comment is left unintentionally blank. type WikiUpdatePageRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // There fields are only present in the first message of the stream - Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"` - Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - Format string `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"` + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // This comment is left unintentionally blank. + PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"` + // This comment is left unintentionally blank. + Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + // This comment is left unintentionally blank. + Format string `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"` + // This comment is left unintentionally blank. CommitDetails *WikiCommitDetails `protobuf:"bytes,5,opt,name=commit_details,json=commitDetails,proto3" json:"commit_details,omitempty"` // This field is present in all messages Content []byte `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` @@ -569,11 +601,13 @@ func (x *WikiUpdatePageRequest) GetContent() []byte { return nil } +// This comment is left unintentionally blank. type WikiUpdatePageResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } @@ -616,15 +650,20 @@ func (x *WikiUpdatePageResponse) GetError() []byte { return nil } +// This comment is left unintentionally blank. type WikiFindPageRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` - Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` - Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"` + // This comment is left unintentionally blank. + Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + // This comment is left unintentionally blank. + Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` + // This comment is left unintentionally blank. + Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"` // prevents the content from being sent over the response SkipContent bool `protobuf:"varint,5,opt,name=skip_content,json=skipContent,proto3" json:"skip_content,omitempty"` } @@ -703,6 +742,7 @@ type WikiFindPageResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Page *WikiPage `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` } @@ -745,16 +785,20 @@ func (x *WikiFindPageResponse) GetPage() *WikiPage { return nil } +// This comment is left unintentionally blank. type WikiGetAllPagesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Passing 0 means no limit is applied - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - DirectionDesc bool `protobuf:"varint,3,opt,name=direction_desc,json=directionDesc,proto3" json:"direction_desc,omitempty"` - Sort WikiGetAllPagesRequest_SortBy `protobuf:"varint,4,opt,name=sort,proto3,enum=gitaly.WikiGetAllPagesRequest_SortBy" json:"sort,omitempty"` + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // This comment is left unintentionally blank. + DirectionDesc bool `protobuf:"varint,3,opt,name=direction_desc,json=directionDesc,proto3" json:"direction_desc,omitempty"` + // This comment is left unintentionally blank. + Sort WikiGetAllPagesRequest_SortBy `protobuf:"varint,4,opt,name=sort,proto3,enum=gitaly.WikiGetAllPagesRequest_SortBy" json:"sort,omitempty"` } func (x *WikiGetAllPagesRequest) Reset() { @@ -823,6 +867,7 @@ type WikiGetAllPagesResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Page *WikiPage `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // When end_of_page is true it signals a change of page for the next Response message (if any) EndOfPage bool `protobuf:"varint,2,opt,name=end_of_page,json=endOfPage,proto3" json:"end_of_page,omitempty"` @@ -874,17 +919,22 @@ func (x *WikiGetAllPagesResponse) GetEndOfPage() bool { return false } +// This comment is left unintentionally blank. type WikiListPagesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` // Passing 0 means no limit is applied - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - DirectionDesc bool `protobuf:"varint,3,opt,name=direction_desc,json=directionDesc,proto3" json:"direction_desc,omitempty"` - Sort WikiListPagesRequest_SortBy `protobuf:"varint,4,opt,name=sort,proto3,enum=gitaly.WikiListPagesRequest_SortBy" json:"sort,omitempty"` - Offset uint32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // This comment is left unintentionally blank. + DirectionDesc bool `protobuf:"varint,3,opt,name=direction_desc,json=directionDesc,proto3" json:"direction_desc,omitempty"` + // This comment is left unintentionally blank. + Sort WikiListPagesRequest_SortBy `protobuf:"varint,4,opt,name=sort,proto3,enum=gitaly.WikiListPagesRequest_SortBy" json:"sort,omitempty"` + // This comment is left unintentionally blank. + Offset uint32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` } func (x *WikiListPagesRequest) Reset() { @@ -960,6 +1010,7 @@ type WikiListPagesResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // This comment is left unintentionally blank. Page *WikiPage `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` } diff --git a/proto/go/gitalypb/wiki_grpc.pb.go b/proto/go/gitalypb/wiki_grpc.pb.go index 3c1f5bf96..588539968 100644 --- a/proto/go/gitalypb/wiki_grpc.pb.go +++ b/proto/go/gitalypb/wiki_grpc.pb.go @@ -18,11 +18,15 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type WikiServiceClient interface { + // This comment is left unintentionally blank. WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error) + // This comment is left unintentionally blank. WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, error) // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. WikiFindPage(ctx context.Context, in *WikiFindPageRequest, opts ...grpc.CallOption) (WikiService_WikiFindPageClient, error) + // This comment is left unintentionally blank. WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error) + // This comment is left unintentionally blank. WikiListPages(ctx context.Context, in *WikiListPagesRequest, opts ...grpc.CallOption) (WikiService_WikiListPagesClient, error) } @@ -202,11 +206,15 @@ func (x *wikiServiceWikiListPagesClient) Recv() (*WikiListPagesResponse, error) // All implementations must embed UnimplementedWikiServiceServer // for forward compatibility type WikiServiceServer interface { + // This comment is left unintentionally blank. WikiWritePage(WikiService_WikiWritePageServer) error + // This comment is left unintentionally blank. WikiUpdatePage(WikiService_WikiUpdatePageServer) error // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. WikiFindPage(*WikiFindPageRequest, WikiService_WikiFindPageServer) error + // This comment is left unintentionally blank. WikiGetAllPages(*WikiGetAllPagesRequest, WikiService_WikiGetAllPagesServer) error + // This comment is left unintentionally blank. WikiListPages(*WikiListPagesRequest, WikiService_WikiListPagesServer) error mustEmbedUnimplementedWikiServiceServer() } diff --git a/proto/hook.proto b/proto/hook.proto index 2aa7ce855..eda4036cf 100644 --- a/proto/hook.proto +++ b/proto/hook.proto @@ -7,27 +7,39 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// HookService is a service which provides the implementation of a subset of +// Git hooks. These are typically invoked via the `gitaly-hooks` binary to +// ensure that the actual hook logic is executed in the context of the server. service HookService { + + // This comment is left unintentionally blank. rpc PreReceiveHook(stream PreReceiveHookRequest) returns (stream PreReceiveHookResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc PostReceiveHook(stream PostReceiveHookRequest) returns (stream PostReceiveHookResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc UpdateHook(UpdateHookRequest) returns (stream UpdateHookResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc ReferenceTransactionHook(stream ReferenceTransactionHookRequest) returns (stream ReferenceTransactionHookResponse) { option (op_type) = { op: ACCESSOR }; } + // PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses // a unix socket side channel. rpc PackObjectsHookWithSidechannel(PackObjectsHookWithSidechannelRequest) returns (PackObjectsHookWithSidechannelResponse) { @@ -35,71 +47,117 @@ service HookService { op: ACCESSOR }; } + } +// This comment is left unintentionally blank. message PreReceiveHookRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. repeated string environment_variables = 2; + // This comment is left unintentionally blank. bytes stdin = 4; + // This comment is left unintentionally blank. repeated string git_push_options = 5; } +// This comment is left unintentionally blank. message PreReceiveHookResponse{ + // This comment is left unintentionally blank. bytes stdout = 1; + // This comment is left unintentionally blank. bytes stderr = 2; + // This comment is left unintentionally blank. ExitStatus exit_status = 3; } +// This comment is left unintentionally blank. message PostReceiveHookRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. repeated string environment_variables = 2; + // This comment is left unintentionally blank. bytes stdin = 3; + // This comment is left unintentionally blank. repeated string git_push_options = 4; } +// This comment is left unintentionally blank. message PostReceiveHookResponse{ + // This comment is left unintentionally blank. bytes stdout = 1; + // This comment is left unintentionally blank. bytes stderr = 2; + // This comment is left unintentionally blank. ExitStatus exit_status = 3; } +// This comment is left unintentionally blank. message UpdateHookRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. repeated string environment_variables = 2; + // This comment is left unintentionally blank. bytes ref = 3; + // This comment is left unintentionally blank. string old_value = 4; + // This comment is left unintentionally blank. string new_value = 5; } +// This comment is left unintentionally blank. message UpdateHookResponse{ + // This comment is left unintentionally blank. bytes stdout = 1; + // This comment is left unintentionally blank. bytes stderr = 2; + // This comment is left unintentionally blank. ExitStatus exit_status = 3; } +// This comment is left unintentionally blank. message ReferenceTransactionHookRequest { - Repository repository = 1 [(target_repository)=true]; - repeated string environment_variables = 2; - bytes stdin = 3; + // This comment is left unintentionally blank. enum State { + // This comment is left unintentionally blank. PREPARED = 0; + // This comment is left unintentionally blank. COMMITTED = 1; + // This comment is left unintentionally blank. ABORTED = 2; } + + // This comment is left unintentionally blank. + Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. + repeated string environment_variables = 2; + // This comment is left unintentionally blank. + bytes stdin = 3; + // This comment is left unintentionally blank. State state = 4; } +// This comment is left unintentionally blank. message ReferenceTransactionHookResponse { + // This comment is left unintentionally blank. bytes stdout = 1; + // This comment is left unintentionally blank. bytes stderr = 2; + // This comment is left unintentionally blank. ExitStatus exit_status = 3; } +// This comment is left unintentionally blank. message PackObjectsHookWithSidechannelRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // args contains the arguments passed to the pack-objects hook, without the leading "git" repeated string args = 2; } +// This comment is left unintentionally blank. message PackObjectsHookWithSidechannelResponse { } diff --git a/proto/internal.proto b/proto/internal.proto index ce45f9476..a6ccade47 100644 --- a/proto/internal.proto +++ b/proto/internal.proto @@ -20,11 +20,15 @@ service InternalGitaly { } } +// This comment is left unintentionally blank. message WalkReposRequest { + // This comment is left unintentionally blank. string storage_name = 1 [(storage)=true]; } +// This comment is left unintentionally blank. message WalkReposResponse { + // This comment is left unintentionally blank. string relative_path = 1; // modification_time is the modification time of the repository directory. // This can be used as a proxy for when the repository was last diff --git a/proto/lint.proto b/proto/lint.proto index 7ba28288a..6f1d2b1b5 100644 --- a/proto/lint.proto +++ b/proto/lint.proto @@ -6,24 +6,34 @@ import "google/protobuf/descriptor.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// This comment is left unintentionally blank. message OperationMsg { + // This comment is left unintentionally blank. enum Operation { + // This comment is left unintentionally blank. UNKNOWN = 0; + // This comment is left unintentionally blank. MUTATOR = 1; + // This comment is left unintentionally blank. ACCESSOR = 2; + // This comment is left unintentionally blank. MAINTENANCE = 3; } - Operation op = 1; - + // This comment is left unintentionally blank. enum Scope { + // This comment is left unintentionally blank. REPOSITORY = 0; + // This comment is left unintentionally blank. STORAGE = 2; reserved 1; reserved "SERVER"; } + // This comment is left unintentionally blank. + Operation op = 1; + // Scope level indicates what level an RPC interacts with a server: // - REPOSITORY: scoped to only a single repo // - SERVER: affects the entire server and potentially all repos diff --git a/proto/namespace.proto b/proto/namespace.proto index e81ef7224..4b20295eb 100644 --- a/proto/namespace.proto +++ b/proto/namespace.proto @@ -6,61 +6,93 @@ import "lint.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// NamespaceService is a service which provides RPCs to manage namespaces of a +// storage. Namespaces had been used before Gitaly migrated to hashed storages +// and shouldn't be used nowadays anymore. service NamespaceService { + + // This comment is left unintentionally blank. rpc AddNamespace(AddNamespaceRequest) returns (AddNamespaceResponse) { option (op_type) = { op: MUTATOR scope_level: STORAGE, }; } + + // This comment is left unintentionally blank. rpc RemoveNamespace(RemoveNamespaceRequest) returns (RemoveNamespaceResponse) { option (op_type) = { op: MUTATOR scope_level: STORAGE, }; } + + // This comment is left unintentionally blank. rpc RenameNamespace(RenameNamespaceRequest) returns (RenameNamespaceResponse) { option (op_type) = { op: MUTATOR scope_level: STORAGE, }; } + + // This comment is left unintentionally blank. rpc NamespaceExists(NamespaceExistsRequest) returns (NamespaceExistsResponse) { option (op_type) = { op: ACCESSOR scope_level: STORAGE, }; } + } +// This comment is left unintentionally blank. message AddNamespaceRequest { + // This comment is left unintentionally blank. string storage_name = 1 [(storage)=true]; + // This comment is left unintentionally blank. string name = 2; } +// This comment is left unintentionally blank. message RemoveNamespaceRequest { + // This comment is left unintentionally blank. string storage_name = 1 [(storage)=true]; + // This comment is left unintentionally blank. string name = 2; } +// This comment is left unintentionally blank. message RenameNamespaceRequest { + // This comment is left unintentionally blank. string storage_name = 1 [(storage)=true]; + // This comment is left unintentionally blank. string from = 2; + // This comment is left unintentionally blank. string to = 3; } +// This comment is left unintentionally blank. message NamespaceExistsRequest { + // This comment is left unintentionally blank. string storage_name = 1 [(storage)=true]; + // This comment is left unintentionally blank. string name = 2; } +// This comment is left unintentionally blank. message NamespaceExistsResponse { + // This comment is left unintentionally blank. bool exists = 1; } +// This comment is left unintentionally blank. message AddNamespaceResponse { } + +// This comment is left unintentionally blank. message RemoveNamespaceResponse { } + +// This comment is left unintentionally blank. message RenameNamespaceResponse { } diff --git a/proto/objectpool.proto b/proto/objectpool.proto index 748370e31..f2c40a4fe 100644 --- a/proto/objectpool.proto +++ b/proto/objectpool.proto @@ -7,12 +7,20 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// ObjectPoolService is a service containing RPCs to manipulate object pools. +// An object pool is a separate repository that can be linked to from multiple +// satellite repositories in order to deduplicate common objects between them. +// This is mostly used in the contexet of repository forks. service ObjectPoolService { + + // This comment is left unintentionally blank. rpc CreateObjectPool(CreateObjectPoolRequest) returns (CreateObjectPoolResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc DeleteObjectPool(DeleteObjectPoolRequest) returns (DeleteObjectPoolResponse) { option (op_type) = { op: MUTATOR @@ -26,77 +34,114 @@ service ObjectPoolService { }; } + // This comment is left unintentionally blank. rpc ReduplicateRepository(ReduplicateRepositoryRequest) returns (ReduplicateRepositoryResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc DisconnectGitAlternates(DisconnectGitAlternatesRequest) returns (DisconnectGitAlternatesResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc FetchIntoObjectPool(FetchIntoObjectPoolRequest) returns (FetchIntoObjectPoolResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc GetObjectPool(GetObjectPoolRequest) returns (GetObjectPoolResponse) { option (op_type) = { op: ACCESSOR }; } + } // Creates an object pool from the repository. The client is responsible for // joining this pool later with this repository. message CreateObjectPoolRequest { + // This comment is left unintentionally blank. ObjectPool object_pool = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. Repository origin = 2 [(additional_repository)=true]; } + +// This comment is left unintentionally blank. message CreateObjectPoolResponse { } // Removes the directory from disk, caller is responsible for leaving the object // pool before calling this RPC message DeleteObjectPoolRequest { + // This comment is left unintentionally blank. ObjectPool object_pool = 1 [(target_repository)=true]; } + +// This comment is left unintentionally blank. message DeleteObjectPoolResponse { } +// This comment is left unintentionally blank. message LinkRepositoryToObjectPoolRequest { + // This comment is left unintentionally blank. ObjectPool object_pool = 1 [(additional_repository)=true]; + // This comment is left unintentionally blank. Repository repository = 2 [(target_repository)=true]; } + +// This comment is left unintentionally blank. message LinkRepositoryToObjectPoolResponse { } +// This comment is left unintentionally blank. message ReduplicateRepositoryRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } + +// This comment is left unintentionally blank. message ReduplicateRepositoryResponse { } +// This comment is left unintentionally blank. message DisconnectGitAlternatesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message DisconnectGitAlternatesResponse { } +// This comment is left unintentionally blank. message FetchIntoObjectPoolRequest { + // This comment is left unintentionally blank. Repository origin = 1 [(additional_repository)=true]; + // This comment is left unintentionally blank. ObjectPool object_pool = 2 [(target_repository)=true]; + // This comment is left unintentionally blank. bool repack = 3; } + +// This comment is left unintentionally blank. message FetchIntoObjectPoolResponse { } +// This comment is left unintentionally blank. message GetObjectPoolRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message GetObjectPoolResponse { + // This comment is left unintentionally blank. ObjectPool object_pool = 1; } diff --git a/proto/operations.proto b/proto/operations.proto index 023ed3c8b..3db97dc30 100644 --- a/proto/operations.proto +++ b/proto/operations.proto @@ -14,16 +14,22 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; // treated as untrusted. Any reference update is thus checked against GitLab's // '/allowed' endpoint. service OperationService { + + // This comment is left unintentionally blank. rpc UserCreateBranch(UserCreateBranchRequest) returns (UserCreateBranchResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc UserUpdateBranch(UserUpdateBranchRequest) returns (UserUpdateBranchResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc UserDeleteBranch(UserDeleteBranchRequest) returns (UserDeleteBranchResponse) { option (op_type) = { op: MUTATOR @@ -36,6 +42,8 @@ service OperationService { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc UserDeleteTag(UserDeleteTagRequest) returns (UserDeleteTagResponse) { option (op_type) = { op: MUTATOR @@ -140,54 +148,83 @@ service OperationService { op: MUTATOR }; } + } +// This comment is left unintentionally blank. message UserCreateBranchRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes branch_name = 2; + // This comment is left unintentionally blank. User user = 3; + // This comment is left unintentionally blank. bytes start_point = 4; } +// This comment is left unintentionally blank. message UserCreateBranchResponse { + // This comment is left unintentionally blank. Branch branch = 1; // Error returned by the pre-receive hook. If no error was thrown, // it's the empty string ("") string pre_receive_error = 2; } +// This comment is left unintentionally blank. message UserUpdateBranchRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes branch_name = 2; + // This comment is left unintentionally blank. User user = 3; + // This comment is left unintentionally blank. bytes newrev = 4; + // This comment is left unintentionally blank. bytes oldrev = 5; } +// This comment is left unintentionally blank. message UserUpdateBranchResponse { + // This comment is left unintentionally blank. string pre_receive_error = 1; } +// This comment is left unintentionally blank. message UserDeleteBranchRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes branch_name = 2; + // This comment is left unintentionally blank. User user = 3; } +// This comment is left unintentionally blank. message UserDeleteBranchResponse { + // This comment is left unintentionally blank. string pre_receive_error = 1; } +// This comment is left unintentionally blank. message UserDeleteTagRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes tag_name = 2; + // This comment is left unintentionally blank. User user = 3; } +// This comment is left unintentionally blank. message UserDeleteTagResponse { + // This comment is left unintentionally blank. string pre_receive_error = 1; } +// This comment is left unintentionally blank. message UserCreateTagRequest { // repository is the repository in which the tag shall be created. Repository repository = 1 [(target_repository)=true]; @@ -206,6 +243,7 @@ message UserCreateTagRequest { google.protobuf.Timestamp timestamp = 7; } +// This comment is left unintentionally blank. message UserCreateTagResponse { // tag is the newly created tag. Tag tag = 1; @@ -216,6 +254,7 @@ message UserCreateTagResponse { string pre_receive_error = 3; } +// This comment is left unintentionally blank. message UserMergeBranchRequest { // The following parameters must only be set in the first message to declare // parameters for the merge. @@ -243,6 +282,7 @@ message UserMergeBranchRequest { bool apply = 6; } +// This comment is left unintentionally blank. message UserMergeBranchResponse { // First message // The merge commit the branch will be updated to. The caller can still abort the merge. @@ -269,6 +309,7 @@ message UserMergeBranchError { } } +// This comment is left unintentionally blank. message UserMergeToRefRequest { // repository is the repository in which the merge shall be computed. Repository repository = 1 [(target_repository)=true]; @@ -298,6 +339,7 @@ message UserMergeToRefRequest { google.protobuf.Timestamp timestamp = 9; } +// This comment is left unintentionally blank. message UserMergeToRefResponse { // commit_id is the object ID of the computed merge commit. string commit_id = 1; @@ -333,11 +375,15 @@ message UserFFBranchRequest { bytes branch = 4; } +// This comment is left unintentionally blank. message UserFFBranchResponse { + // This comment is left unintentionally blank. OperationBranchUpdate branch_update = 1; + // This comment is left unintentionally blank. string pre_receive_error = 2; } +// This comment is left unintentionally blank. message UserCherryPickRequest { // repository is the repository into which the cherry-pick shall be // performed. @@ -366,6 +412,7 @@ message UserCherryPickRequest { google.protobuf.Timestamp timestamp = 9; } +// This comment is left unintentionally blank. message UserCherryPickResponse { // CreateTreeError represents an error which happened when computing the // cherry-pick. @@ -399,7 +446,7 @@ message UserCherryPickError { oneof error { // CherryPickConflict is returned if there is a conflict when applying the cherry // pick. - MergeConflictError cherry_pick_conflict = 1; + MergeConflictError cherry_pick_conflict = 1; // TargetBranchDiverged is returned whenever the tip commit of the branch we're // about to apply the new commit on is not a direct ancestor of the newly created // cherry-picked commit. This may happen either due to a race where the reference @@ -415,6 +462,7 @@ message UserCherryPickError { } } +// This comment is left unintentionally blank. message UserRevertRequest { // repository is the repository in which the revert shall be applied. Repository repository = 1 [(target_repository)=true]; @@ -442,6 +490,7 @@ message UserRevertRequest { google.protobuf.Timestamp timestamp = 9; } +// This comment is left unintentionally blank. message UserRevertResponse { // CreateTreeError represents an error which happened when computing the // revert. @@ -472,6 +521,7 @@ message UserRevertResponse { // UserCommitFilesActionHeader contains the details of the action to be performed. message UserCommitFilesActionHeader { + // This comment is left unintentionally blank. enum ActionType { // CREATE creates a new file. CREATE = 0; @@ -486,6 +536,7 @@ message UserCommitFilesActionHeader { // CHMOD changes the permissions of an existing file. CHMOD = 5; } + // action is the type of the action taken to build a commit. Not all fields are // used for all of the actions. ActionType action = 1; @@ -582,6 +633,7 @@ message UserCommitFilesResponse { string pre_receive_error = 3; } +// This comment is left unintentionally blank. message UserRebaseConfirmableRequest { // Header contains information to compute the rebase and must be sent as // first message. @@ -624,6 +676,7 @@ message UserRebaseConfirmableRequest { } } +// This comment is left unintentionally blank. message UserRebaseConfirmableResponse { oneof user_rebase_confirmable_response_payload { // The first response will contain the rebase commit the branch will @@ -640,6 +693,7 @@ message UserRebaseConfirmableResponse { string git_error = 4; } +// This comment is left unintentionally blank. message UserSquashRequest { // repository is the repository into which the squashed commit shall be // written. @@ -664,6 +718,7 @@ message UserSquashRequest { reserved "squash_id"; } +// This comment is left unintentionally blank. message UserSquashResponse { // squash_sha is the object ID of the squashed commit. string squash_sha = 1; @@ -677,6 +732,7 @@ message UserSquashResponse { string git_error = 3 [deprecated=true]; } +// This comment is left unintentionally blank. message UserRebaseConfirmableError { oneof error { // RebaseConflict is returned in case rebasing commits on top of the start @@ -701,6 +757,7 @@ message UserSquashError { } } +// This comment is left unintentionally blank. message UserApplyPatchRequest { // Header contains information about how to apply the patches. message Header { @@ -724,11 +781,13 @@ message UserApplyPatchRequest { } } +// This comment is left unintentionally blank. message UserApplyPatchResponse { // branch_update contains information about the updated branch. OperationBranchUpdate branch_update = 1; } +// This comment is left unintentionally blank. message UserUpdateSubmoduleRequest { // repository is the repository in which the submodule shall be updated. Repository repository = 1 [(target_repository)=true]; @@ -750,6 +809,7 @@ message UserUpdateSubmoduleRequest { google.protobuf.Timestamp timestamp = 7; } +// This comment is left unintentionally blank. message UserUpdateSubmoduleResponse { // branch_update contains information about the updated branch. OperationBranchUpdate branch_update = 1; diff --git a/proto/praefect.proto b/proto/praefect.proto index dd3acb431..5991ce58a 100644 --- a/proto/praefect.proto +++ b/proto/praefect.proto @@ -8,9 +8,12 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// PraefectInfoService is a service which provides RPCs to query and modify +// Praefect-specific parameters. service PraefectInfoService { option (intercepted) = true; + // This comment is left unintentionally blank. rpc RepositoryReplicas(RepositoryReplicasRequest) returns (RepositoryReplicasResponse); // DatalossCheck checks for unavailable repositories. @@ -34,8 +37,10 @@ service PraefectInfoService { // from a Praefect node that does not yet know about a new node. As assignments of unconfigured storages are ignored, replication // factor of repositories assigned to a storage node removed from the cluster is effectively decreased. rpc SetReplicationFactor(SetReplicationFactorRequest) returns (SetReplicationFactorResponse); + // GetRepositoryMetadata returns the cluster metadata for a repository. Returns NotFound if the repository does not exist. rpc GetRepositoryMetadata(GetRepositoryMetadataRequest) returns (GetRepositoryMetadataResponse); + } // MarkUnverifiedRequest specifies the replicas which to mark unverified. @@ -68,6 +73,7 @@ message MarkUnverifiedResponse { // GetRepositoryMetadataRequest specifies the repository to retrieve metadata for. message GetRepositoryMetadataRequest { + // This comment is left unintentionally blank. message Path { // virtual_storage is the virtual storage where the repository is. string virtual_storage = 1; @@ -85,6 +91,7 @@ message GetRepositoryMetadataRequest { // GeRepositoryMetadataResponse contains the repository's cluster metadata. message GetRepositoryMetadataResponse { + // This comment is left unintentionally blank. message Replica { // storage is the name of the replica's storage. string storage = 1; @@ -133,24 +140,34 @@ message SetReplicationFactorResponse { repeated string storages = 1; } +// This comment is left unintentionally blank. message SetAuthoritativeStorageRequest { + // This comment is left unintentionally blank. string virtual_storage = 1; + // This comment is left unintentionally blank. string relative_path = 2; + // This comment is left unintentionally blank. string authoritative_storage = 3; } +// This comment is left unintentionally blank. message SetAuthoritativeStorageResponse { } +// This comment is left unintentionally blank. message DatalossCheckRequest { + // This comment is left unintentionally blank. string virtual_storage = 1; // include_partially_unavailable indicates whether to include repositories which are available but // are unavailable on some assigned storages. bool include_partially_replicated = 2; } +// This comment is left unintentionally blank. message DatalossCheckResponse { + // This comment is left unintentionally blank. message Repository { + // This comment is left unintentionally blank. message Storage { // name of the storage string name = 1; @@ -179,16 +196,24 @@ message DatalossCheckResponse { repeated Repository repositories = 2; } +// This comment is left unintentionally blank. message RepositoryReplicasRequest{ + // This comment is left unintentionally blank. Repository repository = 1; } +// This comment is left unintentionally blank. message RepositoryReplicasResponse{ + // This comment is left unintentionally blank. message RepositoryDetails { + // This comment is left unintentionally blank. Repository repository = 1; + // This comment is left unintentionally blank. string checksum = 2; }; + // This comment is left unintentionally blank. RepositoryDetails primary = 1; + // This comment is left unintentionally blank. repeated RepositoryDetails replicas = 2; } diff --git a/proto/ref.proto b/proto/ref.proto index b3697b540..502d86e7f 100644 --- a/proto/ref.proto +++ b/proto/ref.proto @@ -8,50 +8,67 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// RefService is a service that provides RPCs to list and modify Git references. service RefService { + + // This comment is left unintentionally blank. rpc FindDefaultBranchName(FindDefaultBranchNameRequest) returns (FindDefaultBranchNameResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc FindAllBranchNames(FindAllBranchNamesRequest) returns (stream FindAllBranchNamesResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc FindAllTagNames(FindAllTagNamesRequest) returns (stream FindAllTagNamesResponse) { option (op_type) = { op: ACCESSOR }; } + // Return a stream so we can divide the response in chunks of branches rpc FindLocalBranches(FindLocalBranchesRequest) returns (stream FindLocalBranchesResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc FindAllBranches(FindAllBranchesRequest) returns (stream FindAllBranchesResponse) { option (op_type) = { op: ACCESSOR }; } + // Returns a stream of tags repository has. rpc FindAllTags(FindAllTagsRequest) returns (stream FindAllTagsResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc FindTag(FindTagRequest) returns (FindTagResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc FindAllRemoteBranches(FindAllRemoteBranchesRequest) returns (stream FindAllRemoteBranchesResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc RefExists(RefExistsRequest) returns (RefExistsResponse) { option (op_type) = { op: ACCESSOR @@ -65,17 +82,22 @@ service RefService { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc DeleteRefs(DeleteRefsRequest) returns (DeleteRefsResponse) { option (op_type) = { op: MUTATOR }; } + // This comment is left unintentionally blank. rpc ListBranchNamesContainingCommit(ListBranchNamesContainingCommitRequest) returns (stream ListBranchNamesContainingCommitResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc ListTagNamesContainingCommit(ListTagNamesContainingCommitRequest) returns (stream ListTagNamesContainingCommitResponse) { option (op_type) = { op: ACCESSOR @@ -92,6 +114,7 @@ service RefService { }; } + // This comment is left unintentionally blank. rpc GetTagMessages(GetTagMessagesRequest) returns (stream GetTagMessagesResponse) { option (op_type) = { op: ACCESSOR @@ -123,39 +146,60 @@ service RefService { op: ACCESSOR }; } + } +// This comment is left unintentionally blank. message FindDefaultBranchNameRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message FindDefaultBranchNameResponse { + // This comment is left unintentionally blank. bytes name = 1; } +// This comment is left unintentionally blank. message FindAllBranchNamesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message FindAllBranchNamesResponse { + // This comment is left unintentionally blank. repeated bytes names = 1; } +// This comment is left unintentionally blank. message FindAllTagNamesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message FindAllTagNamesResponse { + // This comment is left unintentionally blank. repeated bytes names = 1; } +// This comment is left unintentionally blank. message FindLocalBranchesRequest { - Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. enum SortBy { + // This comment is left unintentionally blank. NAME = 0; + // This comment is left unintentionally blank. UPDATED_ASC = 1; + // This comment is left unintentionally blank. UPDATED_DESC = 2; } + + // This comment is left unintentionally blank. + Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. SortBy sort_by = 2; // The page token is the branch name, with the `refs/heads/` prefix, for // example "refs/heads/master". After the first branch name is encountered @@ -164,27 +208,43 @@ message FindLocalBranchesRequest { PaginationParameter pagination_params = 3; } +// This comment is left unintentionally blank. message FindLocalBranchesResponse { + // This comment is left unintentionally blank. repeated FindLocalBranchResponse branches = 1; } +// This comment is left unintentionally blank. message FindLocalBranchResponse { + // This comment is left unintentionally blank. bytes name = 1; + // This comment is left unintentionally blank. string commit_id = 2; + // This comment is left unintentionally blank. bytes commit_subject = 3; + // This comment is left unintentionally blank. FindLocalBranchCommitAuthor commit_author = 4; + // This comment is left unintentionally blank. FindLocalBranchCommitAuthor commit_committer = 5; + // This comment is left unintentionally blank. GitCommit commit = 6; } +// This comment is left unintentionally blank. message FindLocalBranchCommitAuthor { + // This comment is left unintentionally blank. bytes name = 1; + // This comment is left unintentionally blank. bytes email = 2; + // This comment is left unintentionally blank. google.protobuf.Timestamp date = 3; + // This comment is left unintentionally blank. bytes timezone = 4; } +// This comment is left unintentionally blank. message FindAllBranchesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // Only return branches that are merged into root ref bool merged_only = 2; @@ -193,79 +253,117 @@ message FindAllBranchesRequest { repeated bytes merged_branches = 3; } +// This comment is left unintentionally blank. message FindAllBranchesResponse { + // This comment is left unintentionally blank. message Branch { + // This comment is left unintentionally blank. bytes name = 1; + // This comment is left unintentionally blank. GitCommit target = 2; } + + // This comment is left unintentionally blank. repeated Branch branches = 1; } +// This comment is left unintentionally blank. message FindTagRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes tag_name = 2; } +// This comment is left unintentionally blank. message FindTagResponse { + // This comment is left unintentionally blank. Tag tag = 1; } +// This comment is left unintentionally blank. message FindAllTagsRequest { - Repository repository = 1 [(target_repository)=true]; // SortBy allows to specify desired order of the elements. message SortBy { // Key is a key used for sorting. enum Key { + // This comment is left unintentionally blank. REFNAME = 0; + // This comment is left unintentionally blank. CREATORDATE = 1; } + // This comment is left unintentionally blank. Key key = 1; + // This comment is left unintentionally blank. SortDirection direction = 2; } + // This comment is left unintentionally blank. + Repository repository = 1 [(target_repository)=true]; // SortBy allows to request tags in particular order. SortBy sort_by = 2; - // The page token is the tags name, with the `refs/tags/` prefix, for // example "refs/tags/v1.0.0". When the tag name matches the page token, // the tag following it will be the first result send as part of the response. PaginationParameter pagination_params = 3; } +// This comment is left unintentionally blank. message FindAllTagsResponse { + // This comment is left unintentionally blank. repeated Tag tags = 1; } +// This comment is left unintentionally blank. message RefExistsRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // Any ref, e.g. 'refs/heads/master' or 'refs/tags/v1.0.1'. Must start with 'refs/'. bytes ref = 2; } +// This comment is left unintentionally blank. message RefExistsResponse { + // This comment is left unintentionally blank. bool value = 1; } +// This comment is left unintentionally blank. message CreateBranchRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes name = 2; + // This comment is left unintentionally blank. bytes start_point = 3; } +// This comment is left unintentionally blank. message CreateBranchResponse { + // This comment is left unintentionally blank. enum Status { + // This comment is left unintentionally blank. OK = 0; + // This comment is left unintentionally blank. ERR_EXISTS = 1; + // This comment is left unintentionally blank. ERR_INVALID = 2; + // This comment is left unintentionally blank. ERR_INVALID_START_POINT = 3; } + + // This comment is left unintentionally blank. Status status = 1; + // This comment is left unintentionally blank. Branch branch = 2; } +// This comment is left unintentionally blank. message DeleteBranchRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes name = 2; } @@ -273,6 +371,7 @@ message DeleteBranchRequest { message DeleteBranchResponse { } +// This comment is left unintentionally blank. message FindBranchRequest { // repository is the repository in which the branch should be looked up. Repository repository = 1 [(target_repository)=true]; @@ -281,46 +380,61 @@ message FindBranchRequest { bytes name = 2; } +// This comment is left unintentionally blank. message FindBranchResponse { + // This comment is left unintentionally blank. Branch branch = 1; } +// This comment is left unintentionally blank. message DeleteRefsRequest{ + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // The following two fields are mutually exclusive repeated bytes except_with_prefix = 2; // protolint:disable:this REPEATED_FIELD_NAMES_PLURALIZED + // This comment is left unintentionally blank. repeated bytes refs = 3; } +// This comment is left unintentionally blank. message DeleteRefsResponse { + // This comment is left unintentionally blank. string git_error = 1; } +// This comment is left unintentionally blank. message ListBranchNamesContainingCommitRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string commit_id = 2; - // Limit the number of tag names to be returned // If the limit is set to zero, all items will be returned uint32 limit = 3; } +// This comment is left unintentionally blank. message ListBranchNamesContainingCommitResponse { reserved 1; + // This comment is left unintentionally blank. repeated bytes branch_names = 2; } +// This comment is left unintentionally blank. message ListTagNamesContainingCommitRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string commit_id = 2; - // Limit the number of tag names to be returned // If the limit is set to zero, all items will be returned uint32 limit = 3; } +// This comment is left unintentionally blank. message ListTagNamesContainingCommitResponse { reserved 1; + // This comment is left unintentionally blank. repeated bytes tag_names = 2; } @@ -355,33 +469,45 @@ message GetTagSignaturesResponse { repeated TagSignature signatures = 1; } +// This comment is left unintentionally blank. message GetTagMessagesRequest { reserved 2; reserved "tag_names"; + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. repeated string tag_ids = 3; } +// This comment is left unintentionally blank. message GetTagMessagesResponse { reserved 1; reserved "tag_name"; + // This comment is left unintentionally blank. bytes message = 2; // Only present for a new tag message string tag_id = 3; } +// This comment is left unintentionally blank. message FindAllRemoteBranchesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string remote_name = 2; } +// This comment is left unintentionally blank. message FindAllRemoteBranchesResponse { + // This comment is left unintentionally blank. repeated Branch branches = 1; } +// This comment is left unintentionally blank. message PackRefsRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // DEPRECATED: https://gitlab.com/gitlab-org/gitaly/-/issues/3997 @@ -389,34 +515,41 @@ message PackRefsRequest { reserved "all_refs"; } +// This comment is left unintentionally blank. message PackRefsResponse{ } // ListRefsRequest is a request for the ListRefs RPC. message ListRefsRequest { - // Repository is the repository in which references should be listed in. - Repository repository = 1 [(target_repository)=true]; - // Patterns contains all patterns which shall be listed. Patterns should be in the format - // accepted by git-for-each-ref(1). At least one pattern must be given, otherwise an error - // is returned. Patterns which don't match any reference will be silently ignored. - repeated bytes patterns = 2; - // Head determines whether the RPC should also return the HEAD reference. By default, - // pseudo-refs are not included in the response. - bool head = 3; - + // This comment is left unintentionally blank. message SortBy { + // This comment is left unintentionally blank. enum Key { + // This comment is left unintentionally blank. REFNAME = 0; + // This comment is left unintentionally blank. CREATORDATE = 1; + // This comment is left unintentionally blank. AUTHORDATE = 2; + // This comment is left unintentionally blank. COMMITTERDATE = 3; } // Key is a key used for sorting. Key key = 1; + // This comment is left unintentionally blank. SortDirection direction = 2; } + // Repository is the repository in which references should be listed in. + Repository repository = 1 [(target_repository)=true]; + // Patterns contains all patterns which shall be listed. Patterns should be in the format + // accepted by git-for-each-ref(1). At least one pattern must be given, otherwise an error + // is returned. Patterns which don't match any reference will be silently ignored. + repeated bytes patterns = 2; + // Head determines whether the RPC should also return the HEAD reference. By default, + // pseudo-refs are not included in the response. + bool head = 3; // SortBy allows to request SHAs in particular order. SortBy sort_by = 4; } @@ -436,6 +569,7 @@ message ListRefsResponse{ repeated Reference references = 1; } +// This comment is left unintentionally blank. message FindRefsByOIDRequest { // repository is the repository in which references will be looked for. Repository repository = 1 [(target_repository)=true]; @@ -452,6 +586,7 @@ message FindRefsByOIDRequest { uint32 limit = 5; } +// This comment is left unintentionally blank. message FindRefsByOIDResponse { // refs is the set of fully-qualified references which have been found. repeated string refs = 1; diff --git a/proto/remote.proto b/proto/remote.proto index 869f96331..0dfe9d75a 100644 --- a/proto/remote.proto +++ b/proto/remote.proto @@ -7,6 +7,8 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// RemoteService is a service providing RPCs to interact with a remote +// repository that is hosted on another Git server. service RemoteService { // UpdateRemoteMirror compares the references in the target repository and its remote mirror @@ -19,6 +21,8 @@ service RemoteService { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc FindRemoteRepository(FindRemoteRepositoryRequest) returns (FindRemoteRepositoryResponse) { option (op_type) = { op: ACCESSOR @@ -38,7 +42,9 @@ service RemoteService { } } +// This comment is left unintentionally blank. message UpdateRemoteMirrorRequest { + // This comment is left unintentionally blank. message Remote { // URL is the URL of the remote repository. string url = 1; @@ -78,13 +84,16 @@ message UpdateRemoteMirrorRequest { reserved "ref_name"; } +// This comment is left unintentionally blank. message UpdateRemoteMirrorResponse { // DivergentRefs contains a list of references that had diverged in the // mirror from the source repository. repeated bytes divergent_refs = 1; } +// This comment is left unintentionally blank. message FindRemoteRepositoryRequest { + // This comment is left unintentionally blank. string remote = 1; // This field is used to redirect request to proper storage where it can be handled. // As of now it doesn't matter what storage will be used, but it still must be a valid. @@ -95,6 +104,7 @@ message FindRemoteRepositoryRequest { // This migth throw a GRPC Unavailable code, to signal the request failure // is transient. message FindRemoteRepositoryResponse { + // This comment is left unintentionally blank. bool exists = 1; } diff --git a/proto/repository.proto b/proto/repository.proto index ad6c06f09..9f8c51d95 100644 --- a/proto/repository.proto +++ b/proto/repository.proto @@ -7,7 +7,10 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// RepositoryService is a service providing RPCs accessing repositories as a whole. service RepositoryService { + + // This comment is left unintentionally blank. rpc RepositoryExists(RepositoryExistsRequest) returns (RepositoryExistsResponse) { option (op_type) = { op: ACCESSOR @@ -54,11 +57,14 @@ service RepositoryService { }; } + // This comment is left unintentionally blank. rpc RepositorySize(RepositorySizeRequest) returns (RepositorySizeResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc ApplyGitattributes(ApplyGitattributesRequest) returns (ApplyGitattributesResponse) { option (op_type) = { op: MUTATOR @@ -72,16 +78,22 @@ service RepositoryService { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc CreateRepository(CreateRepositoryRequest) returns (CreateRepositoryResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc GetArchive(GetArchiveRequest) returns (stream GetArchiveResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc HasLocalBranches(HasLocalBranchesRequest) returns (HasLocalBranchesResponse) { option (op_type) = { op: ACCESSOR @@ -95,27 +107,36 @@ service RepositoryService { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc Fsck(FsckRequest) returns (FsckResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc WriteRef(WriteRefRequest) returns (WriteRefResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc FindMergeBase(FindMergeBaseRequest) returns (FindMergeBaseResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc CreateFork(CreateForkRequest) returns (CreateForkResponse) { option (op_type) = { op: MUTATOR }; } + // This comment is left unintentionally blank. rpc CreateRepositoryFromURL(CreateRepositoryFromURLRequest) returns (CreateRepositoryFromURLResponse) { option (op_type) = { op: MUTATOR @@ -146,6 +167,7 @@ service RepositoryService { }; } + // This comment is left unintentionally blank. rpc CreateRepositoryFromBundle(stream CreateRepositoryFromBundleRequest) returns (CreateRepositoryFromBundleResponse) { option (op_type) = { op: MUTATOR @@ -160,16 +182,21 @@ service RepositoryService { }; } + // This comment is left unintentionally blank. rpc FindLicense(FindLicenseRequest) returns (FindLicenseResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc GetInfoAttributes(GetInfoAttributesRequest) returns (stream GetInfoAttributesResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc CalculateChecksum(CalculateChecksumRequest) returns (CalculateChecksumResponse) { option (op_type) = { op: ACCESSOR @@ -184,46 +211,62 @@ service RepositoryService { }; } + // This comment is left unintentionally blank. rpc GetSnapshot(GetSnapshotRequest) returns (stream GetSnapshotResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc CreateRepositoryFromSnapshot(CreateRepositoryFromSnapshotRequest) returns (CreateRepositoryFromSnapshotResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc GetRawChanges(GetRawChangesRequest) returns (stream GetRawChangesResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc SearchFilesByContent(SearchFilesByContentRequest) returns (stream SearchFilesByContentResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc SearchFilesByName(SearchFilesByNameRequest) returns (stream SearchFilesByNameResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc RestoreCustomHooks(stream RestoreCustomHooksRequest) returns (RestoreCustomHooksResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc BackupCustomHooks(BackupCustomHooksRequest) returns (stream BackupCustomHooksResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc GetObjectDirectorySize(GetObjectDirectorySizeRequest) returns (GetObjectDirectorySizeResponse) { option (op_type) = { op: ACCESSOR }; } + // RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and // eventually remove it. This ensures that even on networked filesystems the // data is actually removed even if there's someone still handling the data. @@ -232,11 +275,15 @@ service RepositoryService { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc RenameRepository(RenameRepositoryRequest) returns (RenameRepositoryResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc ReplicateRepository(ReplicateRepositoryRequest) returns (ReplicateRepositoryResponse) { option (op_type) = { op: MUTATOR @@ -283,38 +330,55 @@ service RepositoryService { } } +// This comment is left unintentionally blank. message RepositoryExistsRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message RepositoryExistsResponse { + // This comment is left unintentionally blank. bool exists = 1; } +// This comment is left unintentionally blank. message RepackIncrementalRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message RepackIncrementalResponse { } +// This comment is left unintentionally blank. message RepackFullRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bool create_bitmap = 2; } +// This comment is left unintentionally blank. message RepackFullResponse { } +// This comment is left unintentionally blank. message MidxRepackRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message MidxRepackResponse { } +// This comment is left unintentionally blank. message GarbageCollectRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bool create_bitmap = 2; // If set to 'true' the 'gc' will be triggered with '--prune=30.minutes.ago' flag. // This will remove dangling objects from the object storage that were not modified in the last 30 minutes. @@ -324,48 +388,65 @@ message GarbageCollectRequest { bool prune = 3; } +// This comment is left unintentionally blank. message GarbageCollectResponse { } +// This comment is left unintentionally blank. message WriteCommitGraphRequest { + // This comment is left unintentionally blank. enum SplitStrategy { // SizeMultiple requires to use '--split --size-multiple=4' strategy to create/update commit graph. // https://git-scm.com/docs/git-commit-graph#Documentation/git-commit-graph.txt-emwriteem // It is a default, there is no need to explicitly set it in the request. SizeMultiple = 0; // protolint:disable:this ENUM_FIELD_NAMES_UPPER_SNAKE_CASE } + + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // SplitStrategy is a strategy used to create/update commit graph. SplitStrategy splitStrategy = 2; // protolint:disable:this FIELD_NAMES_LOWER_SNAKE_CASE } +// This comment is left unintentionally blank. message WriteCommitGraphResponse { } +// This comment is left unintentionally blank. message CleanupRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message CleanupResponse { } +// This comment is left unintentionally blank. message RepositorySizeRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message RepositorySizeResponse { // Repository size in kilobytes int64 size = 1; } +// This comment is left unintentionally blank. message ApplyGitattributesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes revision = 2; } +// This comment is left unintentionally blank. message ApplyGitattributesResponse { } +// This comment is left unintentionally blank. message FetchBundleRequest { // Repository into which the reference shall be fetched. Repository repository = 1 [(target_repository)=true]; @@ -377,10 +458,13 @@ message FetchBundleRequest { bool update_head = 3; } +// This comment is left unintentionally blank. message FetchBundleResponse { } +// This comment is left unintentionally blank. message FetchRemoteRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // force determines if references should be force-updated in case they have // diverged. @@ -389,7 +473,9 @@ message FetchRemoteRequest { bool no_tags = 4; // timeout specifies a timeout for the fetch. int32 timeout = 5; + // This comment is left unintentionally blank. string ssh_key = 6; + // This comment is left unintentionally blank. string known_hosts = 7; reserved 8; // no_prune will the fetch to not prune remote references which do not exist @@ -407,6 +493,7 @@ message FetchRemoteRequest { reserved "remote"; } +// This comment is left unintentionally blank. message FetchRemoteResponse { // If check_tags_changed was set in the FetchRemoteRequest, the FetchRemote // RPC will return false when no tags were changed, and true if tags were @@ -414,7 +501,9 @@ message FetchRemoteResponse { bool tags_changed = 1; } +// This comment is left unintentionally blank. message CreateRepositoryRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // Provide a branch name to set as the default branch of a newly created // repository. Note, this will be treated as the branch name and not a @@ -422,22 +511,35 @@ message CreateRepositoryRequest { bytes default_branch = 2; } +// This comment is left unintentionally blank. message CreateRepositoryResponse { } +// This comment is left unintentionally blank. message GetArchiveRequest { + // This comment is left unintentionally blank. enum Format { + // This comment is left unintentionally blank. ZIP = 0; + // This comment is left unintentionally blank. TAR = 1; + // This comment is left unintentionally blank. TAR_GZ = 2; + // This comment is left unintentionally blank. TAR_BZ2 = 3; } + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string commit_id = 2; + // This comment is left unintentionally blank. string prefix = 3; + // This comment is left unintentionally blank. Format format = 4; + // This comment is left unintentionally blank. bytes path = 5; + // This comment is left unintentionally blank. repeated bytes exclude = 6; // protolint:disable:this REPEATED_FIELD_NAMES_PLURALIZED // If `elide_path` is true and `path` refers to a subdirectory, that // subdirectory will be elided from archive entries. For example, if `dir` @@ -446,21 +548,29 @@ message GetArchiveRequest { // `README.md`. `elide_path` has no effect if `path` refers to the repository // root. `elide_path = true` is not supported if `path` refers to a file. bool elide_path = 7; + // This comment is left unintentionally blank. bool include_lfs_blobs = 8; } +// This comment is left unintentionally blank. message GetArchiveResponse { + // This comment is left unintentionally blank. bytes data = 1; } +// This comment is left unintentionally blank. message HasLocalBranchesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message HasLocalBranchesResponse { + // This comment is left unintentionally blank. bool value = 1; } +// This comment is left unintentionally blank. message FetchSourceBranchRequest { // Repository into which the reference shall be fetched. After a successful // call, it should contain the target reference which points to the same @@ -475,38 +585,52 @@ message FetchSourceBranchRequest { bytes target_ref = 4; } +// This comment is left unintentionally blank. message FetchSourceBranchResponse { // True if the source branch was successfully fetched into the target // repository, false if resolving the remote reference or fetching it failed. bool result = 1; } +// This comment is left unintentionally blank. message FsckRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message FsckResponse { + // This comment is left unintentionally blank. bytes error = 1; } +// This comment is left unintentionally blank. message WriteRefRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes ref = 2; + // This comment is left unintentionally blank. bytes revision = 3; + // This comment is left unintentionally blank. bytes old_revision = 4; + // This comment is left unintentionally blank. bool force = 5; // This used to be a boolean indicating whether or not to shell out or use // the rugged implementation reserved 6; } +// This comment is left unintentionally blank. message WriteRefResponse { // This used to contain an error message. Since we're shelling out // all exceptions are wrapped in GRPC errors. reserved 1; } +// This comment is left unintentionally blank. message FindMergeBaseRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // We use a repeated field because rugged supports finding a base // for more than 2 revisions, so if we needed that in the future we don't @@ -514,20 +638,29 @@ message FindMergeBaseRequest { repeated bytes revisions = 2; } +// This comment is left unintentionally blank. message FindMergeBaseResponse { + // This comment is left unintentionally blank. string base = 1; } +// This comment is left unintentionally blank. message CreateForkRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. Repository source_repository = 2; } +// This comment is left unintentionally blank. message CreateForkResponse { } +// This comment is left unintentionally blank. message CreateRepositoryFromURLRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string url = 2; // HttpHost is the hostname of the remote repository. Use this when the // URL hostname has already been resolved to an IP address to prevent DNS @@ -544,17 +677,23 @@ message CreateRepositoryFromURLRequest { bool mirror = 5; } +// This comment is left unintentionally blank. message CreateRepositoryFromURLResponse { } +// This comment is left unintentionally blank. message CreateBundleRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message CreateBundleResponse { + // This comment is left unintentionally blank. bytes data = 1; } +// This comment is left unintentionally blank. message CreateBundleFromRefListRequest { // Repository is the repository that the bundle is created from. Repository repository = 1 [(target_repository)=true]; @@ -565,7 +704,9 @@ message CreateBundleFromRefListRequest { repeated bytes patterns = 2; } +// This comment is left unintentionally blank. message CreateBundleFromRefListResponse { + // This comment is left unintentionally blank. bytes data = 1; } @@ -582,66 +723,97 @@ message GetConfigResponse { bytes data = 1; } +// This comment is left unintentionally blank. message RestoreCustomHooksRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes data = 2; } +// This comment is left unintentionally blank. message RestoreCustomHooksResponse { } +// This comment is left unintentionally blank. message BackupCustomHooksRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message BackupCustomHooksResponse { + // This comment is left unintentionally blank. bytes data = 1; } +// This comment is left unintentionally blank. message CreateRepositoryFromBundleRequest { // Only available on the first message Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes data = 2; } +// This comment is left unintentionally blank. message CreateRepositoryFromBundleResponse { } +// This comment is left unintentionally blank. message FindLicenseRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message FindLicenseResponse { + // This comment is left unintentionally blank. string license_short_name = 1; } +// This comment is left unintentionally blank. message GetInfoAttributesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message GetInfoAttributesResponse { + // This comment is left unintentionally blank. bytes attributes = 1; } +// This comment is left unintentionally blank. message CalculateChecksumRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message CalculateChecksumResponse { + // This comment is left unintentionally blank. string checksum = 1; } +// This comment is left unintentionally blank. message GetSnapshotRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message GetSnapshotResponse { + // This comment is left unintentionally blank. bytes data = 1; } +// This comment is left unintentionally blank. message CreateRepositoryFromSnapshotRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string http_url = 2; + // This comment is left unintentionally blank. string http_auth = 3; // HttpHost is the hostname of the remote snapshot. Use this when the // URL hostname has already been resolved to an IP address to prevent DNS @@ -649,28 +821,45 @@ message CreateRepositoryFromSnapshotRequest { string http_host = 4; } +// This comment is left unintentionally blank. message CreateRepositoryFromSnapshotResponse { } +// This comment is left unintentionally blank. message GetRawChangesRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string from_revision = 2; + // This comment is left unintentionally blank. string to_revision = 3; } +// This comment is left unintentionally blank. message GetRawChangesResponse { + // This comment is left unintentionally blank. message RawChange { + // This comment is left unintentionally blank. enum Operation { + // This comment is left unintentionally blank. UNKNOWN = 0; + // This comment is left unintentionally blank. ADDED = 1; + // This comment is left unintentionally blank. COPIED = 2; + // This comment is left unintentionally blank. DELETED = 3; + // This comment is left unintentionally blank. MODIFIED = 4; + // This comment is left unintentionally blank. RENAMED = 5; + // This comment is left unintentionally blank. TYPE_CHANGED = 6; } + // This comment is left unintentionally blank. string blob_id = 1; + // This comment is left unintentionally blank. int64 size= 2; // This used to be a string that is now represented by the field 9 as byte array. @@ -680,22 +869,32 @@ message GetRawChangesResponse { reserved 4; reserved "old_path"; + // This comment is left unintentionally blank. Operation operation= 5; + // This comment is left unintentionally blank. string raw_operation = 6; + // This comment is left unintentionally blank. int32 old_mode = 7; + // This comment is left unintentionally blank. int32 new_mode = 8; // the following fields, 9 and 10, will eventually replace 3 and 4 bytes new_path_bytes = 9; + // This comment is left unintentionally blank. bytes old_path_bytes = 10; } + // This comment is left unintentionally blank. repeated RawChange raw_changes = 1; } +// This comment is left unintentionally blank. message SearchFilesByNameRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string query = 2; + // This comment is left unintentionally blank. bytes ref = 3; // If `filter` is specified and non-empty, it will be parsed as a regular // expression and used to filter the result set before it is transmitted. It is @@ -705,20 +904,31 @@ message SearchFilesByNameRequest { string filter = 4; } +// This comment is left unintentionally blank. message SearchFilesByNameResponse { + // This comment is left unintentionally blank. repeated bytes files = 1; } +// This comment is left unintentionally blank. message SearchFilesByContentRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string query = 2; + // This comment is left unintentionally blank. bytes ref = 3; + // This comment is left unintentionally blank. bool chunked_response = 4; } +// This comment is left unintentionally blank. message SearchFilesByContentResponse { + // This comment is left unintentionally blank. repeated bytes matches = 1; + // This comment is left unintentionally blank. bytes match_data = 2; + // This comment is left unintentionally blank. bool end_of_match = 3; } @@ -756,47 +966,66 @@ message Remote { reserved "name"; } +// This comment is left unintentionally blank. message GetObjectDirectorySizeRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message GetObjectDirectorySizeResponse { // Object directory size in kilobytes int64 size = 1; } +// This comment is left unintentionally blank. message RemoveRepositoryRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message RemoveRepositoryResponse { } + +// This comment is left unintentionally blank. message RenameRepositoryRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. string relative_path = 2; } +// This comment is left unintentionally blank. message RenameRepositoryResponse{ } +// This comment is left unintentionally blank. message ReplicateRepositoryRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. Repository source = 2; } +// This comment is left unintentionally blank. message ReplicateRepositoryResponse{ } +// This comment is left unintentionally blank. message OptimizeRepositoryRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } +// This comment is left unintentionally blank. message OptimizeRepositoryResponse{ } // PruneUnreachableObjectsRequest is a request for the PruneUnreachableObjects // RPC call. message PruneUnreachableObjectsRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; } diff --git a/proto/server.proto b/proto/server.proto index 35be64925..c7d67f93d 100644 --- a/proto/server.proto +++ b/proto/server.proto @@ -6,49 +6,74 @@ import "lint.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// ServerService is a service that provides information about a Gitaly server. service ServerService { option (intercepted) = true; + // This comment is left unintentionally blank. rpc ServerInfo(ServerInfoRequest) returns (ServerInfoResponse); + + // This comment is left unintentionally blank. rpc DiskStatistics(DiskStatisticsRequest) returns (DiskStatisticsResponse); + // ClockSynced checks if machine clock is synced // (the offset is less that the one passed in the request). - rpc ClockSynced(ClockSyncedRequest) returns (ClockSyncedResponse) {} + rpc ClockSynced(ClockSyncedRequest) returns (ClockSyncedResponse); + } +// This comment is left unintentionally blank. message ServerInfoRequest { } +// This comment is left unintentionally blank. message ServerInfoResponse { + // This comment is left unintentionally blank. message StorageStatus { + // This comment is left unintentionally blank. string storage_name = 1; + // This comment is left unintentionally blank. bool readable = 2; + // This comment is left unintentionally blank. bool writeable = 3; + // This comment is left unintentionally blank. string fs_type = 4; + // This comment is left unintentionally blank. string filesystem_id = 5; + // This comment is left unintentionally blank. uint32 replication_factor = 6; } + // This comment is left unintentionally blank. string server_version = 1; + // This comment is left unintentionally blank. string git_version = 2; + // This comment is left unintentionally blank. repeated StorageStatus storage_statuses = 3; } +// This comment is left unintentionally blank. message DiskStatisticsRequest { } +// This comment is left unintentionally blank. message DiskStatisticsResponse { + // This comment is left unintentionally blank. message StorageStatus { // When both available and used fields are equal 0 that means that // Gitaly was unable to determine storage stats. string storage_name = 1; + // This comment is left unintentionally blank. int64 available = 2; + // This comment is left unintentionally blank. int64 used = 3; } + // This comment is left unintentionally blank. repeated StorageStatus storage_statuses = 1; } +// This comment is left unintentionally blank. message ClockSyncedRequest { // ntp_host is a URL to the external NTP service that should be used for clock sync check. // Default is ntp.pool.org @@ -57,6 +82,7 @@ message ClockSyncedRequest { int64 drift_threshold_millis = 2; } +// This comment is left unintentionally blank. message ClockSyncedResponse { // synced is set to true if system clock has an affordable drift compared to NTP service. bool synced = 1; diff --git a/proto/shared.proto b/proto/shared.proto index e5bb6a9f7..8f5d04d99 100644 --- a/proto/shared.proto +++ b/proto/shared.proto @@ -7,28 +7,42 @@ import "lint.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// This comment is left unintentionally blank. enum ObjectType { + // This comment is left unintentionally blank. UNKNOWN = 0; + // This comment is left unintentionally blank. COMMIT = 1; + // This comment is left unintentionally blank. BLOB = 2; + // This comment is left unintentionally blank. TREE = 3; + // This comment is left unintentionally blank. TAG = 4; } +// This comment is left unintentionally blank. enum SignatureType { + // This comment is left unintentionally blank. NONE = 0; + // This comment is left unintentionally blank. PGP = 1; + // This comment is left unintentionally blank. X509 = 2; + // This comment is left unintentionally blank. SSH = 3; // maybe add X509+TSA or other combinations at a later step } +// This comment is left unintentionally blank. message Repository { // DEPRECATED: https://gitlab.com/gitlab-org/gitaly/issues/151 reserved 1; reserved "path"; + // This comment is left unintentionally blank. string storage_name = 2; + // This comment is left unintentionally blank. string relative_path = 3; // Sets the GIT_OBJECT_DIRECTORY envvar on git commands to the value of this field. // It influences the object storage directory the SHA1 directories are created underneath. @@ -60,18 +74,24 @@ message CommitTrailer { // Corresponds to Gitlab::Git::Commit message GitCommit { + // This comment is left unintentionally blank. string id = 1; + // This comment is left unintentionally blank. bytes subject = 2; + // This comment is left unintentionally blank. bytes body = 3; + // This comment is left unintentionally blank. CommitAuthor author = 4; + // This comment is left unintentionally blank. CommitAuthor committer = 5; + // This comment is left unintentionally blank. repeated string parent_ids = 6; // If body exceeds a certain threshold, it will be nullified, // but its size will be set in body_size so we can know if // a commit had a body in the first place. int64 body_size = 7; + // This comment is left unintentionally blank. SignatureType signature_type = 8; - // The tree ID will always be filled, even if the tree is empty. In that case // the value will be `4b825dc642cb6eb9a060e54bf8d69288fbee4904`. // That value is equivalent to `git hash-object -t tree /dev/null` @@ -83,50 +103,74 @@ message GitCommit { repeated CommitTrailer trailers = 10; } +// This comment is left unintentionally blank. message CommitAuthor { + // This comment is left unintentionally blank. bytes name = 1; + // This comment is left unintentionally blank. bytes email = 2; + // This comment is left unintentionally blank. google.protobuf.Timestamp date = 3; + // This comment is left unintentionally blank. bytes timezone = 4; } +// This comment is left unintentionally blank. message ExitStatus { + // This comment is left unintentionally blank. int32 value = 1; } // Corresponds to Gitlab::Git::Branch message Branch { + // This comment is left unintentionally blank. bytes name = 1; + // This comment is left unintentionally blank. GitCommit target_commit = 2; } +// This comment is left unintentionally blank. message Tag { + // This comment is left unintentionally blank. bytes name = 1; + // This comment is left unintentionally blank. string id = 2; + // This comment is left unintentionally blank. GitCommit target_commit = 3; // If message exceeds a certain threshold, it will be nullified, // but its size will be set in message_size so we can know if // a tag had a message in the first place. bytes message = 4; + // This comment is left unintentionally blank. int64 message_size = 5; + // This comment is left unintentionally blank. CommitAuthor tagger = 6; + // This comment is left unintentionally blank. SignatureType signature_type = 7; } +// This comment is left unintentionally blank. message User { + // This comment is left unintentionally blank. string gl_id = 1; + // This comment is left unintentionally blank. bytes name = 2; + // This comment is left unintentionally blank. bytes email = 3; + // This comment is left unintentionally blank. string gl_username = 4; // Timezone is the timezone as configured by the user in the web interface. This // timezone may be used when new commits are created via RPC calls. string timezone = 5; } +// This comment is left unintentionally blank. message ObjectPool { + // This comment is left unintentionally blank. Repository repository = 1 [(gitaly.repository)=true]; } +// This comment is left unintentionally blank. message PaginationParameter { // Instructs pagination to start sending results after the provided page // token appears. A page token allows for a generic pattern to uniquely @@ -143,6 +187,7 @@ message PaginationParameter { int32 limit = 2; } +// This comment is left unintentionally blank. message PaginationCursor { // To the caller, this is an opaque token to indicate what the caller // should present as a page_token to get subsequent results. diff --git a/proto/smarthttp.proto b/proto/smarthttp.proto index 2b8fdc97f..16d3a3577 100644 --- a/proto/smarthttp.proto +++ b/proto/smarthttp.proto @@ -7,6 +7,8 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// SmartHTTPService is a service that provides RPCs required for HTTP-based Git +// clones via the smart HTTP protocol. service SmartHTTPService { // The response body for GET /info/refs?service=git-upload-pack // Will be invoked when the user executes a `git fetch`, meaning the server @@ -48,7 +50,9 @@ service SmartHTTPService { } } +// This comment is left unintentionally blank. message InfoRefsRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; // Parameters to use with git -c (key=value pairs) repeated string git_config_options = 2; @@ -57,10 +61,13 @@ message InfoRefsRequest { string git_protocol = 3; } +// This comment is left unintentionally blank. message InfoRefsResponse { + // This comment is left unintentionally blank. bytes data = 1; } +// This comment is left unintentionally blank. message PostUploadPackRequest { // repository should only be present in the first message of the stream Repository repository = 1 [(target_repository)=true]; @@ -73,11 +80,13 @@ message PostUploadPackRequest { string git_protocol = 4; } +// This comment is left unintentionally blank. message PostUploadPackResponse { // Raw data from stdout of 'git upload-pack' bytes data = 1; } +// This comment is left unintentionally blank. message PostUploadPackWithSidechannelRequest { // repository should only be present in the first message of the stream Repository repository = 1 [(target_repository)=true]; @@ -87,9 +96,11 @@ message PostUploadPackWithSidechannelRequest { string git_protocol = 3; } +// This comment is left unintentionally blank. message PostUploadPackWithSidechannelResponse { } +// This comment is left unintentionally blank. message PostReceivePackRequest { // repository should only be present in the first message of the stream Repository repository = 1 [(target_repository)=true]; @@ -98,7 +109,9 @@ message PostReceivePackRequest { // gl_id, gl_repository, and gl_username become env variables, used by the Git {pre,post}-receive // hooks. They should only be present in the first message of the stream. string gl_id = 3; + // This comment is left unintentionally blank. string gl_repository = 4; + // This comment is left unintentionally blank. string gl_username = 5; // Git protocol version string git_protocol = 6; @@ -107,6 +120,7 @@ message PostReceivePackRequest { repeated string git_config_options = 7; } +// This comment is left unintentionally blank. message PostReceivePackResponse { // Raw data from stdout of 'git receive-pack' bytes data = 1; diff --git a/proto/ssh.proto b/proto/ssh.proto index fbbb734bd..73f9844a5 100644 --- a/proto/ssh.proto +++ b/proto/ssh.proto @@ -7,6 +7,7 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// SSHService is a service that provides RPCs required for SSH-based Git clones. service SSHService { // To forward 'git upload-pack' to Gitaly for SSH sessions rpc SSHUploadPack(stream SSHUploadPackRequest) returns (stream SSHUploadPackResponse) { @@ -37,6 +38,7 @@ service SSHService { } } +// This comment is left unintentionally blank. message SSHUploadPackRequest { // 'repository' must be present in the first message. Repository repository = 1 [(target_repository)=true]; @@ -52,6 +54,7 @@ message SSHUploadPackRequest { string git_protocol = 5; } +// This comment is left unintentionally blank. message SSHUploadPackResponse { // A chunk of raw data from 'git upload-pack' standard output bytes stdout = 1; @@ -62,6 +65,7 @@ message SSHUploadPackResponse { ExitStatus exit_status = 3; } +// This comment is left unintentionally blank. message SSHUploadPackWithSidechannelRequest { // 'repository' must be present in the first message. Repository repository = 1 [(target_repository)=true]; @@ -72,9 +76,11 @@ message SSHUploadPackWithSidechannelRequest { string git_protocol = 3; } +// This comment is left unintentionally blank. message SSHUploadPackWithSidechannelResponse { } +// This comment is left unintentionally blank. message SSHReceivePackRequest { // 'repository' must be present in the first message. Repository repository = 1 [(target_repository)=true]; @@ -83,16 +89,17 @@ message SSHReceivePackRequest { // Contents of GL_ID, GL_REPOSITORY, and GL_USERNAME environment variables // for 'git receive-pack' string gl_id = 3; + // This comment is left unintentionally blank. string gl_repository = 4; + // This comment is left unintentionally blank. string gl_username = 5; - // Git protocol version string git_protocol = 6; - // Parameters to use with git -c (key=value pairs) repeated string git_config_options = 7; } +// This comment is left unintentionally blank. message SSHReceivePackResponse { // A chunk of raw data from 'git receive-pack' standard output bytes stdout = 1; @@ -103,6 +110,7 @@ message SSHReceivePackResponse { ExitStatus exit_status = 3; } +// This comment is left unintentionally blank. message SSHUploadArchiveRequest { // 'repository' must be present in the first message. Repository repository = 1 [(target_repository)=true]; @@ -110,6 +118,7 @@ message SSHUploadArchiveRequest { bytes stdin = 2; } +// This comment is left unintentionally blank. message SSHUploadArchiveResponse { // A chunk of raw data from 'git upload-archive' standard output bytes stdout = 1; diff --git a/proto/transaction.proto b/proto/transaction.proto index a21b402e7..ed22eea63 100644 --- a/proto/transaction.proto +++ b/proto/transaction.proto @@ -7,15 +7,44 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// RefTransaction is a service which provides RPCs to interact with reference +// transactions. Reference transactions are used in the context of Gitaly +// Cluster to ensure that all nodes part of a single transaction perform the +// same change: given a set of changes, the changes are hashed and the hash is +// then voted on. service RefTransaction { option (intercepted) = true; + // VoteTransaction casts a vote on a transaction to establish whether the + // node is doing the same change as all the other nodes part of the + // transaction. This RPC blocks until quorum has been reached, which may be + // _before_ all nodes have cast a vote. + // + // This RPC may return one of the following error codes: + // + // - `NotFound` in case the transaction could not be found. + // - `Canceled` in case the transaction has been canceled before quorum was + // reached. rpc VoteTransaction (VoteTransactionRequest) returns (VoteTransactionResponse); + // StopTransaction gracefully stops a transaction. This RPC can be used if + // only a subset of nodes executes specific code which may cause the + // transaction to fail. One such example is Git hooks, which only execute on + // the primary Gitaly noded. Other nodes which vote on this transaction will + // get a response with the `STOP` state being set. + // + // This RPC may return one of the following error codes: + // + // - `NotFound` in case the transaction could not be found. + // - `Canceled` in case the transaction has been canceled before quorum was + // reached. rpc StopTransaction (StopTransactionRequest) returns (StopTransactionResponse); + } +// This comment is left unintentionally blank. message VoteTransactionRequest { + // This comment is left unintentionally blank. enum Phase { // UNKNOWN_PHASE is the unknown voting phase. This value has been the // default because phases have been introduced. Eventually, using this @@ -30,6 +59,7 @@ message VoteTransactionRequest { COMMITTED_PHASE = 2; }; + // This comment is left unintentionally blank. Repository repository = 1[(target_repository)=true]; // ID of the transaction we're processing uint64 transaction_id = 2; @@ -41,23 +71,31 @@ message VoteTransactionRequest { Phase phase = 5; } +// This comment is left unintentionally blank. message VoteTransactionResponse { // The outcome of the given transaction telling the client whether the // transaction should be committed or rolled back. enum TransactionState { + // This comment is left unintentionally blank. COMMIT = 0; + // This comment is left unintentionally blank. ABORT = 1; + // This comment is left unintentionally blank. STOP = 2; } + // This comment is left unintentionally blank. TransactionState state = 1; } +// This comment is left unintentionally blank. message StopTransactionRequest { + // This comment is left unintentionally blank. Repository repository = 1[(target_repository)=true]; // ID of the transaction we're processing uint64 transaction_id = 2; } +// This comment is left unintentionally blank. message StopTransactionResponse { } diff --git a/proto/wiki.proto b/proto/wiki.proto index 80c34b522..8c039ae75 100644 --- a/proto/wiki.proto +++ b/proto/wiki.proto @@ -7,60 +7,86 @@ import "shared.proto"; option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"; +// WikiService is a service that provides Wiki-related functionality. This +// service is deprecated and should not be used anymore. Instead, all +// functionality to implement Wikis should use Git-based RPCS. service WikiService { + + // This comment is left unintentionally blank. rpc WikiWritePage(stream WikiWritePageRequest) returns (WikiWritePageResponse) { option (op_type) = { op: MUTATOR }; } + + // This comment is left unintentionally blank. rpc WikiUpdatePage(stream WikiUpdatePageRequest) returns (WikiUpdatePageResponse) { option (op_type) = { op: MUTATOR }; } + // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. rpc WikiFindPage(WikiFindPageRequest) returns (stream WikiFindPageResponse) { option (op_type) = { op: ACCESSOR }; } + + // This comment is left unintentionally blank. rpc WikiGetAllPages(WikiGetAllPagesRequest) returns (stream WikiGetAllPagesResponse) { option (op_type) = { op: ACCESSOR }; - } + + // This comment is left unintentionally blank. rpc WikiListPages(WikiListPagesRequest) returns (stream WikiListPagesResponse) { option (op_type) = { op: ACCESSOR }; - } + } +// This comment is left unintentionally blank. message WikiCommitDetails { + // This comment is left unintentionally blank. bytes name = 1; + // This comment is left unintentionally blank. bytes email = 2; + // This comment is left unintentionally blank. bytes message = 3; + // This comment is left unintentionally blank. int32 user_id = 4; + // This comment is left unintentionally blank. bytes user_name = 5; } +// This comment is left unintentionally blank. message WikiPageVersion { + // This comment is left unintentionally blank. GitCommit commit = 1; + // This comment is left unintentionally blank. string format = 2; } +// This comment is left unintentionally blank. message WikiPage { // These fields are only present in the first message of a WikiPage stream WikiPageVersion version = 1; + // This comment is left unintentionally blank. string format = 2; + // This comment is left unintentionally blank. bytes title = 3; + // This comment is left unintentionally blank. string url_path = 4; + // This comment is left unintentionally blank. bytes path = 5; + // This comment is left unintentionally blank. bytes name = 6; + // This comment is left unintentionally blank. bool historical = 7; - // This field is present in all messages of a WikiPage stream bytes raw_data = 8; } @@ -69,37 +95,53 @@ message WikiPage { message WikiWritePageRequest { // These following fields are only present in the first message. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes name = 2; + // This comment is left unintentionally blank. string format = 3; + // This comment is left unintentionally blank. WikiCommitDetails commit_details = 4; // This field is present in all messages. bytes content = 5; } +// This comment is left unintentionally blank. message WikiWritePageResponse { + // This comment is left unintentionally blank. bytes duplicate_error = 1; } +// This comment is left unintentionally blank. message WikiUpdatePageRequest { // There fields are only present in the first message of the stream Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes page_path = 2; + // This comment is left unintentionally blank. bytes title = 3; + // This comment is left unintentionally blank. string format = 4; + // This comment is left unintentionally blank. WikiCommitDetails commit_details = 5; - // This field is present in all messages bytes content = 6; } +// This comment is left unintentionally blank. message WikiUpdatePageResponse { + // This comment is left unintentionally blank. bytes error = 1; } +// This comment is left unintentionally blank. message WikiFindPageRequest { + // This comment is left unintentionally blank. Repository repository = 1 [(target_repository)=true]; + // This comment is left unintentionally blank. bytes title = 2; + // This comment is left unintentionally blank. bytes revision = 3; + // This comment is left unintentionally blank. bytes directory = 4; // prevents the content from being sent over the response bool skip_content = 5; @@ -108,45 +150,62 @@ message WikiFindPageRequest { // WikiFindPageResponse is a stream because we need multiple WikiPage // messages to send the raw_data field. message WikiFindPageResponse { + // This comment is left unintentionally blank. WikiPage page = 1; } +// This comment is left unintentionally blank. message WikiGetAllPagesRequest { - Repository repository = 1 [(target_repository)=true]; - // Passing 0 means no limit is applied - uint32 limit = 2; - bool direction_desc = 3; - + // This comment is left unintentionally blank. enum SortBy { + // This comment is left unintentionally blank. TITLE = 0; + // This comment is left unintentionally blank. CREATED_AT = 1; } + + // This comment is left unintentionally blank. + Repository repository = 1 [(target_repository)=true]; + // Passing 0 means no limit is applied + uint32 limit = 2; + // This comment is left unintentionally blank. + bool direction_desc = 3; + // This comment is left unintentionally blank. SortBy sort = 4; } // The WikiGetAllPagesResponse stream is a concatenation of WikiPage streams message WikiGetAllPagesResponse { + // This comment is left unintentionally blank. WikiPage page = 1; // When end_of_page is true it signals a change of page for the next Response message (if any) bool end_of_page = 2; } +// This comment is left unintentionally blank. message WikiListPagesRequest { - Repository repository = 1 [(target_repository)=true]; - // Passing 0 means no limit is applied - uint32 limit = 2; - bool direction_desc = 3; - + // This comment is left unintentionally blank. enum SortBy { + // This comment is left unintentionally blank. TITLE = 0; + // This comment is left unintentionally blank. CREATED_AT = 1; } - SortBy sort = 4; + // This comment is left unintentionally blank. + Repository repository = 1 [(target_repository)=true]; + // Passing 0 means no limit is applied + uint32 limit = 2; + // This comment is left unintentionally blank. + bool direction_desc = 3; + // This comment is left unintentionally blank. + SortBy sort = 4; + // This comment is left unintentionally blank. uint32 offset = 5; } // The WikiListPagesResponse stream is a concatenation of WikiPage streams without content message WikiListPagesResponse { + // This comment is left unintentionally blank. WikiPage page = 1; } diff --git a/ruby/proto/gitaly/blob_services_pb.rb b/ruby/proto/gitaly/blob_services_pb.rb index 5eb951f5e..aaea1d0ef 100644 --- a/ruby/proto/gitaly/blob_services_pb.rb +++ b/ruby/proto/gitaly/blob_services_pb.rb @@ -6,6 +6,8 @@ require 'blob_pb' module Gitaly module BlobService + # BlobService is a service which provides RPCs to retrieve Git blobs from a + # specific repository. class Service include ::GRPC::GenericService @@ -18,6 +20,7 @@ module Gitaly # ID. We use a stream to return a chunked arbitrarily large binary # response rpc :GetBlob, ::Gitaly::GetBlobRequest, stream(::Gitaly::GetBlobResponse) + # This comment is left unintentionally blank. rpc :GetBlobs, ::Gitaly::GetBlobsRequest, stream(::Gitaly::GetBlobsResponse) # ListBlobs will list all blobs reachable from a given set of revisions by # doing a graph walk. It is not valid to pass revisions which do not resolve diff --git a/ruby/proto/gitaly/cleanup_services_pb.rb b/ruby/proto/gitaly/cleanup_services_pb.rb index 643b2ea70..54a0d9fa5 100644 --- a/ruby/proto/gitaly/cleanup_services_pb.rb +++ b/ruby/proto/gitaly/cleanup_services_pb.rb @@ -6,6 +6,7 @@ require 'cleanup_pb' module Gitaly module CleanupService + # CleanupService provides RPCs to clean up a repository's contents. class Service include ::GRPC::GenericService @@ -14,6 +15,7 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.CleanupService' + # This comment is left unintentionally blank. rpc :ApplyBfgObjectMapStream, stream(::Gitaly::ApplyBfgObjectMapStreamRequest), stream(::Gitaly::ApplyBfgObjectMapStreamResponse) end diff --git a/ruby/proto/gitaly/commit_services_pb.rb b/ruby/proto/gitaly/commit_services_pb.rb index 131f84122..17df1b4b8 100644 --- a/ruby/proto/gitaly/commit_services_pb.rb +++ b/ruby/proto/gitaly/commit_services_pb.rb @@ -6,6 +6,8 @@ require 'commit_pb' module Gitaly module CommitService + # CommitService is a service which provides RPCs that interact with Git + # commits. class Service include ::GRPC::GenericService @@ -21,26 +23,45 @@ module Gitaly # ListAllCommits lists all commits present in the repository, including # those not reachable by any reference. rpc :ListAllCommits, ::Gitaly::ListAllCommitsRequest, stream(::Gitaly::ListAllCommitsResponse) + # This comment is left unintentionally blank. rpc :CommitIsAncestor, ::Gitaly::CommitIsAncestorRequest, ::Gitaly::CommitIsAncestorResponse + # This comment is left unintentionally blank. rpc :TreeEntry, ::Gitaly::TreeEntryRequest, stream(::Gitaly::TreeEntryResponse) + # This comment is left unintentionally blank. rpc :CountCommits, ::Gitaly::CountCommitsRequest, ::Gitaly::CountCommitsResponse + # This comment is left unintentionally blank. rpc :CountDivergingCommits, ::Gitaly::CountDivergingCommitsRequest, ::Gitaly::CountDivergingCommitsResponse + # This comment is left unintentionally blank. rpc :GetTreeEntries, ::Gitaly::GetTreeEntriesRequest, stream(::Gitaly::GetTreeEntriesResponse) + # This comment is left unintentionally blank. rpc :ListFiles, ::Gitaly::ListFilesRequest, stream(::Gitaly::ListFilesResponse) + # This comment is left unintentionally blank. rpc :FindCommit, ::Gitaly::FindCommitRequest, ::Gitaly::FindCommitResponse + # This comment is left unintentionally blank. rpc :CommitStats, ::Gitaly::CommitStatsRequest, ::Gitaly::CommitStatsResponse # Use a stream to paginate the result set rpc :FindAllCommits, ::Gitaly::FindAllCommitsRequest, stream(::Gitaly::FindAllCommitsResponse) + # This comment is left unintentionally blank. rpc :FindCommits, ::Gitaly::FindCommitsRequest, stream(::Gitaly::FindCommitsResponse) + # This comment is left unintentionally blank. rpc :CommitLanguages, ::Gitaly::CommitLanguagesRequest, ::Gitaly::CommitLanguagesResponse + # This comment is left unintentionally blank. rpc :RawBlame, ::Gitaly::RawBlameRequest, stream(::Gitaly::RawBlameResponse) + # This comment is left unintentionally blank. rpc :LastCommitForPath, ::Gitaly::LastCommitForPathRequest, ::Gitaly::LastCommitForPathResponse + # This comment is left unintentionally blank. rpc :ListLastCommitsForTree, ::Gitaly::ListLastCommitsForTreeRequest, stream(::Gitaly::ListLastCommitsForTreeResponse) + # This comment is left unintentionally blank. rpc :CommitsByMessage, ::Gitaly::CommitsByMessageRequest, stream(::Gitaly::CommitsByMessageResponse) + # This comment is left unintentionally blank. rpc :ListCommitsByOid, ::Gitaly::ListCommitsByOidRequest, stream(::Gitaly::ListCommitsByOidResponse) + # This comment is left unintentionally blank. rpc :ListCommitsByRefName, ::Gitaly::ListCommitsByRefNameRequest, stream(::Gitaly::ListCommitsByRefNameResponse) + # This comment is left unintentionally blank. rpc :FilterShasWithSignatures, stream(::Gitaly::FilterShasWithSignaturesRequest), stream(::Gitaly::FilterShasWithSignaturesResponse) + # This comment is left unintentionally blank. rpc :GetCommitSignatures, ::Gitaly::GetCommitSignaturesRequest, stream(::Gitaly::GetCommitSignaturesResponse) + # This comment is left unintentionally blank. rpc :GetCommitMessages, ::Gitaly::GetCommitMessagesRequest, stream(::Gitaly::GetCommitMessagesResponse) # CheckObjectsExist will check for the existence of revisions against a # repository. It returns two sets of data. An array containing the revisions diff --git a/ruby/proto/gitaly/conflicts_services_pb.rb b/ruby/proto/gitaly/conflicts_services_pb.rb index 0332407f8..245cdd2eb 100644 --- a/ruby/proto/gitaly/conflicts_services_pb.rb +++ b/ruby/proto/gitaly/conflicts_services_pb.rb @@ -6,6 +6,8 @@ require 'conflicts_pb' module Gitaly module ConflictsService + # ConflictsService is a service which provides RPCs to interact with conflicts + # resulting from a merge. class Service include ::GRPC::GenericService @@ -14,6 +16,8 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.ConflictsService' + # ListConflictFiles returns all conflicting files which result from a merge + # of two specified commit objects. rpc :ListConflictFiles, ::Gitaly::ListConflictFilesRequest, stream(::Gitaly::ListConflictFilesResponse) # ResolveConflicts tries to resolve a conflicting merge with a set of # user-provided merge resolutions. If resolving the conflict succeeds, the diff --git a/ruby/proto/gitaly/diff_services_pb.rb b/ruby/proto/gitaly/diff_services_pb.rb index 55807f77a..c325ed65e 100644 --- a/ruby/proto/gitaly/diff_services_pb.rb +++ b/ruby/proto/gitaly/diff_services_pb.rb @@ -6,6 +6,8 @@ require 'diff_pb' module Gitaly module DiffService + # DiffService is a service which provides RPCs to inspect differences + # introduced between a set of commits. class Service include ::GRPC::GenericService @@ -18,8 +20,11 @@ module Gitaly rpc :CommitDiff, ::Gitaly::CommitDiffRequest, stream(::Gitaly::CommitDiffResponse) # Return a stream so we can divide the response in chunks of deltas rpc :CommitDelta, ::Gitaly::CommitDeltaRequest, stream(::Gitaly::CommitDeltaResponse) + # This comment is left unintentionally blank. rpc :RawDiff, ::Gitaly::RawDiffRequest, stream(::Gitaly::RawDiffResponse) + # This comment is left unintentionally blank. rpc :RawPatch, ::Gitaly::RawPatchRequest, stream(::Gitaly::RawPatchResponse) + # This comment is left unintentionally blank. rpc :DiffStats, ::Gitaly::DiffStatsRequest, stream(::Gitaly::DiffStatsResponse) # Return a list of files changed along with the status of each file rpc :FindChangedPaths, ::Gitaly::FindChangedPathsRequest, stream(::Gitaly::FindChangedPathsResponse) diff --git a/ruby/proto/gitaly/hook_services_pb.rb b/ruby/proto/gitaly/hook_services_pb.rb index 4e444177c..0854e819a 100644 --- a/ruby/proto/gitaly/hook_services_pb.rb +++ b/ruby/proto/gitaly/hook_services_pb.rb @@ -6,6 +6,9 @@ require 'hook_pb' module Gitaly module HookService + # HookService is a service which provides the implementation of a subset of + # Git hooks. These are typically invoked via the `gitaly-hooks` binary to + # ensure that the actual hook logic is executed in the context of the server. class Service include ::GRPC::GenericService @@ -14,9 +17,13 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.HookService' + # This comment is left unintentionally blank. rpc :PreReceiveHook, stream(::Gitaly::PreReceiveHookRequest), stream(::Gitaly::PreReceiveHookResponse) + # This comment is left unintentionally blank. rpc :PostReceiveHook, stream(::Gitaly::PostReceiveHookRequest), stream(::Gitaly::PostReceiveHookResponse) + # This comment is left unintentionally blank. rpc :UpdateHook, ::Gitaly::UpdateHookRequest, stream(::Gitaly::UpdateHookResponse) + # This comment is left unintentionally blank. rpc :ReferenceTransactionHook, stream(::Gitaly::ReferenceTransactionHookRequest), stream(::Gitaly::ReferenceTransactionHookResponse) # PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses # a unix socket side channel. diff --git a/ruby/proto/gitaly/namespace_services_pb.rb b/ruby/proto/gitaly/namespace_services_pb.rb index 1d9fa6102..ce0a0c2a8 100644 --- a/ruby/proto/gitaly/namespace_services_pb.rb +++ b/ruby/proto/gitaly/namespace_services_pb.rb @@ -6,6 +6,9 @@ require 'namespace_pb' module Gitaly module NamespaceService + # NamespaceService is a service which provides RPCs to manage namespaces of a + # storage. Namespaces had been used before Gitaly migrated to hashed storages + # and shouldn't be used nowadays anymore. class Service include ::GRPC::GenericService @@ -14,9 +17,13 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.NamespaceService' + # This comment is left unintentionally blank. rpc :AddNamespace, ::Gitaly::AddNamespaceRequest, ::Gitaly::AddNamespaceResponse + # This comment is left unintentionally blank. rpc :RemoveNamespace, ::Gitaly::RemoveNamespaceRequest, ::Gitaly::RemoveNamespaceResponse + # This comment is left unintentionally blank. rpc :RenameNamespace, ::Gitaly::RenameNamespaceRequest, ::Gitaly::RenameNamespaceResponse + # This comment is left unintentionally blank. rpc :NamespaceExists, ::Gitaly::NamespaceExistsRequest, ::Gitaly::NamespaceExistsResponse end diff --git a/ruby/proto/gitaly/objectpool_services_pb.rb b/ruby/proto/gitaly/objectpool_services_pb.rb index 4f0f1c01c..d0529fa3d 100644 --- a/ruby/proto/gitaly/objectpool_services_pb.rb +++ b/ruby/proto/gitaly/objectpool_services_pb.rb @@ -6,6 +6,10 @@ require 'objectpool_pb' module Gitaly module ObjectPoolService + # ObjectPoolService is a service containing RPCs to manipulate object pools. + # An object pool is a separate repository that can be linked to from multiple + # satellite repositories in order to deduplicate common objects between them. + # This is mostly used in the contexet of repository forks. class Service include ::GRPC::GenericService @@ -14,13 +18,19 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.ObjectPoolService' + # This comment is left unintentionally blank. rpc :CreateObjectPool, ::Gitaly::CreateObjectPoolRequest, ::Gitaly::CreateObjectPoolResponse + # This comment is left unintentionally blank. rpc :DeleteObjectPool, ::Gitaly::DeleteObjectPoolRequest, ::Gitaly::DeleteObjectPoolResponse # Repositories are assumed to be stored on the same disk rpc :LinkRepositoryToObjectPool, ::Gitaly::LinkRepositoryToObjectPoolRequest, ::Gitaly::LinkRepositoryToObjectPoolResponse + # This comment is left unintentionally blank. rpc :ReduplicateRepository, ::Gitaly::ReduplicateRepositoryRequest, ::Gitaly::ReduplicateRepositoryResponse + # This comment is left unintentionally blank. rpc :DisconnectGitAlternates, ::Gitaly::DisconnectGitAlternatesRequest, ::Gitaly::DisconnectGitAlternatesResponse + # This comment is left unintentionally blank. rpc :FetchIntoObjectPool, ::Gitaly::FetchIntoObjectPoolRequest, ::Gitaly::FetchIntoObjectPoolResponse + # This comment is left unintentionally blank. rpc :GetObjectPool, ::Gitaly::GetObjectPoolRequest, ::Gitaly::GetObjectPoolResponse end diff --git a/ruby/proto/gitaly/operations_services_pb.rb b/ruby/proto/gitaly/operations_services_pb.rb index 13a98c011..05f1184f4 100644 --- a/ruby/proto/gitaly/operations_services_pb.rb +++ b/ruby/proto/gitaly/operations_services_pb.rb @@ -18,11 +18,15 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.OperationService' + # This comment is left unintentionally blank. rpc :UserCreateBranch, ::Gitaly::UserCreateBranchRequest, ::Gitaly::UserCreateBranchResponse + # This comment is left unintentionally blank. rpc :UserUpdateBranch, ::Gitaly::UserUpdateBranchRequest, ::Gitaly::UserUpdateBranchResponse + # This comment is left unintentionally blank. rpc :UserDeleteBranch, ::Gitaly::UserDeleteBranchRequest, ::Gitaly::UserDeleteBranchResponse # UserCreateTag creates a new tag. rpc :UserCreateTag, ::Gitaly::UserCreateTagRequest, ::Gitaly::UserCreateTagResponse + # This comment is left unintentionally blank. rpc :UserDeleteTag, ::Gitaly::UserDeleteTagRequest, ::Gitaly::UserDeleteTagResponse # UserMergeRef creates a merge commit and updates target_ref to point to that # new commit. The first parent of the merge commit (the main line) is taken diff --git a/ruby/proto/gitaly/praefect_services_pb.rb b/ruby/proto/gitaly/praefect_services_pb.rb index 319feaaee..9ead16a48 100644 --- a/ruby/proto/gitaly/praefect_services_pb.rb +++ b/ruby/proto/gitaly/praefect_services_pb.rb @@ -6,6 +6,8 @@ require 'praefect_pb' module Gitaly module PraefectInfoService + # PraefectInfoService is a service which provides RPCs to query and modify + # Praefect-specific parameters. class Service include ::GRPC::GenericService @@ -14,6 +16,7 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.PraefectInfoService' + # This comment is left unintentionally blank. rpc :RepositoryReplicas, ::Gitaly::RepositoryReplicasRequest, ::Gitaly::RepositoryReplicasResponse # DatalossCheck checks for unavailable repositories. rpc :DatalossCheck, ::Gitaly::DatalossCheckRequest, ::Gitaly::DatalossCheckResponse diff --git a/ruby/proto/gitaly/ref_services_pb.rb b/ruby/proto/gitaly/ref_services_pb.rb index feab3e680..67f5e76a1 100644 --- a/ruby/proto/gitaly/ref_services_pb.rb +++ b/ruby/proto/gitaly/ref_services_pb.rb @@ -6,6 +6,7 @@ require 'ref_pb' module Gitaly module RefService + # RefService is a service that provides RPCs to list and modify Git references. class Service include ::GRPC::GenericService @@ -14,28 +15,39 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.RefService' + # This comment is left unintentionally blank. rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse + # This comment is left unintentionally blank. rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse) + # This comment is left unintentionally blank. rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse) # Return a stream so we can divide the response in chunks of branches rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse) + # This comment is left unintentionally blank. rpc :FindAllBranches, ::Gitaly::FindAllBranchesRequest, stream(::Gitaly::FindAllBranchesResponse) # Returns a stream of tags repository has. rpc :FindAllTags, ::Gitaly::FindAllTagsRequest, stream(::Gitaly::FindAllTagsResponse) + # This comment is left unintentionally blank. rpc :FindTag, ::Gitaly::FindTagRequest, ::Gitaly::FindTagResponse + # This comment is left unintentionally blank. rpc :FindAllRemoteBranches, ::Gitaly::FindAllRemoteBranchesRequest, stream(::Gitaly::FindAllRemoteBranchesResponse) + # This comment is left unintentionally blank. rpc :RefExists, ::Gitaly::RefExistsRequest, ::Gitaly::RefExistsResponse # FindBranch finds a branch by its unqualified name (like "master") and # returns the commit it currently points to. rpc :FindBranch, ::Gitaly::FindBranchRequest, ::Gitaly::FindBranchResponse + # This comment is left unintentionally blank. rpc :DeleteRefs, ::Gitaly::DeleteRefsRequest, ::Gitaly::DeleteRefsResponse + # This comment is left unintentionally blank. rpc :ListBranchNamesContainingCommit, ::Gitaly::ListBranchNamesContainingCommitRequest, stream(::Gitaly::ListBranchNamesContainingCommitResponse) + # This comment is left unintentionally blank. rpc :ListTagNamesContainingCommit, ::Gitaly::ListTagNamesContainingCommitRequest, stream(::Gitaly::ListTagNamesContainingCommitResponse) # GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions # which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved # result in an error. Tags which are annotated but not signed will return a TagSignature response # which has no signature, but its unsigned contents will still be returned. rpc :GetTagSignatures, ::Gitaly::GetTagSignaturesRequest, stream(::Gitaly::GetTagSignaturesResponse) + # This comment is left unintentionally blank. rpc :GetTagMessages, ::Gitaly::GetTagMessagesRequest, stream(::Gitaly::GetTagMessagesResponse) # PackRefs is deprecated in favor of OptimizeRepository. rpc :PackRefs, ::Gitaly::PackRefsRequest, ::Gitaly::PackRefsResponse diff --git a/ruby/proto/gitaly/remote_services_pb.rb b/ruby/proto/gitaly/remote_services_pb.rb index 856f21cee..08f7ed80d 100644 --- a/ruby/proto/gitaly/remote_services_pb.rb +++ b/ruby/proto/gitaly/remote_services_pb.rb @@ -6,6 +6,8 @@ require 'remote_pb' module Gitaly module RemoteService + # RemoteService is a service providing RPCs to interact with a remote + # repository that is hosted on another Git server. class Service include ::GRPC::GenericService @@ -20,6 +22,7 @@ module Gitaly # deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match # the patterns specified in the requests. rpc :UpdateRemoteMirror, stream(::Gitaly::UpdateRemoteMirrorRequest), ::Gitaly::UpdateRemoteMirrorResponse + # This comment is left unintentionally blank. rpc :FindRemoteRepository, ::Gitaly::FindRemoteRepositoryRequest, ::Gitaly::FindRemoteRepositoryResponse # FindRemoteRootRef tries to find the root reference of a remote # repository. The root reference is the default branch as pointed to by diff --git a/ruby/proto/gitaly/repository_services_pb.rb b/ruby/proto/gitaly/repository_services_pb.rb index 3ff4a5acb..e7043c8aa 100644 --- a/ruby/proto/gitaly/repository_services_pb.rb +++ b/ruby/proto/gitaly/repository_services_pb.rb @@ -6,6 +6,7 @@ require 'repository_pb' module Gitaly module RepositoryService + # RepositoryService is a service providing RPCs accessing repositories as a whole. class Service include ::GRPC::GenericService @@ -14,6 +15,7 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.RepositoryService' + # This comment is left unintentionally blank. rpc :RepositoryExists, ::Gitaly::RepositoryExistsRequest, ::Gitaly::RepositoryExistsResponse # RepackIncremental is deprecated in favor of OptimizeRepository. rpc :RepackIncremental, ::Gitaly::RepackIncrementalRequest, ::Gitaly::RepackIncrementalResponse @@ -25,21 +27,31 @@ module Gitaly rpc :GarbageCollect, ::Gitaly::GarbageCollectRequest, ::Gitaly::GarbageCollectResponse # WriteCommitGraph is deprecated in favor of OptimizeRepository. rpc :WriteCommitGraph, ::Gitaly::WriteCommitGraphRequest, ::Gitaly::WriteCommitGraphResponse + # This comment is left unintentionally blank. rpc :RepositorySize, ::Gitaly::RepositorySizeRequest, ::Gitaly::RepositorySizeResponse + # This comment is left unintentionally blank. rpc :ApplyGitattributes, ::Gitaly::ApplyGitattributesRequest, ::Gitaly::ApplyGitattributesResponse # FetchRemote fetches references from a remote repository into the local # repository. rpc :FetchRemote, ::Gitaly::FetchRemoteRequest, ::Gitaly::FetchRemoteResponse + # This comment is left unintentionally blank. rpc :CreateRepository, ::Gitaly::CreateRepositoryRequest, ::Gitaly::CreateRepositoryResponse + # This comment is left unintentionally blank. rpc :GetArchive, ::Gitaly::GetArchiveRequest, stream(::Gitaly::GetArchiveResponse) + # This comment is left unintentionally blank. rpc :HasLocalBranches, ::Gitaly::HasLocalBranchesRequest, ::Gitaly::HasLocalBranchesResponse # FetchSourceBranch fetches a branch from a second (potentially remote) # repository into the given repository. rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse + # This comment is left unintentionally blank. rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse + # This comment is left unintentionally blank. rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse + # This comment is left unintentionally blank. rpc :FindMergeBase, ::Gitaly::FindMergeBaseRequest, ::Gitaly::FindMergeBaseResponse + # This comment is left unintentionally blank. rpc :CreateFork, ::Gitaly::CreateForkRequest, ::Gitaly::CreateForkResponse + # This comment is left unintentionally blank. rpc :CreateRepositoryFromURL, ::Gitaly::CreateRepositoryFromURLRequest, ::Gitaly::CreateRepositoryFromURLResponse # CreateBundle creates a bundle from all refs rpc :CreateBundle, ::Gitaly::CreateBundleRequest, stream(::Gitaly::CreateBundleResponse) @@ -50,28 +62,42 @@ module Gitaly # Refs will be mirrored to the target repository with the refspec # "+refs/*:refs/*" and refs that do not exist in the bundle will be removed. rpc :FetchBundle, stream(::Gitaly::FetchBundleRequest), ::Gitaly::FetchBundleResponse + # This comment is left unintentionally blank. rpc :CreateRepositoryFromBundle, stream(::Gitaly::CreateRepositoryFromBundleRequest), ::Gitaly::CreateRepositoryFromBundleResponse # GetConfig reads the target repository's gitconfig and streams its contents # back. Returns a NotFound error in case no gitconfig was found. rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse) + # This comment is left unintentionally blank. rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse + # This comment is left unintentionally blank. rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse) + # This comment is left unintentionally blank. rpc :CalculateChecksum, ::Gitaly::CalculateChecksumRequest, ::Gitaly::CalculateChecksumResponse # Cleanup is deprecated in favor of OptimizeRepository. rpc :Cleanup, ::Gitaly::CleanupRequest, ::Gitaly::CleanupResponse + # This comment is left unintentionally blank. rpc :GetSnapshot, ::Gitaly::GetSnapshotRequest, stream(::Gitaly::GetSnapshotResponse) + # This comment is left unintentionally blank. rpc :CreateRepositoryFromSnapshot, ::Gitaly::CreateRepositoryFromSnapshotRequest, ::Gitaly::CreateRepositoryFromSnapshotResponse + # This comment is left unintentionally blank. rpc :GetRawChanges, ::Gitaly::GetRawChangesRequest, stream(::Gitaly::GetRawChangesResponse) + # This comment is left unintentionally blank. rpc :SearchFilesByContent, ::Gitaly::SearchFilesByContentRequest, stream(::Gitaly::SearchFilesByContentResponse) + # This comment is left unintentionally blank. rpc :SearchFilesByName, ::Gitaly::SearchFilesByNameRequest, stream(::Gitaly::SearchFilesByNameResponse) + # This comment is left unintentionally blank. rpc :RestoreCustomHooks, stream(::Gitaly::RestoreCustomHooksRequest), ::Gitaly::RestoreCustomHooksResponse + # This comment is left unintentionally blank. rpc :BackupCustomHooks, ::Gitaly::BackupCustomHooksRequest, stream(::Gitaly::BackupCustomHooksResponse) + # This comment is left unintentionally blank. rpc :GetObjectDirectorySize, ::Gitaly::GetObjectDirectorySizeRequest, ::Gitaly::GetObjectDirectorySizeResponse # RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and # eventually remove it. This ensures that even on networked filesystems the # data is actually removed even if there's someone still handling the data. rpc :RemoveRepository, ::Gitaly::RemoveRepositoryRequest, ::Gitaly::RemoveRepositoryResponse + # This comment is left unintentionally blank. rpc :RenameRepository, ::Gitaly::RenameRepositoryRequest, ::Gitaly::RenameRepositoryResponse + # This comment is left unintentionally blank. rpc :ReplicateRepository, ::Gitaly::ReplicateRepositoryRequest, ::Gitaly::ReplicateRepositoryResponse # OptimizeRepository performs all maintenance tasks in a repository to keep # it in an efficient state. It cleans up stale data, repacks objects, diff --git a/ruby/proto/gitaly/server_services_pb.rb b/ruby/proto/gitaly/server_services_pb.rb index 6c1711b2c..37d7825f7 100644 --- a/ruby/proto/gitaly/server_services_pb.rb +++ b/ruby/proto/gitaly/server_services_pb.rb @@ -6,6 +6,7 @@ require 'server_pb' module Gitaly module ServerService + # ServerService is a service that provides information about a Gitaly server. class Service include ::GRPC::GenericService @@ -14,7 +15,9 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.ServerService' + # This comment is left unintentionally blank. rpc :ServerInfo, ::Gitaly::ServerInfoRequest, ::Gitaly::ServerInfoResponse + # This comment is left unintentionally blank. rpc :DiskStatistics, ::Gitaly::DiskStatisticsRequest, ::Gitaly::DiskStatisticsResponse # ClockSynced checks if machine clock is synced # (the offset is less that the one passed in the request). diff --git a/ruby/proto/gitaly/smarthttp_services_pb.rb b/ruby/proto/gitaly/smarthttp_services_pb.rb index 256293a22..688d4e00f 100644 --- a/ruby/proto/gitaly/smarthttp_services_pb.rb +++ b/ruby/proto/gitaly/smarthttp_services_pb.rb @@ -6,6 +6,8 @@ require 'smarthttp_pb' module Gitaly module SmartHTTPService + # SmartHTTPService is a service that provides RPCs required for HTTP-based Git + # clones via the smart HTTP protocol. class Service include ::GRPC::GenericService diff --git a/ruby/proto/gitaly/ssh_services_pb.rb b/ruby/proto/gitaly/ssh_services_pb.rb index a50b0fa5a..d630bcb81 100644 --- a/ruby/proto/gitaly/ssh_services_pb.rb +++ b/ruby/proto/gitaly/ssh_services_pb.rb @@ -6,6 +6,7 @@ require 'ssh_pb' module Gitaly module SSHService + # SSHService is a service that provides RPCs required for SSH-based Git clones. class Service include ::GRPC::GenericService diff --git a/ruby/proto/gitaly/transaction_services_pb.rb b/ruby/proto/gitaly/transaction_services_pb.rb index 4e21fc2f6..639d465bc 100644 --- a/ruby/proto/gitaly/transaction_services_pb.rb +++ b/ruby/proto/gitaly/transaction_services_pb.rb @@ -6,6 +6,11 @@ require 'transaction_pb' module Gitaly module RefTransaction + # RefTransaction is a service which provides RPCs to interact with reference + # transactions. Reference transactions are used in the context of Gitaly + # Cluster to ensure that all nodes part of a single transaction perform the + # same change: given a set of changes, the changes are hashed and the hash is + # then voted on. class Service include ::GRPC::GenericService @@ -14,7 +19,28 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.RefTransaction' + # VoteTransaction casts a vote on a transaction to establish whether the + # node is doing the same change as all the other nodes part of the + # transaction. This RPC blocks until quorum has been reached, which may be + # _before_ all nodes have cast a vote. + # + # This RPC may return one of the following error codes: + # + # - `NotFound` in case the transaction could not be found. + # - `Canceled` in case the transaction has been canceled before quorum was + # reached. rpc :VoteTransaction, ::Gitaly::VoteTransactionRequest, ::Gitaly::VoteTransactionResponse + # StopTransaction gracefully stops a transaction. This RPC can be used if + # only a subset of nodes executes specific code which may cause the + # transaction to fail. One such example is Git hooks, which only execute on + # the primary Gitaly noded. Other nodes which vote on this transaction will + # get a response with the `STOP` state being set. + # + # This RPC may return one of the following error codes: + # + # - `NotFound` in case the transaction could not be found. + # - `Canceled` in case the transaction has been canceled before quorum was + # reached. rpc :StopTransaction, ::Gitaly::StopTransactionRequest, ::Gitaly::StopTransactionResponse end diff --git a/ruby/proto/gitaly/wiki_services_pb.rb b/ruby/proto/gitaly/wiki_services_pb.rb index 6e18e6893..16ccdd1cb 100644 --- a/ruby/proto/gitaly/wiki_services_pb.rb +++ b/ruby/proto/gitaly/wiki_services_pb.rb @@ -6,6 +6,9 @@ require 'wiki_pb' module Gitaly module WikiService + # WikiService is a service that provides Wiki-related functionality. This + # service is deprecated and should not be used anymore. Instead, all + # functionality to implement Wikis should use Git-based RPCS. class Service include ::GRPC::GenericService @@ -14,11 +17,15 @@ module Gitaly self.unmarshal_class_method = :decode self.service_name = 'gitaly.WikiService' + # This comment is left unintentionally blank. rpc :WikiWritePage, stream(::Gitaly::WikiWritePageRequest), ::Gitaly::WikiWritePageResponse + # This comment is left unintentionally blank. rpc :WikiUpdatePage, stream(::Gitaly::WikiUpdatePageRequest), ::Gitaly::WikiUpdatePageResponse # WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. rpc :WikiFindPage, ::Gitaly::WikiFindPageRequest, stream(::Gitaly::WikiFindPageResponse) + # This comment is left unintentionally blank. rpc :WikiGetAllPages, ::Gitaly::WikiGetAllPagesRequest, stream(::Gitaly::WikiGetAllPagesResponse) + # This comment is left unintentionally blank. rpc :WikiListPages, ::Gitaly::WikiListPagesRequest, stream(::Gitaly::WikiListPagesResponse) end |