Class JobsGrpc.JobsStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<JobsGrpc.JobsStub>
com.google.cloud.run.v2.JobsGrpc.JobsStub
Enclosing class:
JobsGrpc

public static final class JobsGrpc.JobsStub extends io.grpc.stub.AbstractAsyncStub<JobsGrpc.JobsStub>
A stub to allow clients to do asynchronous rpc calls to service Jobs.
 Cloud Run Job Control Plane API.
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    createJob(CreateJobRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
    Creates a Job.
    void
    deleteJob(DeleteJobRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
    Deletes a Job.
    void
    getIamPolicy(GetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver)
    Gets the IAM Access Control policy currently in effect for the given Job.
    void
    getJob(GetJobRequest request, io.grpc.stub.StreamObserver<Job> responseObserver)
    Gets information about a Job.
    void
    listJobs(ListJobsRequest request, io.grpc.stub.StreamObserver<ListJobsResponse> responseObserver)
    Lists Jobs.
    void
    runJob(RunJobRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
    Triggers creation of a new Execution of this Job.
    void
    setIamPolicy(SetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver)
    Sets the IAM Access control policy for the specified Job.
    void
    testIamPermissions(TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<TestIamPermissionsResponse> responseObserver)
    Returns permissions that a caller has on the specified Project.
    void
    updateJob(UpdateJobRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
    Updates a Job.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected JobsGrpc.JobsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<JobsGrpc.JobsStub>
    • createJob

      public void createJob(CreateJobRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Creates a Job.
       
    • getJob

      public void getJob(GetJobRequest request, io.grpc.stub.StreamObserver<Job> responseObserver)
       Gets information about a Job.
       
    • listJobs

      public void listJobs(ListJobsRequest request, io.grpc.stub.StreamObserver<ListJobsResponse> responseObserver)
       Lists Jobs. Results are sorted by creation time, descending.
       
    • updateJob

      public void updateJob(UpdateJobRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Updates a Job.
       
    • deleteJob

      public void deleteJob(DeleteJobRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Deletes a Job.
       
    • runJob

      public void runJob(RunJobRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Triggers creation of a new Execution of this Job.
       
    • getIamPolicy

      public void getIamPolicy(GetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver)
       Gets the IAM Access Control policy currently in effect for the given Job.
       This result does not include any inherited policies.
       
    • setIamPolicy

      public void setIamPolicy(SetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver)
       Sets the IAM Access control policy for the specified Job. Overwrites
       any existing policy.
       
    • testIamPermissions

      public void testIamPermissions(TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<TestIamPermissionsResponse> responseObserver)
       Returns permissions that a caller has on the specified Project.
       There are no permissions required for making this API call.