Class HttpJsonDataStoreServiceStub (0.47.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonDataStoreServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DataStoreServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings DataStoreServiceStubSettings
clientContext ClientContext

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
Name Description
settings DataStoreServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

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

getDocumentProcessingConfigCallable()

public UnaryCallable<GetDocumentProcessingConfigRequest,DocumentProcessingConfig> getDocumentProcessingConfigCallable()
Returns
Type Description
UnaryCallable<GetDocumentProcessingConfigRequest,DocumentProcessingConfig>
Overrides

getHttpJsonOperationsStub()

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

updateDocumentProcessingConfigCallable()

public UnaryCallable<UpdateDocumentProcessingConfigRequest,DocumentProcessingConfig> updateDocumentProcessingConfigCallable()
Returns
Type Description
UnaryCallable<UpdateDocumentProcessingConfigRequest,DocumentProcessingConfig>
Overrides