Class BatchControllerGrpc.BatchControllerStub (4.1.0)

See more code actions.
public static final class BatchControllerGrpc.BatchControllerStub extends AbstractAsyncStub<BatchControllerGrpc.BatchControllerStub>

The BatchController provides methods to manage batch workloads.

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > BatchControllerGrpc.BatchControllerStub
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()

Methods

build(Channel channel, CallOptions callOptions)

protected BatchControllerGrpc.BatchControllerStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns 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
NameDescription
requestCreateBatchRequest
responseObserverio.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
NameDescription
requestDeleteBatchRequest
responseObserverio.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
NameDescription
requestGetBatchRequest
responseObserverio.grpc.stub.StreamObserver<Batch>

listBatches(ListBatchesRequest request, StreamObserver<ListBatchesResponse> responseObserver)

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

Lists batch workloads.

Parameters
NameDescription
requestListBatchesRequest
responseObserverio.grpc.stub.StreamObserver<ListBatchesResponse>