Class CompletionServiceGrpc.CompletionServiceImplBase (2.9.0)

public abstract static class CompletionServiceGrpc.CompletionServiceImplBase implements BindableService

Auto-completion 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.

Inheritance

java.lang.Object > CompletionServiceGrpc.CompletionServiceImplBase

Implements

io.grpc.BindableService

Constructors

CompletionServiceImplBase()

public CompletionServiceImplBase()

Methods

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

completeQuery(CompleteQueryRequest request, StreamObserver<CompleteQueryResponse> responseObserver)

public 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
NameDescription
requestCompleteQueryRequest
responseObserverio.grpc.stub.StreamObserver<CompleteQueryResponse>

importCompletionData(ImportCompletionDataRequest request, StreamObserver<Operation> responseObserver)

public 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
NameDescription
requestImportCompletionDataRequest
responseObserverio.grpc.stub.StreamObserver<Operation>