Class CompletionServiceGrpc.CompletionServiceFutureStub (2.26.0)

public static final class CompletionServiceGrpc.CompletionServiceFutureStub extends AbstractFutureStub<CompletionServiceGrpc.CompletionServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service CompletionService.

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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > CompletionServiceGrpc.CompletionServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

completeQuery(CompleteQueryRequest request)

public ListenableFuture<CompleteQueryResponse> completeQuery(CompleteQueryRequest request)

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.

Parameter
NameDescription
requestCompleteQueryRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<CompleteQueryResponse>

importCompletionData(ImportCompletionDataRequest request)

public ListenableFuture<Operation> importCompletionData(ImportCompletionDataRequest request)

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.

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