public class GrpcCompletionServiceStub extends CompletionServiceStub
gRPC stub implementation for the CompletionService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcCompletionServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcCompletionServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
create(CompletionServiceStubSettings settings)
public static final GrpcCompletionServiceStub create(CompletionServiceStubSettings settings)
Constructors
GrpcCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext)
protected GrpcCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcCompletionServiceStub, using the given settings. This is
protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.
GrpcCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcCompletionServiceStub, using the given settings. This is
protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
close()
public final void close()
Overrides
completeQueryCallable()
public UnaryCallable<CompleteQueryRequest,CompleteQueryResponse> completeQueryCallable()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Overrides
importCompletionSuggestionsCallable()
public UnaryCallable<ImportCompletionSuggestionsRequest,Operation> importCompletionSuggestionsCallable()
Overrides
importCompletionSuggestionsOperationCallable()
public OperationCallable<ImportCompletionSuggestionsRequest,ImportCompletionSuggestionsResponse,ImportCompletionSuggestionsMetadata> importCompletionSuggestionsOperationCallable()
Overrides
importSuggestionDenyListEntriesCallable()
public UnaryCallable<ImportSuggestionDenyListEntriesRequest,Operation> importSuggestionDenyListEntriesCallable()
Overrides
importSuggestionDenyListEntriesOperationCallable()
public OperationCallable<ImportSuggestionDenyListEntriesRequest,ImportSuggestionDenyListEntriesResponse,ImportSuggestionDenyListEntriesMetadata> importSuggestionDenyListEntriesOperationCallable()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
purgeCompletionSuggestionsCallable()
public UnaryCallable<PurgeCompletionSuggestionsRequest,Operation> purgeCompletionSuggestionsCallable()
Overrides
purgeCompletionSuggestionsOperationCallable()
public OperationCallable<PurgeCompletionSuggestionsRequest,PurgeCompletionSuggestionsResponse,PurgeCompletionSuggestionsMetadata> purgeCompletionSuggestionsOperationCallable()
Overrides
purgeSuggestionDenyListEntriesCallable()
public UnaryCallable<PurgeSuggestionDenyListEntriesRequest,Operation> purgeSuggestionDenyListEntriesCallable()
Overrides
purgeSuggestionDenyListEntriesOperationCallable()
public OperationCallable<PurgeSuggestionDenyListEntriesRequest,PurgeSuggestionDenyListEntriesResponse,PurgeSuggestionDenyListEntriesMetadata> purgeSuggestionDenyListEntriesOperationCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()