Interface DataStoreServiceGrpc.AsyncService (0.51.0)

public static interface DataStoreServiceGrpc.AsyncService

Service for managing DataStore configuration.

Methods

createDataStore(CreateDataStoreRequest request, StreamObserver<Operation> responseObserver)

public default 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
Name Description
request CreateDataStoreRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteDataStore(DeleteDataStoreRequest request, StreamObserver<Operation> responseObserver)

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

Deletes a DataStore.

Parameters
Name Description
request DeleteDataStoreRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

getDataStore(GetDataStoreRequest request, StreamObserver<DataStore> responseObserver)

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

Gets a DataStore.

Parameters
Name Description
request GetDataStoreRequest
responseObserver io.grpc.stub.StreamObserver<DataStore>

getDocumentProcessingConfig(GetDocumentProcessingConfigRequest request, StreamObserver<DocumentProcessingConfig> responseObserver)

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

Gets a DocumentProcessingConfig.

Parameters
Name Description
request GetDocumentProcessingConfigRequest
responseObserver io.grpc.stub.StreamObserver<DocumentProcessingConfig>

listDataStores(ListDataStoresRequest request, StreamObserver<ListDataStoresResponse> responseObserver)

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

Lists all the DataStores associated with the project.

Parameters
Name Description
request ListDataStoresRequest
responseObserver io.grpc.stub.StreamObserver<ListDataStoresResponse>

updateDataStore(UpdateDataStoreRequest request, StreamObserver<DataStore> responseObserver)

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

Updates a DataStore

Parameters
Name Description
request UpdateDataStoreRequest
responseObserver io.grpc.stub.StreamObserver<DataStore>

updateDocumentProcessingConfig(UpdateDocumentProcessingConfigRequest request, StreamObserver<DocumentProcessingConfig> responseObserver)

public default 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
Name Description
request UpdateDocumentProcessingConfigRequest
responseObserver io.grpc.stub.StreamObserver<DocumentProcessingConfig>