Class DataStoreServiceGrpc.DataStoreServiceFutureStub (0.36.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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCreateDataStoreRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteDataStore(DeleteDataStoreRequest request)

public ListenableFuture<Operation> deleteDataStore(DeleteDataStoreRequest request)

Deletes a DataStore.

Parameter
NameDescription
requestDeleteDataStoreRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

getDataStore(GetDataStoreRequest request)

public ListenableFuture<DataStore> getDataStore(GetDataStoreRequest request)

Gets a DataStore.

Parameter
NameDescription
requestGetDataStoreRequest
Returns
TypeDescription
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
NameDescription
requestListDataStoresRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListDataStoresResponse>

updateDataStore(UpdateDataStoreRequest request)

public ListenableFuture<DataStore> updateDataStore(UpdateDataStoreRequest request)

Updates a DataStore

Parameter
NameDescription
requestUpdateDataStoreRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<DataStore>