Class ResponseMessage
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2beta1.ResponseMessage
- All Implemented Interfaces:
ResponseMessageOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ResponseMessage
extends com.google.protobuf.GeneratedMessage
implements ResponseMessageOrBuilder
Response messages from an automated agent.Protobuf type
google.cloud.dialogflow.v2beta1.ResponseMessage- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResponse messages from an automated agent.static final classIndicates that interaction with the Dialogflow agent has ended.static interfacestatic final classIndicates that the conversation should be handed off to a human agent.static interfacestatic enumstatic final classRepresents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs.static interfacestatic final classRepresents the signal that telles the client to transfer the phone call connected to the agent to a third-party endpoint.static interfacestatic final classThe text response message.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ResponseMessagestatic final com.google.protobuf.Descriptors.DescriptorA signal that indicates the interaction with the Dialogflow agent has ended.A signal that indicates the interaction with the Dialogflow agent has ended.Hands off conversation to a live agent.Hands off conversation to a live agent.An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.com.google.protobuf.Parser<ResponseMessage>com.google.protobuf.StructReturns a response containing a custom, platform-specific payload.com.google.protobuf.StructOrBuilderReturns a response containing a custom, platform-specific payload.intA signal that the client should transfer the phone call connected to this agent to a third-party endpoint.A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.getText()Returns a text response.Returns a text response.booleanA signal that indicates the interaction with the Dialogflow agent has ended.inthashCode()booleanHands off conversation to a live agent.booleanAn audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.booleanReturns a response containing a custom, platform-specific payload.booleanA 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.GeneratedMessage.FieldAccessorTablefinal booleanstatic ResponseMessage.Builderstatic ResponseMessage.BuildernewBuilder(ResponseMessage prototype) protected ResponseMessage.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER- See Also:
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER- See Also:
-
LIVE_AGENT_HANDOFF_FIELD_NUMBER
public static final int LIVE_AGENT_HANDOFF_FIELD_NUMBER- See Also:
-
END_INTERACTION_FIELD_NUMBER
public static final int END_INTERACTION_FIELD_NUMBER- See Also:
-
MIXED_AUDIO_FIELD_NUMBER
public static final int MIXED_AUDIO_FIELD_NUMBER- See Also:
-
TELEPHONY_TRANSFER_CALL_FIELD_NUMBER
public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getMessageCase
- Specified by:
getMessageCasein interfaceResponseMessageOrBuilder
-
hasText
public boolean hasText()Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;- Specified by:
hasTextin interfaceResponseMessageOrBuilder- Returns:
- Whether the text field is set.
-
getText
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;- Specified by:
getTextin interfaceResponseMessageOrBuilder- Returns:
- The text.
-
getTextOrBuilder
Returns a text response.
.google.cloud.dialogflow.v2beta1.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
-
hasLiveAgentHandoff
public boolean hasLiveAgentHandoff()Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;- Specified by:
hasLiveAgentHandoffin interfaceResponseMessageOrBuilder- Returns:
- Whether the liveAgentHandoff field is set.
-
getLiveAgentHandoff
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;- Specified by:
getLiveAgentHandoffin interfaceResponseMessageOrBuilder- Returns:
- The liveAgentHandoff.
-
getLiveAgentHandoffOrBuilder
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;- Specified by:
getLiveAgentHandoffOrBuilderin interfaceResponseMessageOrBuilder
-
hasEndInteraction
public boolean hasEndInteraction()A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;- Specified by:
hasEndInteractionin interfaceResponseMessageOrBuilder- Returns:
- Whether the endInteraction field is set.
-
getEndInteraction
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;- Specified by:
getEndInteractionin interfaceResponseMessageOrBuilder- Returns:
- The endInteraction.
-
getEndInteractionOrBuilder
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;- Specified by:
getEndInteractionOrBuilderin interfaceResponseMessageOrBuilder
-
hasMixedAudio
public boolean hasMixedAudio()An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5;- Specified by:
hasMixedAudioin interfaceResponseMessageOrBuilder- Returns:
- Whether the mixedAudio field is set.
-
getMixedAudio
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5;- Specified by:
getMixedAudioin interfaceResponseMessageOrBuilder- Returns:
- The mixedAudio.
-
getMixedAudioOrBuilder
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.
.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio mixed_audio = 5;- 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.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;- Specified by:
hasTelephonyTransferCallin interfaceResponseMessageOrBuilder- Returns:
- Whether the telephonyTransferCall field is set.
-
getTelephonyTransferCall
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;- Specified by:
getTelephonyTransferCallin interfaceResponseMessageOrBuilder- Returns:
- The telephonyTransferCall.
-
getTelephonyTransferCallOrBuilder
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
.google.cloud.dialogflow.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;- Specified by:
getTelephonyTransferCallOrBuilderin interfaceResponseMessageOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static ResponseMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ResponseMessage.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-