Class GrpcDataStoreServiceStub (0.32.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcDataStoreServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(DataStoreServiceStubSettings settings)

public static final GrpcDataStoreServiceStub create(DataStoreServiceStubSettings settings)
Parameter
NameDescription
settingsDataStoreServiceStubSettings
Returns
TypeDescription
GrpcDataStoreServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsDataStoreServiceStubSettings
clientContextClientContext

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
NameDescription
settingsDataStoreServiceStubSettings
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

createDataStoreCallable()

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

createDataStoreOperationCallable()

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

deleteDataStoreCallable()

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

deleteDataStoreOperationCallable()

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

getDataStoreCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDataStoresCallable()

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

listDataStoresPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDataStoreCallable()

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