Class GrpcBatchControllerStub (4.30.0)

public class GrpcBatchControllerStub extends BatchControllerStub

gRPC stub implementation for the BatchController service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > BatchControllerStub > GrpcBatchControllerStub

Static Methods

create(ClientContext clientContext)

public static final GrpcBatchControllerStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcBatchControllerStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcBatchControllerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcBatchControllerStub
Exceptions
TypeDescription
IOException

create(BatchControllerStubSettings settings)

public static final GrpcBatchControllerStub create(BatchControllerStubSettings settings)
Parameter
NameDescription
settingsBatchControllerStubSettings
Returns
TypeDescription
GrpcBatchControllerStub
Exceptions
TypeDescription
IOException

Constructors

GrpcBatchControllerStub(BatchControllerStubSettings settings, ClientContext clientContext)

protected GrpcBatchControllerStub(BatchControllerStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcBatchControllerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsBatchControllerStubSettings
clientContextClientContext

GrpcBatchControllerStub(BatchControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcBatchControllerStub(BatchControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcBatchControllerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsBatchControllerStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createBatchCallable()

public UnaryCallable<CreateBatchRequest,Operation> createBatchCallable()
Returns
TypeDescription
UnaryCallable<CreateBatchRequest,Operation>
Overrides

createBatchOperationCallable()

public OperationCallable<CreateBatchRequest,Batch,BatchOperationMetadata> createBatchOperationCallable()
Returns
TypeDescription
OperationCallable<CreateBatchRequest,Batch,BatchOperationMetadata>
Overrides

deleteBatchCallable()

public UnaryCallable<DeleteBatchRequest,Empty> deleteBatchCallable()
Returns
TypeDescription
UnaryCallable<DeleteBatchRequest,Empty>
Overrides

getBatchCallable()

public UnaryCallable<GetBatchRequest,Batch> getBatchCallable()
Returns
TypeDescription
UnaryCallable<GetBatchRequest,Batch>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listBatchesCallable()

public UnaryCallable<ListBatchesRequest,ListBatchesResponse> listBatchesCallable()
Returns
TypeDescription
UnaryCallable<ListBatchesRequest,ListBatchesResponse>
Overrides

listBatchesPagedCallable()

public UnaryCallable<ListBatchesRequest,BatchControllerClient.ListBatchesPagedResponse> listBatchesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListBatchesRequest,ListBatchesPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides