Class JobControllerGrpc.JobControllerStub (4.33.0)

public static final class JobControllerGrpc.JobControllerStub extends AbstractAsyncStub<JobControllerGrpc.JobControllerStub>

A stub to allow clients to do asynchronous rpc calls to service JobController.

The JobController provides methods to manage jobs.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > JobControllerGrpc.JobControllerStub

Methods

build(Channel channel, CallOptions callOptions)

protected JobControllerGrpc.JobControllerStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
JobControllerGrpc.JobControllerStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

cancelJob(CancelJobRequest request, StreamObserver<Job> responseObserver)

public void cancelJob(CancelJobRequest request, StreamObserver<Job> responseObserver)

Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get.

Parameters
NameDescription
requestCancelJobRequest
responseObserverio.grpc.stub.StreamObserver<Job>

deleteJob(DeleteJobRequest request, StreamObserver<Empty> responseObserver)

public void deleteJob(DeleteJobRequest request, StreamObserver<Empty> responseObserver)

Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.

Parameters
NameDescription
requestDeleteJobRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getJob(GetJobRequest request, StreamObserver<Job> responseObserver)

public void getJob(GetJobRequest request, StreamObserver<Job> responseObserver)

Gets the resource representation for a job in a project.

Parameters
NameDescription
requestGetJobRequest
responseObserverio.grpc.stub.StreamObserver<Job>

listJobs(ListJobsRequest request, StreamObserver<ListJobsResponse> responseObserver)

public void listJobs(ListJobsRequest request, StreamObserver<ListJobsResponse> responseObserver)

Lists regions/{region}/jobs in a project.

Parameters
NameDescription
requestListJobsRequest
responseObserverio.grpc.stub.StreamObserver<ListJobsResponse>

submitJob(SubmitJobRequest request, StreamObserver<Job> responseObserver)

public void submitJob(SubmitJobRequest request, StreamObserver<Job> responseObserver)

Submits a job to a cluster.

Parameters
NameDescription
requestSubmitJobRequest
responseObserverio.grpc.stub.StreamObserver<Job>

submitJobAsOperation(SubmitJobRequest request, StreamObserver<Operation> responseObserver)

public void submitJobAsOperation(SubmitJobRequest request, StreamObserver<Operation> responseObserver)

Submits job to a cluster.

Parameters
NameDescription
requestSubmitJobRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateJob(UpdateJobRequest request, StreamObserver<Job> responseObserver)

public void updateJob(UpdateJobRequest request, StreamObserver<Job> responseObserver)

Updates a job in a project.

Parameters
NameDescription
requestUpdateJobRequest
responseObserverio.grpc.stub.StreamObserver<Job>