diff options
Diffstat (limited to 'proto/ref.proto')
-rw-r--r-- | proto/ref.proto | 75 |
1 files changed, 60 insertions, 15 deletions
diff --git a/proto/ref.proto b/proto/ref.proto index a749d0965..7fccadcb9 100644 --- a/proto/ref.proto +++ b/proto/ref.proto @@ -10,34 +10,61 @@ import "google/protobuf/timestamp.proto"; service RefService { rpc FindDefaultBranchName(FindDefaultBranchNameRequest) returns (FindDefaultBranchNameResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc FindAllBranchNames(FindAllBranchNamesRequest) returns (stream FindAllBranchNamesResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc FindAllTagNames(FindAllTagNamesRequest) returns (stream FindAllTagNamesResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } // Find a Ref matching the given constraints. Response may be empty. rpc FindRefName(FindRefNameRequest) returns (FindRefNameResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } // Return a stream so we can divide the response in chunks of branches rpc FindLocalBranches(FindLocalBranchesRequest) returns (stream FindLocalBranchesResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc FindAllBranches(FindAllBranchesRequest) returns (stream FindAllBranchesResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc FindAllTags(FindAllTagsRequest) returns (stream FindAllTagsResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc FindAllRemoteBranches(FindAllRemoteBranchesRequest) returns (stream FindAllRemoteBranchesResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc RefExists(RefExistsRequest) returns (RefExistsResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc CreateBranch(CreateBranchRequest) returns (CreateBranchResponse) { option (op_type) = { @@ -52,7 +79,10 @@ service RefService { }; } rpc FindBranch(FindBranchRequest) returns (FindBranchResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc DeleteRefs(DeleteRefsRequest) returns (DeleteRefsResponse) { option (op_type) = { @@ -62,23 +92,38 @@ service RefService { } rpc ListBranchNamesContainingCommit(ListBranchNamesContainingCommitRequest) returns (stream ListBranchNamesContainingCommitResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc ListTagNamesContainingCommit(ListTagNamesContainingCommitRequest) returns (stream ListTagNamesContainingCommitResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc GetTagMessages(GetTagMessagesRequest) returns (stream GetTagMessagesResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } // Returns commits that are only reachable from the ref passed rpc ListNewCommits(ListNewCommitsRequest) returns (stream ListNewCommitsResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc ListNewBlobs(ListNewBlobsRequest) returns (stream ListNewBlobsResponse) { - option (op_type).op = ACCESSOR; + option (op_type) = { + op: ACCESSOR + target_repository_field: "1" + }; } rpc PackRefs(PackRefsRequest) returns (PackRefsResponse) { option (op_type) = { |