Class DataStoreServiceGrpc.DataStoreServiceFutureStub (0.38.0)

public static final class DataStoreServiceGrpc.DataStoreServiceFutureStub extends AbstractFutureStub<DataStoreServiceGrpc.DataStoreServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service DataStoreService.

Service for managing DataStore configuration.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > DataStoreServiceGrpc.DataStoreServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected DataStoreServiceGrpc.DataStoreServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
DataStoreServiceGrpc.DataStoreServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createDataStore(CreateDataStoreRequest request)

public ListenableFuture<Operation> createDataStore(CreateDataStoreRequest request)

Creates a DataStore. DataStore is for storing Documents. To serve these documents for Search, or Recommendation use case, an Engine needs to be created separately.

Parameter
Name Description
request CreateDataStoreRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteDataStore(DeleteDataStoreRequest request)

public ListenableFuture<Operation> deleteDataStore(DeleteDataStoreRequest request)

Deletes a DataStore.

Parameter
Name Description
request DeleteDataStoreRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

getDataStore(GetDataStoreRequest request)

public ListenableFuture<DataStore> getDataStore(GetDataStoreRequest request)

Gets a DataStore.

Parameter
Name Description
request GetDataStoreRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DataStore>

listDataStores(ListDataStoresRequest request)

public ListenableFuture<ListDataStoresResponse> listDataStores(ListDataStoresRequest request)

Lists all the DataStores associated with the project.

Parameter
Name Description
request ListDataStoresRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListDataStoresResponse>

updateDataStore(UpdateDataStoreRequest request)

public ListenableFuture<DataStore> updateDataStore(UpdateDataStoreRequest request)

Updates a DataStore

Parameter
Name Description
request UpdateDataStoreRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DataStore>