Package com.google.cloud.dialogflow.v2
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].
-
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 TypeMethodDescriptionanalyzeContent(AnalyzeContentRequest request) Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Creates a new participant in a conversation.getParticipant(GetParticipantRequest request) Retrieves a conversation participant.listParticipants(ListParticipantsRequest request) Returns the list of all participants in the specified conversation.io.grpc.stub.BlockingClientCall<StreamingAnalyzeContentRequest,StreamingAnalyzeContentResponse> Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation.suggestArticles(SuggestArticlesRequest request) Gets suggested articles for a participant based on specific historical messages.Gets suggested faq answers for a participant based on specific historical messages.Gets knowledge assist suggestions based on historical messages.Gets smart replies for a participant based on specific historical messages.Updates the specified participant.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ParticipantsGrpc.ParticipantsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.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
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
-