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 Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    Performs a search.
    Performs a search.

    Methods inherited from class io.grpc.stub.AbstractBlockingStub

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

      public SearchResponse search(SearchRequest request) throws io.grpc.StatusException
       Performs a search.
       
      Throws:
      io.grpc.StatusException
    • searchLite

      public SearchResponse searchLite(SearchRequest request) throws io.grpc.StatusException
       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