public final class ResponseMessage extends com.google.protobuf.GeneratedMessageV3 implements ResponseMessageOrBuilder
Response messages from an automated agent.Protobuf type
google.cloud.dialogflow.v2beta1.ResponseMessage| Modifier and Type | Class and 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 |
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| Modifier and Type | Field and 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 |
| Modifier and Type | Method and 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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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(ByteBuffer data) |
static ResponseMessage |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<ResponseMessage> |
parser() |
ResponseMessage.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TEXT_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
public static final int LIVE_AGENT_HANDOFF_FIELD_NUMBER
public static final int END_INTERACTION_FIELD_NUMBER
public static final int MIXED_AUDIO_FIELD_NUMBER
public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ResponseMessage.MessageCase getMessageCase()
getMessageCase in interface ResponseMessageOrBuilderpublic boolean hasText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;hasText in interface ResponseMessageOrBuilderpublic ResponseMessage.Text getText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;getText in interface ResponseMessageOrBuilderpublic ResponseMessage.TextOrBuilder getTextOrBuilder()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;getTextOrBuilder in interface ResponseMessageOrBuilderpublic boolean hasPayload()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;hasPayload in interface ResponseMessageOrBuilderpublic com.google.protobuf.Struct getPayload()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;getPayload in interface ResponseMessageOrBuilderpublic com.google.protobuf.StructOrBuilder getPayloadOrBuilder()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;getPayloadOrBuilder in interface ResponseMessageOrBuilderpublic boolean hasLiveAgentHandoff()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
hasLiveAgentHandoff in interface ResponseMessageOrBuilderpublic ResponseMessage.LiveAgentHandoff getLiveAgentHandoff()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
getLiveAgentHandoff in interface ResponseMessageOrBuilderpublic ResponseMessage.LiveAgentHandoffOrBuilder getLiveAgentHandoffOrBuilder()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
getLiveAgentHandoffOrBuilder in interface ResponseMessageOrBuilderpublic boolean hasEndInteraction()
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;
hasEndInteraction in interface ResponseMessageOrBuilderpublic ResponseMessage.EndInteraction getEndInteraction()
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;
getEndInteraction in interface ResponseMessageOrBuilderpublic ResponseMessage.EndInteractionOrBuilder getEndInteractionOrBuilder()
A signal that indicates the interaction with the Dialogflow agent has ended.
.google.cloud.dialogflow.v2beta1.ResponseMessage.EndInteraction end_interaction = 4;
getEndInteractionOrBuilder in interface ResponseMessageOrBuilderpublic 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;hasMixedAudio in interface ResponseMessageOrBuilderpublic 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;getMixedAudio in interface ResponseMessageOrBuilderpublic 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;getMixedAudioOrBuilder in interface ResponseMessageOrBuilderpublic 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;
hasTelephonyTransferCall in interface ResponseMessageOrBuilderpublic 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;
getTelephonyTransferCall in interface ResponseMessageOrBuilderpublic 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;
getTelephonyTransferCallOrBuilder in interface ResponseMessageOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ResponseMessage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMessage parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMessage parseFrom(InputStream input) throws IOException
IOExceptionpublic static ResponseMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResponseMessage parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ResponseMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResponseMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ResponseMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ResponseMessage.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ResponseMessage.Builder newBuilder()
public static ResponseMessage.Builder newBuilder(ResponseMessage prototype)
public ResponseMessage.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ResponseMessage.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ResponseMessage getDefaultInstance()
public static com.google.protobuf.Parser<ResponseMessage> parser()
public com.google.protobuf.Parser<ResponseMessage> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ResponseMessage getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.