Class SearchServiceGrpc.SearchServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<SearchServiceGrpc.SearchServiceBlockingV2Stub>
com.google.cloud.discoveryengine.v1.SearchServiceGrpc.SearchServiceBlockingV2Stub
- Enclosing class:
- SearchServiceGrpc
public static final class SearchServiceGrpc.SearchServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<SearchServiceGrpc.SearchServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service SearchService.
Service for search.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) search(SearchRequest request) Performs a search.searchLite(SearchRequest request) Performs a search.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected SearchServiceGrpc.SearchServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SearchServiceGrpc.SearchServiceBlockingV2Stub>
-
search
Performs a search.
- Throws:
io.grpc.StatusException
-
searchLite
Performs a search. Similar to the [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] method, but a lite version that allows API key for authentication, where OAuth and IAM checks are not required. Only public website search is supported by this method. If data stores and engines not associated with public website search are specified, a `FAILED_PRECONDITION` error is returned. This method can be used for easy onboarding without having to implement an authentication backend. However, it is strongly recommended to use [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] instead with required OAuth and IAM checks to provide better data security.
- Throws:
io.grpc.StatusException
-