public final class ResponseMessage extends 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 |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
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 |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static ResponseMessage |
getDefaultInstance() |
ResponseMessage |
getDefaultInstanceForType() |
static 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.
|
Parser<ResponseMessage> |
getParserForType() |
Struct |
getPayload()
Returns a response containing a custom, platform-specific payload.
|
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.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResponseMessage.Builder |
newBuilder() |
static ResponseMessage.Builder |
newBuilder(ResponseMessage prototype) |
ResponseMessage.Builder |
newBuilderForType() |
protected ResponseMessage.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static ResponseMessage |
parseDelimitedFrom(InputStream input) |
static ResponseMessage |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static ResponseMessage |
parseFrom(byte[] data) |
static ResponseMessage |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static ResponseMessage |
parseFrom(ByteBuffer data) |
static ResponseMessage |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static ResponseMessage |
parseFrom(ByteString data) |
static ResponseMessage |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static ResponseMessage |
parseFrom(CodedInputStream input) |
static ResponseMessage |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static ResponseMessage |
parseFrom(InputStream input) |
static ResponseMessage |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<ResponseMessage> |
parser() |
ResponseMessage.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public ResponseMessage.MessageCase getMessageCase()
getMessageCase
in interface ResponseMessageOrBuilder
public boolean hasText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
hasText
in interface ResponseMessageOrBuilder
public ResponseMessage.Text getText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
getText
in interface ResponseMessageOrBuilder
public ResponseMessage.TextOrBuilder getTextOrBuilder()
Returns a text response.
.google.cloud.dialogflow.v2beta1.ResponseMessage.Text text = 1;
getTextOrBuilder
in interface ResponseMessageOrBuilder
public boolean hasPayload()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;
hasPayload
in interface ResponseMessageOrBuilder
public Struct getPayload()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;
getPayload
in interface ResponseMessageOrBuilder
public StructOrBuilder getPayloadOrBuilder()
Returns a response containing a custom, platform-specific payload.
.google.protobuf.Struct payload = 2;
getPayloadOrBuilder
in interface ResponseMessageOrBuilder
public boolean hasLiveAgentHandoff()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
hasLiveAgentHandoff
in interface ResponseMessageOrBuilder
public ResponseMessage.LiveAgentHandoff getLiveAgentHandoff()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
getLiveAgentHandoff
in interface ResponseMessageOrBuilder
public ResponseMessage.LiveAgentHandoffOrBuilder getLiveAgentHandoffOrBuilder()
Hands off conversation to a live agent.
.google.cloud.dialogflow.v2beta1.ResponseMessage.LiveAgentHandoff live_agent_handoff = 3;
getLiveAgentHandoffOrBuilder
in interface ResponseMessageOrBuilder
public 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 ResponseMessageOrBuilder
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;
getEndInteraction
in interface ResponseMessageOrBuilder
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;
getEndInteractionOrBuilder
in interface ResponseMessageOrBuilder
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;
hasMixedAudio
in interface ResponseMessageOrBuilder
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;
getMixedAudio
in interface ResponseMessageOrBuilder
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;
getMixedAudioOrBuilder
in interface ResponseMessageOrBuilder
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;
hasTelephonyTransferCall
in interface ResponseMessageOrBuilder
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;
getTelephonyTransferCall
in interface ResponseMessageOrBuilder
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;
getTelephonyTransferCallOrBuilder
in interface ResponseMessageOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static ResponseMessage parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResponseMessage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResponseMessage parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResponseMessage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResponseMessage parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResponseMessage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResponseMessage parseFrom(InputStream input) throws IOException
IOException
public static ResponseMessage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ResponseMessage parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ResponseMessage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ResponseMessage parseFrom(CodedInputStream input) throws IOException
IOException
public static ResponseMessage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ResponseMessage.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static ResponseMessage.Builder newBuilder()
public static ResponseMessage.Builder newBuilder(ResponseMessage prototype)
public ResponseMessage.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected ResponseMessage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static ResponseMessage getDefaultInstance()
public static Parser<ResponseMessage> parser()
public Parser<ResponseMessage> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public ResponseMessage getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.