Class SearchServiceGrpc.SearchServiceStub

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

public static final class SearchServiceGrpc.SearchServiceStub extends io.grpc.stub.AbstractAsyncStub<SearchServiceGrpc.SearchServiceStub>
A stub to allow clients to do asynchronous 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)
     
    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.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    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.SearchServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<SearchServiceGrpc.SearchServiceStub>
    • search

      public void search(SearchRequest request, io.grpc.stub.StreamObserver<SearchResponse> responseObserver)
       Performs a search.
       
    • searchLite

      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.