Class HttpJsonDataStoreServiceStub (0.31.0)

public class HttpJsonDataStoreServiceStub extends DataStoreServiceStub

REST stub implementation for the DataStoreService service API.

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

Inheritance

java.lang.Object > DataStoreServiceStub > HttpJsonDataStoreServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonDataStoreServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonDataStoreServiceStub
Exceptions
TypeDescription
IOException

create(DataStoreServiceStubSettings settings)

public static final HttpJsonDataStoreServiceStub create(DataStoreServiceStubSettings settings)
Parameter
NameDescription
settingsDataStoreServiceStubSettings
Returns
TypeDescription
HttpJsonDataStoreServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonDataStoreServiceStub(DataStoreServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonDataStoreServiceStub(DataStoreServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonDataStoreServiceStub, 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

HttpJsonDataStoreServiceStub(DataStoreServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDataStoreServiceStub(DataStoreServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonDataStoreServiceStub, 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
callableFactoryHttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
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