Class ResponseMessage
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class ResponseMessage extends com.google.protobuf.GeneratedMessageV3 implements ResponseMessageOrBuilder
Response messages from an automated agent.
Protobuf typegoogle.cloud.dialogflow.v2beta1.ResponseMessage
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResponseMessage.Builder
Response messages from an automated agent.static class
ResponseMessage.EndInteraction
Indicates that interaction with the Dialogflow agent has ended.static interface
ResponseMessage.EndInteractionOrBuilder
static class
ResponseMessage.LiveAgentHandoff
Indicates that the conversation should be handed off to a human agent.static interface
ResponseMessage.LiveAgentHandoffOrBuilder
static class
ResponseMessage.MessageCase
static class
ResponseMessage.MixedAudio
Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs.static interface
ResponseMessage.MixedAudioOrBuilder
static class
ResponseMessage.TelephonyTransferCall
Represents the signal that telles the client to transfer the phone call connected to the agent to a third-party endpoint.static interface
ResponseMessage.TelephonyTransferCallOrBuilder
static class
ResponseMessage.Text
The text response message.static interface
ResponseMessage.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 int
END_INTERACTION_FIELD_NUMBER
static int
LIVE_AGENT_HANDOFF_FIELD_NUMBER
static int
MIXED_AUDIO_FIELD_NUMBER
static int
PAYLOAD_FIELD_NUMBER
static int
TELEPHONY_TRANSFER_CALL_FIELD_NUMBER
static int
TEXT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static ResponseMessage
getDefaultInstance()
ResponseMessage
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
ResponseMessage.EndInteraction
getEndInteraction()
A signal that indicates the interaction with the Dialogflow agent has ended.ResponseMessage.EndInteractionOrBuilder
getEndInteractionOrBuilder()
A signal that indicates the interaction with the Dialogflow agent has ended.ResponseMessage.LiveAgentHandoff
getLiveAgentHandoff()
Hands off conversation to a live agent.ResponseMessage.LiveAgentHandoffOrBuilder
getLiveAgentHandoffOrBuilder()
Hands off conversation to a live agent.ResponseMessage.MessageCase
getMessageCase()
ResponseMessage.MixedAudio
getMixedAudio()
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.ResponseMessage.MixedAudioOrBuilder
getMixedAudioOrBuilder()
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>
getParserForType()
com.google.protobuf.Struct
getPayload()
Returns a response containing a custom, platform-specific payload.com.google.protobuf.StructOrBuilder
getPayloadOrBuilder()
Returns a response containing a custom, platform-specific payload.int
getSerializedSize()
ResponseMessage.TelephonyTransferCall
getTelephonyTransferCall()
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.ResponseMessage.TelephonyTransferCallOrBuilder
getTelephonyTransferCallOrBuilder()
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.ResponseMessage.Text
getText()
Returns a text response.ResponseMessage.TextOrBuilder
getTextOrBuilder()
Returns a text response.boolean
hasEndInteraction()
A signal that indicates the interaction with the Dialogflow agent has ended.int
hashCode()
boolean
hasLiveAgentHandoff()
Hands off conversation to a live agent.boolean
hasMixedAudio()
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client.boolean
hasPayload()
Returns a response containing a custom, platform-specific payload.boolean
hasTelephonyTransferCall()
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.boolean
hasText()
Returns a text response.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ResponseMessage.Builder
newBuilder()
static ResponseMessage.Builder
newBuilder(ResponseMessage prototype)
ResponseMessage.Builder
newBuilderForType()
protected ResponseMessage.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ResponseMessage
parseDelimitedFrom(InputStream input)
static ResponseMessage
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ResponseMessage
parseFrom(byte[] data)
static ResponseMessage
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ResponseMessage
parseFrom(com.google.protobuf.ByteString data)
static ResponseMessage
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ResponseMessage
parseFrom(com.google.protobuf.CodedInputStream input)
static ResponseMessage
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ResponseMessage
parseFrom(InputStream input)
static ResponseMessage
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ResponseMessage
parseFrom(ByteBuffer data)
static ResponseMessage
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ResponseMessage>
parser()
ResponseMessage.Builder
toBuilder()
void
writeTo(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
-
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
-
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
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getMessageCase
public ResponseMessage.MessageCase getMessageCase()
- Specified by:
getMessageCase
in interfaceResponseMessageOrBuilder
-
hasText
public boolean hasText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
- Specified by:
hasText
in interfaceResponseMessageOrBuilder
- Returns:
- Whether the text field is set.
-
getText
public ResponseMessage.Text getText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
- Specified by:
getText
in interfaceResponseMessageOrBuilder
- Returns:
- The text.
-
getTextOrBuilder
public ResponseMessage.TextOrBuilder getTextOrBuilder()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
- Specified by:
getTextOrBuilder
in interfaceResponseMessageOrBuilder
-
hasPayload
public boolean hasPayload()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;
- Specified by:
hasPayload
in 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:
getPayload
in 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:
getPayloadOrBuilder
in interfaceResponseMessageOrBuilder
-
hasLiveAgentHandoff
public boolean hasLiveAgentHandoff()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
- Specified by:
hasLiveAgentHandoff
in interfaceResponseMessageOrBuilder
- Returns:
- Whether the liveAgentHandoff field is set.
-
getLiveAgentHandoff
public ResponseMessage.LiveAgentHandoff getLiveAgentHandoff()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
- Specified by:
getLiveAgentHandoff
in interfaceResponseMessageOrBuilder
- Returns:
- The liveAgentHandoff.
-
getLiveAgentHandoffOrBuilder
public ResponseMessage.LiveAgentHandoffOrBuilder getLiveAgentHandoffOrBuilder()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
- Specified by:
getLiveAgentHandoffOrBuilder
in 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:
hasEndInteraction
in interfaceResponseMessageOrBuilder
- Returns:
- Whether the endInteraction field is set.
-
getEndInteraction
public ResponseMessage.EndInteraction getEndInteraction()
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;
- Specified by:
getEndInteraction
in interfaceResponseMessageOrBuilder
- Returns:
- The endInteraction.
-
getEndInteractionOrBuilder
public ResponseMessage.EndInteractionOrBuilder getEndInteractionOrBuilder()
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;
- Specified by:
getEndInteractionOrBuilder
in 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:
hasMixedAudio
in interfaceResponseMessageOrBuilder
- Returns:
- Whether the mixedAudio field is set.
-
getMixedAudio
public ResponseMessage.MixedAudio 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:
getMixedAudio
in interfaceResponseMessageOrBuilder
- Returns:
- The mixedAudio.
-
getMixedAudioOrBuilder
public ResponseMessage.MixedAudioOrBuilder 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:
getMixedAudioOrBuilder
in 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:
hasTelephonyTransferCall
in 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.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;
- Specified by:
getTelephonyTransferCall
in 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.v2beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 6;
- Specified by:
getTelephonyTransferCallOrBuilder
in interfaceResponseMessageOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ResponseMessage.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ResponseMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-