Class HttpJsonDatastoreAdminStub
- java.lang.Object
-
- com.google.cloud.datastore.admin.v1.stub.DatastoreAdminStub
-
- com.google.cloud.datastore.admin.v1.stub.HttpJsonDatastoreAdminStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonDatastoreAdminStub(DatastoreAdminStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonDatastoreAdminStub, using the given settings.protected
HttpJsonDatastoreAdminStub(DatastoreAdminStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonDatastoreAdminStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonDatastoreAdminStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonDatastoreAdminStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonDatastoreAdminStub
create(DatastoreAdminStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateIndexRequest,com.google.longrunning.Operation>
createIndexCallable()
com.google.api.gax.rpc.OperationCallable<CreateIndexRequest,Index,IndexOperationMetadata>
createIndexOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteIndexRequest,com.google.longrunning.Operation>
deleteIndexCallable()
com.google.api.gax.rpc.OperationCallable<DeleteIndexRequest,Index,IndexOperationMetadata>
deleteIndexOperationCallable()
com.google.api.gax.rpc.UnaryCallable<ExportEntitiesRequest,com.google.longrunning.Operation>
exportEntitiesCallable()
com.google.api.gax.rpc.OperationCallable<ExportEntitiesRequest,ExportEntitiesResponse,ExportEntitiesMetadata>
exportEntitiesOperationCallable()
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetIndexRequest,Index>
getIndexCallable()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<ImportEntitiesRequest,com.google.longrunning.Operation>
importEntitiesCallable()
com.google.api.gax.rpc.OperationCallable<ImportEntitiesRequest,com.google.protobuf.Empty,ImportEntitiesMetadata>
importEntitiesOperationCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListIndexesRequest,ListIndexesResponse>
listIndexesCallable()
com.google.api.gax.rpc.UnaryCallable<ListIndexesRequest,DatastoreAdminClient.ListIndexesPagedResponse>
listIndexesPagedCallable()
void
shutdown()
void
shutdownNow()
-
Methods inherited from class com.google.cloud.datastore.admin.v1.stub.DatastoreAdminStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonDatastoreAdminStub
protected HttpJsonDatastoreAdminStub(DatastoreAdminStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonDatastoreAdminStub
protected HttpJsonDatastoreAdminStub(DatastoreAdminStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonDatastoreAdminStub create(DatastoreAdminStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDatastoreAdminStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDatastoreAdminStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
in classDatastoreAdminStub
-
exportEntitiesCallable
public com.google.api.gax.rpc.UnaryCallable<ExportEntitiesRequest,com.google.longrunning.Operation> exportEntitiesCallable()
- Overrides:
exportEntitiesCallable
in classDatastoreAdminStub
-
exportEntitiesOperationCallable
public com.google.api.gax.rpc.OperationCallable<ExportEntitiesRequest,ExportEntitiesResponse,ExportEntitiesMetadata> exportEntitiesOperationCallable()
- Overrides:
exportEntitiesOperationCallable
in classDatastoreAdminStub
-
importEntitiesCallable
public com.google.api.gax.rpc.UnaryCallable<ImportEntitiesRequest,com.google.longrunning.Operation> importEntitiesCallable()
- Overrides:
importEntitiesCallable
in classDatastoreAdminStub
-
importEntitiesOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportEntitiesRequest,com.google.protobuf.Empty,ImportEntitiesMetadata> importEntitiesOperationCallable()
- Overrides:
importEntitiesOperationCallable
in classDatastoreAdminStub
-
createIndexCallable
public com.google.api.gax.rpc.UnaryCallable<CreateIndexRequest,com.google.longrunning.Operation> createIndexCallable()
- Overrides:
createIndexCallable
in classDatastoreAdminStub
-
createIndexOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateIndexRequest,Index,IndexOperationMetadata> createIndexOperationCallable()
- Overrides:
createIndexOperationCallable
in classDatastoreAdminStub
-
deleteIndexCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteIndexRequest,com.google.longrunning.Operation> deleteIndexCallable()
- Overrides:
deleteIndexCallable
in classDatastoreAdminStub
-
deleteIndexOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteIndexRequest,Index,IndexOperationMetadata> deleteIndexOperationCallable()
- Overrides:
deleteIndexOperationCallable
in classDatastoreAdminStub
-
getIndexCallable
public com.google.api.gax.rpc.UnaryCallable<GetIndexRequest,Index> getIndexCallable()
- Overrides:
getIndexCallable
in classDatastoreAdminStub
-
listIndexesCallable
public com.google.api.gax.rpc.UnaryCallable<ListIndexesRequest,ListIndexesResponse> listIndexesCallable()
- Overrides:
listIndexesCallable
in classDatastoreAdminStub
-
listIndexesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListIndexesRequest,DatastoreAdminClient.ListIndexesPagedResponse> listIndexesPagedCallable()
- Overrides:
listIndexesPagedCallable
in classDatastoreAdminStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDatastoreAdminStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-