Class HttpJsonDatastoreAdminStub (2.21.2)

public class HttpJsonDatastoreAdminStub extends DatastoreAdminStub

REST stub implementation for the DatastoreAdmin service API.

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

Inheritance

java.lang.Object > DatastoreAdminStub > HttpJsonDatastoreAdminStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DatastoreAdminStubSettings settings)

public static final HttpJsonDatastoreAdminStub create(DatastoreAdminStubSettings settings)
Parameter
Name Description
settings DatastoreAdminStubSettings
Returns
Type Description
HttpJsonDatastoreAdminStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonDatastoreAdminStub(DatastoreAdminStubSettings settings, ClientContext clientContext)

protected HttpJsonDatastoreAdminStub(DatastoreAdminStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonDatastoreAdminStub, 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 DatastoreAdminStubSettings
clientContext ClientContext

HttpJsonDatastoreAdminStub(DatastoreAdminStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDatastoreAdminStub(DatastoreAdminStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createIndexCallable()

public UnaryCallable<CreateIndexRequest,Operation> createIndexCallable()
Returns
Type Description
UnaryCallable<CreateIndexRequest,Operation>
Overrides

createIndexOperationCallable()

public OperationCallable<CreateIndexRequest,Index,IndexOperationMetadata> createIndexOperationCallable()
Returns
Type Description
OperationCallable<CreateIndexRequest,Index,IndexOperationMetadata>
Overrides

deleteIndexCallable()

public UnaryCallable<DeleteIndexRequest,Operation> deleteIndexCallable()
Returns
Type Description
UnaryCallable<DeleteIndexRequest,Operation>
Overrides

deleteIndexOperationCallable()

public OperationCallable<DeleteIndexRequest,Index,IndexOperationMetadata> deleteIndexOperationCallable()
Returns
Type Description
OperationCallable<DeleteIndexRequest,Index,IndexOperationMetadata>
Overrides

exportEntitiesCallable()

public UnaryCallable<ExportEntitiesRequest,Operation> exportEntitiesCallable()
Returns
Type Description
UnaryCallable<ExportEntitiesRequest,Operation>
Overrides

exportEntitiesOperationCallable()

public OperationCallable<ExportEntitiesRequest,ExportEntitiesResponse,ExportEntitiesMetadata> exportEntitiesOperationCallable()
Returns
Type Description
OperationCallable<ExportEntitiesRequest,ExportEntitiesResponse,ExportEntitiesMetadata>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getIndexCallable()

public UnaryCallable<GetIndexRequest,Index> getIndexCallable()
Returns
Type Description
UnaryCallable<GetIndexRequest,Index>
Overrides

importEntitiesCallable()

public UnaryCallable<ImportEntitiesRequest,Operation> importEntitiesCallable()
Returns
Type Description
UnaryCallable<ImportEntitiesRequest,Operation>
Overrides

importEntitiesOperationCallable()

public OperationCallable<ImportEntitiesRequest,Empty,ImportEntitiesMetadata> importEntitiesOperationCallable()
Returns
Type Description
OperationCallable<ImportEntitiesRequest,Empty,ImportEntitiesMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listIndexesCallable()

public UnaryCallable<ListIndexesRequest,ListIndexesResponse> listIndexesCallable()
Returns
Type Description
UnaryCallable<ListIndexesRequest,ListIndexesResponse>
Overrides

listIndexesPagedCallable()

public UnaryCallable<ListIndexesRequest,DatastoreAdminClient.ListIndexesPagedResponse> listIndexesPagedCallable()
Returns
Type Description
UnaryCallable<ListIndexesRequest,ListIndexesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()