Class BatchControllerGrpc.BatchControllerStub (4.39.0)

public static final class BatchControllerGrpc.BatchControllerStub extends AbstractAsyncStub<BatchControllerGrpc.BatchControllerStub>

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

The BatchController provides methods to manage batch workloads.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > BatchControllerGrpc.BatchControllerStub

Methods

build(Channel channel, CallOptions callOptions)

protected BatchControllerGrpc.BatchControllerStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
BatchControllerGrpc.BatchControllerStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createBatch(CreateBatchRequest request, StreamObserver<Operation> responseObserver)

public void createBatch(CreateBatchRequest request, StreamObserver<Operation> responseObserver)

Creates a batch workload that executes asynchronously.

Parameters
Name Description
request CreateBatchRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteBatch(DeleteBatchRequest request, StreamObserver<Empty> responseObserver)

public void deleteBatch(DeleteBatchRequest request, StreamObserver<Empty> responseObserver)

Deletes the batch workload resource. If the batch is not in terminal state, the delete fails and the response returns FAILED_PRECONDITION.

Parameters
Name Description
request DeleteBatchRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getBatch(GetBatchRequest request, StreamObserver<Batch> responseObserver)

public void getBatch(GetBatchRequest request, StreamObserver<Batch> responseObserver)

Gets the batch workload resource representation.

Parameters
Name Description
request GetBatchRequest
responseObserver io.grpc.stub.StreamObserver<Batch>

listBatches(ListBatchesRequest request, StreamObserver<ListBatchesResponse> responseObserver)

public void listBatches(ListBatchesRequest request, StreamObserver<ListBatchesResponse> responseObserver)

Lists batch workloads.

Parameters
Name Description
request ListBatchesRequest
responseObserver io.grpc.stub.StreamObserver<ListBatchesResponse>