Class ResponseMessage
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3.ResponseMessage
-
- All Implemented Interfaces:
ResponseMessageOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ResponseMessage extends com.google.protobuf.GeneratedMessageV3 implements ResponseMessageOrBuilder
Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
Protobuf typegoogle.cloud.dialogflow.cx.v3.ResponseMessage- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResponseMessage.BuilderRepresents a response message that can be returned by a conversational agent.static classResponseMessage.ConversationSuccessIndicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about.static interfaceResponseMessage.ConversationSuccessOrBuilderstatic classResponseMessage.EndInteractionIndicates that interaction with the Dialogflow agent has ended.static interfaceResponseMessage.EndInteractionOrBuilderstatic classResponseMessage.KnowledgeInfoCardRepresents info card response.static interfaceResponseMessage.KnowledgeInfoCardOrBuilderstatic classResponseMessage.LiveAgentHandoffIndicates that the conversation should be handed off to a live agent.static interfaceResponseMessage.LiveAgentHandoffOrBuilderstatic classResponseMessage.MessageCasestatic classResponseMessage.MixedAudioRepresents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs.static interfaceResponseMessage.MixedAudioOrBuilderstatic classResponseMessage.OutputAudioTextA text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.static interfaceResponseMessage.OutputAudioTextOrBuilderstatic classResponseMessage.PlayAudioSpecifies an audio clip to be played by the client as part of the response.static interfaceResponseMessage.PlayAudioOrBuilderstatic classResponseMessage.ResponseTypeRepresents different response types.static classResponseMessage.TelephonyTransferCallRepresents the signal that telles the client to transfer the phone call connected to the agent to a third-party endpoint.static interfaceResponseMessage.TelephonyTransferCallOrBuilderstatic classResponseMessage.TextThe text response message.static interfaceResponseMessage.TextOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCHANNEL_FIELD_NUMBERstatic intCONVERSATION_SUCCESS_FIELD_NUMBERstatic intEND_INTERACTION_FIELD_NUMBERstatic intKNOWLEDGE_INFO_CARD_FIELD_NUMBERstatic intLIVE_AGENT_HANDOFF_FIELD_NUMBERstatic intMIXED_AUDIO_FIELD_NUMBERstatic intOUTPUT_AUDIO_TEXT_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intPLAY_AUDIO_FIELD_NUMBERstatic intRESPONSE_TYPE_FIELD_NUMBERstatic intTELEPHONY_TRANSFER_CALL_FIELD_NUMBERstatic intTEXT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetChannel()The channel which the response is associated with.com.google.protobuf.ByteStringgetChannelBytes()The channel which the response is associated with.ResponseMessage.ConversationSuccessgetConversationSuccess()Indicates that the conversation succeeded.ResponseMessage.ConversationSuccessOrBuildergetConversationSuccessOrBuilder()Indicates that the conversation succeeded.static ResponseMessagegetDefaultInstance()ResponseMessagegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()ResponseMessage.EndInteractiongetEndInteraction()Output only.ResponseMessage.EndInteractionOrBuildergetEndInteractionOrBuilder()Output only.ResponseMessage.KnowledgeInfoCardgetKnowledgeInfoCard()Represents info card for knowledge answers, to be better rendered in Dialogflow Messenger.ResponseMessage.KnowledgeInfoCardOrBuildergetKnowledgeInfoCardOrBuilder()Represents info card for knowledge answers, to be better rendered in Dialogflow Messenger.ResponseMessage.LiveAgentHandoffgetLiveAgentHandoff()Hands off conversation to a human agent.ResponseMessage.LiveAgentHandoffOrBuildergetLiveAgentHandoffOrBuilder()Hands off conversation to a human agent.ResponseMessage.MessageCasegetMessageCase()ResponseMessage.MixedAudiogetMixedAudio()Output only.ResponseMessage.MixedAudioOrBuildergetMixedAudioOrBuilder()Output only.ResponseMessage.OutputAudioTextgetOutputAudioText()A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.ResponseMessage.OutputAudioTextOrBuildergetOutputAudioTextOrBuilder()A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.com.google.protobuf.Parser<ResponseMessage>getParserForType()com.google.protobuf.StructgetPayload()Returns a response containing a custom, platform-specific payload.com.google.protobuf.StructOrBuildergetPayloadOrBuilder()Returns a response containing a custom, platform-specific payload.ResponseMessage.PlayAudiogetPlayAudio()Signal that the client should play an audio clip hosted at a client-specific URI.ResponseMessage.PlayAudioOrBuildergetPlayAudioOrBuilder()Signal that the client should play an audio clip hosted at a client-specific URI.ResponseMessage.ResponseTypegetResponseType()Response type.intgetResponseTypeValue()Response type.intgetSerializedSize()ResponseMessage.TelephonyTransferCallgetTelephonyTransferCall()A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.ResponseMessage.TelephonyTransferCallOrBuildergetTelephonyTransferCallOrBuilder()A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.ResponseMessage.TextgetText()Returns a text response.ResponseMessage.TextOrBuildergetTextOrBuilder()Returns a text response.booleanhasConversationSuccess()Indicates that the conversation succeeded.booleanhasEndInteraction()Output only.inthashCode()booleanhasKnowledgeInfoCard()Represents info card for knowledge answers, to be better rendered in Dialogflow Messenger.booleanhasLiveAgentHandoff()Hands off conversation to a human agent.booleanhasMixedAudio()Output only.booleanhasOutputAudioText()A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.booleanhasPayload()Returns a response containing a custom, platform-specific payload.booleanhasPlayAudio()Signal that the client should play an audio clip hosted at a client-specific URI.booleanhasTelephonyTransferCall()A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.booleanhasText()Returns a text response.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ResponseMessage.BuildernewBuilder()static ResponseMessage.BuildernewBuilder(ResponseMessage prototype)ResponseMessage.BuildernewBuilderForType()protected ResponseMessage.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ResponseMessageparseDelimitedFrom(InputStream input)static ResponseMessageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResponseMessageparseFrom(byte[] data)static ResponseMessageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResponseMessageparseFrom(com.google.protobuf.ByteString data)static ResponseMessageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResponseMessageparseFrom(com.google.protobuf.CodedInputStream input)static ResponseMessageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResponseMessageparseFrom(InputStream input)static ResponseMessageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResponseMessageparseFrom(ByteBuffer data)static ResponseMessageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ResponseMessage>parser()ResponseMessage.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONVERSATION_SUCCESS_FIELD_NUMBER
public static final int CONVERSATION_SUCCESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_AUDIO_TEXT_FIELD_NUMBER
public static final int OUTPUT_AUDIO_TEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIVE_AGENT_HANDOFF_FIELD_NUMBER
public static final int LIVE_AGENT_HANDOFF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_INTERACTION_FIELD_NUMBER
public static final int END_INTERACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PLAY_AUDIO_FIELD_NUMBER
public static final int PLAY_AUDIO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIXED_AUDIO_FIELD_NUMBER
public static final int MIXED_AUDIO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TELEPHONY_TRANSFER_CALL_FIELD_NUMBER
public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KNOWLEDGE_INFO_CARD_FIELD_NUMBER
public static final int KNOWLEDGE_INFO_CARD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_TYPE_FIELD_NUMBER
public static final int RESPONSE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CHANNEL_FIELD_NUMBER
public static final int CHANNEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getMessageCase
public ResponseMessage.MessageCase getMessageCase()
- Specified by:
getMessageCasein interfaceResponseMessageOrBuilder
-
hasText
public boolean hasText()
Returns a text response.
.google.cloud.dialogflow.cx.v3.ResponseMessage.Text text = 1;- Specified by:
hasTextin interfaceResponseMessageOrBuilder- Returns:
- Whether the text field is set.
-
getText
public ResponseMessage.Text getText()
Returns a text response.
.google.cloud.dialogflow.cx.v3.ResponseMessage.Text text = 1;- Specified by:
getTextin interfaceResponseMessageOrBuilder- Returns:
- The text.
-
getTextOrBuilder
public ResponseMessage.TextOrBuilder getTextOrBuilder()
Returns a text response.
.google.cloud.dialogflow.cx.v3.ResponseMessage.Text text = 1;- Specified by:
getTextOrBuilderin interfaceResponseMessageOrBuilder
-
hasPayload
public boolean hasPayload()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;- Specified by:
hasPayloadin interfaceResponseMessageOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public com.google.protobuf.Struct getPayload()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;- Specified by:
getPayloadin interfaceResponseMessageOrBuilder- Returns:
- The payload.
-
getPayloadOrBuilder
public com.google.protobuf.StructOrBuilder getPayloadOrBuilder()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;- Specified by:
getPayloadOrBuilderin interfaceResponseMessageOrBuilder
-
hasConversationSuccess
public boolean hasConversationSuccess()
Indicates that the conversation succeeded.
.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess conversation_success = 9;- Specified by:
hasConversationSuccessin interfaceResponseMessageOrBuilder- Returns:
- Whether the conversationSuccess field is set.
-
getConversationSuccess
public ResponseMessage.ConversationSuccess getConversationSuccess()
Indicates that the conversation succeeded.
.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess conversation_success = 9;- Specified by:
getConversationSuccessin interfaceResponseMessageOrBuilder- Returns:
- The conversationSuccess.
-
getConversationSuccessOrBuilder
public ResponseMessage.ConversationSuccessOrBuilder getConversationSuccessOrBuilder()
Indicates that the conversation succeeded.
.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess conversation_success = 9;- Specified by:
getConversationSuccessOrBuilderin interfaceResponseMessageOrBuilder
-
hasOutputAudioText
public boolean hasOutputAudioText()
A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText output_audio_text = 8;- Specified by:
hasOutputAudioTextin interfaceResponseMessageOrBuilder- Returns:
- Whether the outputAudioText field is set.
-
getOutputAudioText
public ResponseMessage.OutputAudioText getOutputAudioText()
A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText output_audio_text = 8;- Specified by:
getOutputAudioTextin interfaceResponseMessageOrBuilder- Returns:
- The outputAudioText.
-
getOutputAudioTextOrBuilder
public ResponseMessage.OutputAudioTextOrBuilder getOutputAudioTextOrBuilder()
A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText output_audio_text = 8;- Specified by:
getOutputAudioTextOrBuilderin interfaceResponseMessageOrBuilder
-
hasLiveAgentHandoff
public boolean hasLiveAgentHandoff()
Hands off conversation to a human agent.
.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;- Specified by:
hasLiveAgentHandoffin interfaceResponseMessageOrBuilder- Returns:
- Whether the liveAgentHandoff field is set.
-
getLiveAgentHandoff
public ResponseMessage.LiveAgentHandoff getLiveAgentHandoff()
Hands off conversation to a human agent.
.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;- Specified by:
getLiveAgentHandoffin interfaceResponseMessageOrBuilder- Returns:
- The liveAgentHandoff.
-
getLiveAgentHandoffOrBuilder
public ResponseMessage.LiveAgentHandoffOrBuilder getLiveAgentHandoffOrBuilder()
Hands off conversation to a human agent.
.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff live_agent_handoff = 10;- Specified by:
getLiveAgentHandoffOrBuilderin interfaceResponseMessageOrBuilder
-
hasEndInteraction
public boolean hasEndInteraction()
Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.
.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEndInteractionin interfaceResponseMessageOrBuilder- Returns:
- Whether the endInteraction field is set.
-
getEndInteraction
public ResponseMessage.EndInteraction getEndInteraction()
Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.
.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEndInteractionin interfaceResponseMessageOrBuilder- Returns:
- The endInteraction.
-
getEndInteractionOrBuilder
public ResponseMessage.EndInteractionOrBuilder getEndInteractionOrBuilder()
Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It's guaranteed that there is at most one such message in each response.
.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction end_interaction = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEndInteractionOrBuilderin interfaceResponseMessageOrBuilder
-
hasPlayAudio
public boolean hasPlayAudio()
Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself does not try to read or process the URI in any way.
.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;- Specified by:
hasPlayAudioin interfaceResponseMessageOrBuilder- Returns:
- Whether the playAudio field is set.
-
getPlayAudio
public ResponseMessage.PlayAudio getPlayAudio()
Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself does not try to read or process the URI in any way.
.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;- Specified by:
getPlayAudioin interfaceResponseMessageOrBuilder- Returns:
- The playAudio.
-
getPlayAudioOrBuilder
public ResponseMessage.PlayAudioOrBuilder getPlayAudioOrBuilder()
Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself does not try to read or process the URI in any way.
.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12;- Specified by:
getPlayAudioOrBuilderin interfaceResponseMessageOrBuilder
-
hasMixedAudio
public boolean hasMixedAudio()
Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio]. This message is generated by Dialogflow only and not supposed to be defined by the user.
.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasMixedAudioin interfaceResponseMessageOrBuilder- Returns:
- Whether the mixedAudio field is set.
-
getMixedAudio
public ResponseMessage.MixedAudio getMixedAudio()
Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio]. This message is generated by Dialogflow only and not supposed to be defined by the user.
.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMixedAudioin interfaceResponseMessageOrBuilder- Returns:
- The mixedAudio.
-
getMixedAudioOrBuilder
public ResponseMessage.MixedAudioOrBuilder getMixedAudioOrBuilder()
Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio]. This message is generated by Dialogflow only and not supposed to be defined by the user.
.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio mixed_audio = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMixedAudioOrBuilderin interfaceResponseMessageOrBuilder
-
hasTelephonyTransferCall
public boolean hasTelephonyTransferCall()
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;- Specified by:
hasTelephonyTransferCallin interfaceResponseMessageOrBuilder- Returns:
- Whether the telephonyTransferCall field is set.
-
getTelephonyTransferCall
public ResponseMessage.TelephonyTransferCall getTelephonyTransferCall()
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;- Specified by:
getTelephonyTransferCallin interfaceResponseMessageOrBuilder- Returns:
- The telephonyTransferCall.
-
getTelephonyTransferCallOrBuilder
public ResponseMessage.TelephonyTransferCallOrBuilder getTelephonyTransferCallOrBuilder()
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18;- Specified by:
getTelephonyTransferCallOrBuilderin interfaceResponseMessageOrBuilder
-
hasKnowledgeInfoCard
public boolean hasKnowledgeInfoCard()
Represents info card for knowledge answers, to be better rendered in Dialogflow Messenger.
.google.cloud.dialogflow.cx.v3.ResponseMessage.KnowledgeInfoCard knowledge_info_card = 20;- Specified by:
hasKnowledgeInfoCardin interfaceResponseMessageOrBuilder- Returns:
- Whether the knowledgeInfoCard field is set.
-
getKnowledgeInfoCard
public ResponseMessage.KnowledgeInfoCard getKnowledgeInfoCard()
Represents info card for knowledge answers, to be better rendered in Dialogflow Messenger.
.google.cloud.dialogflow.cx.v3.ResponseMessage.KnowledgeInfoCard knowledge_info_card = 20;- Specified by:
getKnowledgeInfoCardin interfaceResponseMessageOrBuilder- Returns:
- The knowledgeInfoCard.
-
getKnowledgeInfoCardOrBuilder
public ResponseMessage.KnowledgeInfoCardOrBuilder getKnowledgeInfoCardOrBuilder()
Represents info card for knowledge answers, to be better rendered in Dialogflow Messenger.
.google.cloud.dialogflow.cx.v3.ResponseMessage.KnowledgeInfoCard knowledge_info_card = 20;- Specified by:
getKnowledgeInfoCardOrBuilderin interfaceResponseMessageOrBuilder
-
getResponseTypeValue
public int getResponseTypeValue()
Response type.
.google.cloud.dialogflow.cx.v3.ResponseMessage.ResponseType response_type = 4;- Specified by:
getResponseTypeValuein interfaceResponseMessageOrBuilder- Returns:
- The enum numeric value on the wire for responseType.
-
getResponseType
public ResponseMessage.ResponseType getResponseType()
Response type.
.google.cloud.dialogflow.cx.v3.ResponseMessage.ResponseType response_type = 4;- Specified by:
getResponseTypein interfaceResponseMessageOrBuilder- Returns:
- The responseType.
-
getChannel
public String getChannel()
The channel which the response is associated with. Clients can specify the channel via [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel], and only associated channel response will be returned.
string channel = 19;- Specified by:
getChannelin interfaceResponseMessageOrBuilder- Returns:
- The channel.
-
getChannelBytes
public com.google.protobuf.ByteString getChannelBytes()
The channel which the response is associated with. Clients can specify the channel via [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel], and only associated channel response will be returned.
string channel = 19;- Specified by:
getChannelBytesin interfaceResponseMessageOrBuilder- Returns:
- The bytes for channel.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ResponseMessage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseMessage parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseMessage parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ResponseMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ResponseMessage parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ResponseMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ResponseMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ResponseMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ResponseMessage.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ResponseMessage.Builder newBuilder()
-
newBuilder
public static ResponseMessage.Builder newBuilder(ResponseMessage prototype)
-
toBuilder
public ResponseMessage.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ResponseMessage.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ResponseMessage getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ResponseMessage> parser()
-
getParserForType
public com.google.protobuf.Parser<ResponseMessage> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ResponseMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-