Class GrpcDataStoreServiceStub (0.49.0)

public class GrpcDataStoreServiceStub extends DataStoreServiceStub

gRPC stub implementation for the DataStoreService service API.

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

Inheritance

java.lang.Object > DataStoreServiceStub > GrpcDataStoreServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcDataStoreServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcDataStoreServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDataStoreServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcDataStoreServiceStub
Exceptions
Type Description
IOException

create(DataStoreServiceStubSettings settings)

public static final GrpcDataStoreServiceStub create(DataStoreServiceStubSettings settings)
Parameter
Name Description
settings DataStoreServiceStubSettings
Returns
Type Description
GrpcDataStoreServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcDataStoreServiceStub(DataStoreServiceStubSettings settings, ClientContext clientContext)

protected GrpcDataStoreServiceStub(DataStoreServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDataStoreServiceStub, 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
Name Description
settings DataStoreServiceStubSettings
clientContext ClientContext

GrpcDataStoreServiceStub(DataStoreServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDataStoreServiceStub(DataStoreServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDataStoreServiceStub, 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
Name Description
settings DataStoreServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createDataStoreCallable()

public UnaryCallable<CreateDataStoreRequest,Operation> createDataStoreCallable()
Returns
Type Description
UnaryCallable<CreateDataStoreRequest,Operation>
Overrides

createDataStoreOperationCallable()

public OperationCallable<CreateDataStoreRequest,DataStore,CreateDataStoreMetadata> createDataStoreOperationCallable()
Returns
Type Description
OperationCallable<CreateDataStoreRequest,DataStore,CreateDataStoreMetadata>
Overrides

deleteDataStoreCallable()

public UnaryCallable<DeleteDataStoreRequest,Operation> deleteDataStoreCallable()
Returns
Type Description
UnaryCallable<DeleteDataStoreRequest,Operation>
Overrides

deleteDataStoreOperationCallable()

public OperationCallable<DeleteDataStoreRequest,Empty,DeleteDataStoreMetadata> deleteDataStoreOperationCallable()
Returns
Type Description
OperationCallable<DeleteDataStoreRequest,Empty,DeleteDataStoreMetadata>
Overrides

getDataStoreCallable()

public UnaryCallable<GetDataStoreRequest,DataStore> getDataStoreCallable()
Returns
Type Description
UnaryCallable<GetDataStoreRequest,DataStore>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listDataStoresCallable()

public UnaryCallable<ListDataStoresRequest,ListDataStoresResponse> listDataStoresCallable()
Returns
Type Description
UnaryCallable<ListDataStoresRequest,ListDataStoresResponse>
Overrides

listDataStoresPagedCallable()

public UnaryCallable<ListDataStoresRequest,DataStoreServiceClient.ListDataStoresPagedResponse> listDataStoresPagedCallable()
Returns
Type Description
UnaryCallable<ListDataStoresRequest,ListDataStoresPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDataStoreCallable()

public UnaryCallable<UpdateDataStoreRequest,DataStore> updateDataStoreCallable()
Returns
Type Description
UnaryCallable<UpdateDataStoreRequest,DataStore>
Overrides