Class HttpJsonDatastoreAdminStub (2.14.1)

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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonDatastoreAdminStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DatastoreAdminStubSettings settings)

public static final HttpJsonDatastoreAdminStub create(DatastoreAdminStubSettings settings)
Parameter
NameDescription
settingsDatastoreAdminStubSettings
Returns
TypeDescription
HttpJsonDatastoreAdminStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsDatastoreAdminStubSettings
clientContextClientContext

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

createIndexCallable()

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

createIndexOperationCallable()

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

deleteIndexCallable()

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

deleteIndexOperationCallable()

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

exportEntitiesCallable()

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

exportEntitiesOperationCallable()

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getIndexCallable()

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

importEntitiesCallable()

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

importEntitiesOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listIndexesCallable()

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

listIndexesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()