public static final class SearchServiceGrpc.SearchServiceStub extends io.grpc.stub.AbstractAsyncStub<SearchServiceGrpc.SearchServiceStub>
Service for search.
| Modifier and Type | Method and Description |
|---|---|
protected SearchServiceGrpc.SearchServiceStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
search(SearchRequest request,
io.grpc.stub.StreamObserver<SearchResponse> responseObserver)
Performs a search.
|
void |
searchLite(SearchRequest request,
io.grpc.stub.StreamObserver<SearchResponse> responseObserver)
Performs a search.
|
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReadyprotected SearchServiceGrpc.SearchServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<SearchServiceGrpc.SearchServiceStub>public void search(SearchRequest request, io.grpc.stub.StreamObserver<SearchResponse> responseObserver)
Performs a search.
public void searchLite(SearchRequest request, io.grpc.stub.StreamObserver<SearchResponse> responseObserver)
Performs a search. Similar to the [SearchService.Search][google.cloud.discoveryengine.v1beta.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.v1beta.SearchService.Search] instead with required OAuth and IAM checks to provide better data security.
Copyright © 2025 Google LLC. All rights reserved.