Class SearchServiceGrpc.SearchServiceFutureStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<SearchServiceGrpc.SearchServiceFutureStub>
com.google.cloud.discoveryengine.v1beta.SearchServiceGrpc.SearchServiceFutureStub
Enclosing class:
SearchServiceGrpc

public static final class SearchServiceGrpc.SearchServiceFutureStub extends io.grpc.stub.AbstractFutureStub<SearchServiceGrpc.SearchServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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 Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    com.google.common.util.concurrent.ListenableFuture<SearchResponse>
    Performs a search.
    com.google.common.util.concurrent.ListenableFuture<SearchResponse>
    Performs a search.

    Methods inherited from class io.grpc.stub.AbstractFutureStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected SearchServiceGrpc.SearchServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<SearchServiceGrpc.SearchServiceFutureStub>
    • search

      public com.google.common.util.concurrent.ListenableFuture<SearchResponse> search(SearchRequest request)
       Performs a search.
       
    • searchLite

      public com.google.common.util.concurrent.ListenableFuture<SearchResponse> searchLite(SearchRequest request)
       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.