Class DataStoreServiceGrpc.DataStoreServiceStub (0.37.0)

public static final class DataStoreServiceGrpc.DataStoreServiceStub extends AbstractAsyncStub<DataStoreServiceGrpc.DataStoreServiceStub>

A stub to allow clients to do asynchronous rpc calls to service DataStoreService.

Service for managing DataStore configuration.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > DataStoreServiceGrpc.DataStoreServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected DataStoreServiceGrpc.DataStoreServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
DataStoreServiceGrpc.DataStoreServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createDataStore(CreateDataStoreRequest request, StreamObserver<Operation> responseObserver)

public void createDataStore(CreateDataStoreRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestCreateDataStoreRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteDataStore(DeleteDataStoreRequest request, StreamObserver<Operation> responseObserver)

public void deleteDataStore(DeleteDataStoreRequest request, StreamObserver<Operation> responseObserver)

Deletes a DataStore.

Parameters
NameDescription
requestDeleteDataStoreRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getDataStore(GetDataStoreRequest request, StreamObserver<DataStore> responseObserver)

public void getDataStore(GetDataStoreRequest request, StreamObserver<DataStore> responseObserver)

Gets a DataStore.

Parameters
NameDescription
requestGetDataStoreRequest
responseObserverio.grpc.stub.StreamObserver<DataStore>

getDocumentProcessingConfig(GetDocumentProcessingConfigRequest request, StreamObserver<DocumentProcessingConfig> responseObserver)

public void getDocumentProcessingConfig(GetDocumentProcessingConfigRequest request, StreamObserver<DocumentProcessingConfig> responseObserver)

Gets a DocumentProcessingConfig.

Parameters
NameDescription
requestGetDocumentProcessingConfigRequest
responseObserverio.grpc.stub.StreamObserver<DocumentProcessingConfig>

listDataStores(ListDataStoresRequest request, StreamObserver<ListDataStoresResponse> responseObserver)

public void listDataStores(ListDataStoresRequest request, StreamObserver<ListDataStoresResponse> responseObserver)

Lists all the DataStores associated with the project.

Parameters
NameDescription
requestListDataStoresRequest
responseObserverio.grpc.stub.StreamObserver<ListDataStoresResponse>

updateDataStore(UpdateDataStoreRequest request, StreamObserver<DataStore> responseObserver)

public void updateDataStore(UpdateDataStoreRequest request, StreamObserver<DataStore> responseObserver)

Updates a DataStore

Parameters
NameDescription
requestUpdateDataStoreRequest
responseObserverio.grpc.stub.StreamObserver<DataStore>

updateDocumentProcessingConfig(UpdateDocumentProcessingConfigRequest request, StreamObserver<DocumentProcessingConfig> responseObserver)

public void updateDocumentProcessingConfig(UpdateDocumentProcessingConfigRequest request, StreamObserver<DocumentProcessingConfig> responseObserver)

Updates the DocumentProcessingConfig. DocumentProcessingConfig is a singleon resource of DataStore. It's empty when DataStore is created. The first call to this method will set up DocumentProcessingConfig.

Parameters
NameDescription
requestUpdateDocumentProcessingConfigRequest
responseObserverio.grpc.stub.StreamObserver<DocumentProcessingConfig>