Class SecureSourceManagerGrpc.SecureSourceManagerStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SecureSourceManagerGrpc.SecureSourceManagerStub>
com.google.cloud.securesourcemanager.v1.SecureSourceManagerGrpc.SecureSourceManagerStub
Enclosing class:
SecureSourceManagerGrpc

public static final class SecureSourceManagerGrpc.SecureSourceManagerStub extends io.grpc.stub.AbstractAsyncStub<SecureSourceManagerGrpc.SecureSourceManagerStub>
A stub to allow clients to do asynchronous rpc calls to service SecureSourceManager.
 Secure Source Manager API
 Access Secure Source Manager instances, resources, and repositories.
 
  • Method Details

    • build

      protected SecureSourceManagerGrpc.SecureSourceManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<SecureSourceManagerGrpc.SecureSourceManagerStub>
    • listInstances

      public void listInstances(ListInstancesRequest request, io.grpc.stub.StreamObserver<ListInstancesResponse> responseObserver)
       Lists Instances in a given project and location.
       
    • getInstance

      public void getInstance(GetInstanceRequest request, io.grpc.stub.StreamObserver<Instance> responseObserver)
       Gets details of a single instance.
       
    • createInstance

      public void createInstance(CreateInstanceRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Creates a new instance in a given project and location.
       
    • deleteInstance

      public void deleteInstance(DeleteInstanceRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Deletes a single instance.
       
    • listRepositories

      public void listRepositories(ListRepositoriesRequest request, io.grpc.stub.StreamObserver<ListRepositoriesResponse> responseObserver)
       Lists Repositories in a given project and location.
       The instance field is required in the query parameter for requests using
       the securesourcemanager.googleapis.com endpoint.
       
    • getRepository

      public void getRepository(GetRepositoryRequest request, io.grpc.stub.StreamObserver<Repository> responseObserver)
       Gets metadata of a repository.
       
    • createRepository

      public void createRepository(CreateRepositoryRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Creates a new repository in a given project and location.
       The Repository.Instance field is required in the request body for requests
       using the securesourcemanager.googleapis.com endpoint.
       
    • updateRepository

      public void updateRepository(UpdateRepositoryRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Updates the metadata of a repository.
       
    • deleteRepository

      public void deleteRepository(DeleteRepositoryRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Deletes a Repository.
       
    • listHooks

      public void listHooks(ListHooksRequest request, io.grpc.stub.StreamObserver<ListHooksResponse> responseObserver)
       Lists hooks in a given repository.
       
    • getHook

      public void getHook(GetHookRequest request, io.grpc.stub.StreamObserver<Hook> responseObserver)
       Gets metadata of a hook.
       
    • createHook

      public void createHook(CreateHookRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Creates a new hook in a given repository.
       
    • updateHook

      public void updateHook(UpdateHookRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Updates the metadata of a hook.
       
    • deleteHook

      public void deleteHook(DeleteHookRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Deletes a Hook.
       
    • getIamPolicyRepo

      public void getIamPolicyRepo(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver)
       Get IAM policy for a repository.
       
    • setIamPolicyRepo

      public void setIamPolicyRepo(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver)
       Set IAM policy on a repository.
       
    • testIamPermissionsRepo

      public void testIamPermissionsRepo(com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver)
       Test IAM permissions on a repository.
       IAM permission checks are not required on this method.
       
    • createBranchRule

      public void createBranchRule(CreateBranchRuleRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       CreateBranchRule creates a branch rule in a given repository.
       
    • listBranchRules

      public void listBranchRules(ListBranchRulesRequest request, io.grpc.stub.StreamObserver<ListBranchRulesResponse> responseObserver)
       ListBranchRules lists branch rules in a given repository.
       
    • getBranchRule

      public void getBranchRule(GetBranchRuleRequest request, io.grpc.stub.StreamObserver<BranchRule> responseObserver)
       GetBranchRule gets a branch rule.
       
    • updateBranchRule

      public void updateBranchRule(UpdateBranchRuleRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       UpdateBranchRule updates a branch rule.
       
    • deleteBranchRule

      public void deleteBranchRule(DeleteBranchRuleRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       DeleteBranchRule deletes a branch rule.
       
    • createPullRequest

      public void createPullRequest(CreatePullRequestRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Creates a pull request.
       
    • getPullRequest

      public void getPullRequest(GetPullRequestRequest request, io.grpc.stub.StreamObserver<PullRequest> responseObserver)
       Gets a pull request.
       
    • listPullRequests

      public void listPullRequests(ListPullRequestsRequest request, io.grpc.stub.StreamObserver<ListPullRequestsResponse> responseObserver)
       Lists pull requests in a repository.
       
    • updatePullRequest

      public void updatePullRequest(UpdatePullRequestRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Updates a pull request.
       
    • mergePullRequest

      public void mergePullRequest(MergePullRequestRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Merges a pull request.
       
    • openPullRequest

      public void openPullRequest(OpenPullRequestRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Opens a pull request.
       
    • closePullRequest

      public void closePullRequest(ClosePullRequestRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Closes a pull request without merging.
       
    • listPullRequestFileDiffs

      public void listPullRequestFileDiffs(ListPullRequestFileDiffsRequest request, io.grpc.stub.StreamObserver<ListPullRequestFileDiffsResponse> responseObserver)
       Lists a pull request's file diffs.
       
    • fetchTree

      public void fetchTree(FetchTreeRequest request, io.grpc.stub.StreamObserver<FetchTreeResponse> responseObserver)
       Fetches a tree from a repository.
       
    • fetchBlob

      public void fetchBlob(FetchBlobRequest request, io.grpc.stub.StreamObserver<FetchBlobResponse> responseObserver)
       Fetches a blob from a repository.
       
    • createIssue

      public void createIssue(CreateIssueRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Creates an issue.
       
    • getIssue

      public void getIssue(GetIssueRequest request, io.grpc.stub.StreamObserver<Issue> responseObserver)
       Gets an issue.
       
    • listIssues

      public void listIssues(ListIssuesRequest request, io.grpc.stub.StreamObserver<ListIssuesResponse> responseObserver)
       Lists issues in a repository.
       
    • updateIssue

      public void updateIssue(UpdateIssueRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Updates a issue.
       
    • deleteIssue

      public void deleteIssue(DeleteIssueRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Deletes an issue.
       
    • openIssue

      public void openIssue(OpenIssueRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Opens an issue.
       
    • closeIssue

      public void closeIssue(CloseIssueRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Closes an issue.
       
    • getPullRequestComment

      public void getPullRequestComment(GetPullRequestCommentRequest request, io.grpc.stub.StreamObserver<PullRequestComment> responseObserver)
       Gets a pull request comment.
       
    • listPullRequestComments

      public void listPullRequestComments(ListPullRequestCommentsRequest request, io.grpc.stub.StreamObserver<ListPullRequestCommentsResponse> responseObserver)
       Lists pull request comments.
       
    • createPullRequestComment

      public void createPullRequestComment(CreatePullRequestCommentRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Creates a pull request comment. This function is used to create a single
       PullRequestComment of type Comment, or a single PullRequestComment of type
       Code that's replying to another PullRequestComment of type Code. Use
       BatchCreatePullRequestComments to create multiple PullRequestComments for
       code reviews.
       
    • updatePullRequestComment

      public void updatePullRequestComment(UpdatePullRequestCommentRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Updates a pull request comment.
       
    • deletePullRequestComment

      public void deletePullRequestComment(DeletePullRequestCommentRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Deletes a pull request comment.
       
    • batchCreatePullRequestComments

      public void batchCreatePullRequestComments(BatchCreatePullRequestCommentsRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Batch creates pull request comments. This function is used to create
       multiple PullRequestComments for code review. There needs to be exactly one
       PullRequestComment of type Review, and at most 100 PullRequestComments of
       type Code per request. The Position of the code comments must be unique
       within the request.
       
    • resolvePullRequestComments

      public void resolvePullRequestComments(ResolvePullRequestCommentsRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Resolves pull request comments. A list of PullRequestComment names must be
       provided. The PullRequestComment names must be in the same conversation
       thread. If auto_fill is set, all comments in the conversation thread will
       be resolved.
       
    • unresolvePullRequestComments

      public void unresolvePullRequestComments(UnresolvePullRequestCommentsRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Unresolves pull request comments. A list of PullRequestComment names must
       be provided. The PullRequestComment names must be in the same conversation
       thread. If auto_fill is set, all comments in the conversation thread will
       be unresolved.
       
    • createIssueComment

      public void createIssueComment(CreateIssueCommentRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Creates an issue comment.
       
    • getIssueComment

      public void getIssueComment(GetIssueCommentRequest request, io.grpc.stub.StreamObserver<IssueComment> responseObserver)
       Gets an issue comment.
       
    • listIssueComments

      public void listIssueComments(ListIssueCommentsRequest request, io.grpc.stub.StreamObserver<ListIssueCommentsResponse> responseObserver)
       Lists comments in an issue.
       
    • updateIssueComment

      public void updateIssueComment(UpdateIssueCommentRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Updates an issue comment.
       
    • deleteIssueComment

      public void deleteIssueComment(DeleteIssueCommentRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Deletes an issue comment.