Class SearchServiceGrpc.SearchServiceBlockingStub (0.49.0)

public static final class SearchServiceGrpc.SearchServiceBlockingStub extends AbstractBlockingStub<SearchServiceGrpc.SearchServiceBlockingStub>

A stub to allow clients to do synchronous rpc calls to service SearchService.

Service for search.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > SearchServiceGrpc.SearchServiceBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected SearchServiceGrpc.SearchServiceBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
SearchServiceGrpc.SearchServiceBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

search(SearchRequest request)

public SearchResponse search(SearchRequest request)

Performs a search.

Parameter
Name Description
request SearchRequest
Returns
Type Description
SearchResponse

searchLite(SearchRequest request)

public SearchResponse searchLite(SearchRequest request)

Performs a search. Similar to the 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 instead with required OAuth and IAM checks to provide better data security.

Parameter
Name Description
request SearchRequest
Returns
Type Description
SearchResponse