Class ParticipantsGrpc.ParticipantsBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<ParticipantsGrpc.ParticipantsBlockingV2Stub>
com.google.cloud.dialogflow.v2.ParticipantsGrpc.ParticipantsBlockingV2Stub
Enclosing class:
ParticipantsGrpc

public static final class ParticipantsGrpc.ParticipantsBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<ParticipantsGrpc.ParticipantsBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Participants.
 Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
 
  • Method Details

    • build

      protected ParticipantsGrpc.ParticipantsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<ParticipantsGrpc.ParticipantsBlockingV2Stub>
    • createParticipant

      public Participant createParticipant(CreateParticipantRequest request) throws io.grpc.StatusException
       Creates a new participant in a conversation.
       
      Throws:
      io.grpc.StatusException
    • getParticipant

      public Participant getParticipant(GetParticipantRequest request) throws io.grpc.StatusException
       Retrieves a conversation participant.
       
      Throws:
      io.grpc.StatusException
    • listParticipants

      public ListParticipantsResponse listParticipants(ListParticipantsRequest request) throws io.grpc.StatusException
       Returns the list of all participants in the specified conversation.
       
      Throws:
      io.grpc.StatusException
    • updateParticipant

      public Participant updateParticipant(UpdateParticipantRequest request) throws io.grpc.StatusException
       Updates the specified participant.
       
      Throws:
      io.grpc.StatusException
    • analyzeContent

      public AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request) throws io.grpc.StatusException
       Adds a text (chat, for example), or audio (phone recording, for example)
       message from a participant into the conversation.
       Note: Always use agent versions for production traffic
       sent to virtual agents. See [Versions and
       environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
       
      Throws:
      io.grpc.StatusException
    • streamingAnalyzeContent

      @ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<StreamingAnalyzeContentRequest,StreamingAnalyzeContentResponse> streamingAnalyzeContent()
       Adds a text (chat, for example), or audio (phone recording, for example)
       message from a participant into the conversation.
       Note: This method is only available through the gRPC API (not REST).
       The top-level message sent to the client by the server is
       `StreamingAnalyzeContentResponse`. Multiple response messages can be
       returned in order. The first one or more messages contain the
       `recognition_result` field. Each result represents a more complete
       transcript of what the user said. The next message contains the
       `reply_text` field and potentially the `reply_audio` field. The message can
       also contain the `automated_agent_reply` field.
       Note: Always use agent versions for production traffic
       sent to virtual agents. See [Versions and
       environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
       
    • suggestArticles

      public SuggestArticlesResponse suggestArticles(SuggestArticlesRequest request) throws io.grpc.StatusException
       Gets suggested articles for a participant based on specific historical
       messages.
       
      Throws:
      io.grpc.StatusException
    • suggestFaqAnswers

      public SuggestFaqAnswersResponse suggestFaqAnswers(SuggestFaqAnswersRequest request) throws io.grpc.StatusException
       Gets suggested faq answers for a participant based on specific historical
       messages.
       
      Throws:
      io.grpc.StatusException
    • suggestSmartReplies

      public SuggestSmartRepliesResponse suggestSmartReplies(SuggestSmartRepliesRequest request) throws io.grpc.StatusException
       Gets smart replies for a participant based on specific historical
       messages.
       
      Throws:
      io.grpc.StatusException
    • suggestKnowledgeAssist

      public SuggestKnowledgeAssistResponse suggestKnowledgeAssist(SuggestKnowledgeAssistRequest request) throws io.grpc.StatusException
       Gets knowledge assist suggestions based on historical messages.
       
      Throws:
      io.grpc.StatusException