Interface CompletionServiceGrpc.AsyncService (2.55.0)

public static interface CompletionServiceGrpc.AsyncService

Autocomplete service for retail. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

Methods

completeQuery(CompleteQueryRequest request, StreamObserver<CompleteQueryResponse> responseObserver)

public default void completeQuery(CompleteQueryRequest request, StreamObserver<CompleteQueryResponse> responseObserver)

Completes the specified prefix with keyword suggestions. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

Parameters
Name Description
request CompleteQueryRequest
responseObserver io.grpc.stub.StreamObserver<CompleteQueryResponse>

importCompletionData(ImportCompletionDataRequest request, StreamObserver<Operation> responseObserver)

public default void importCompletionData(ImportCompletionDataRequest request, StreamObserver<Operation> responseObserver)

Bulk import of processed completion dataset. Request processing is asynchronous. Partial updating is not supported. The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

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