public final class AnalyzeContentResponse extends GeneratedMessageV3 implements AnalyzeContentResponseOrBuilder
The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].Protobuf type
google.cloud.dialogflow.v2.AnalyzeContentResponse
Modifier and Type | Class and Description |
---|---|
static class |
AnalyzeContentResponse.Builder
The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
|
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 |
AUTOMATED_AGENT_REPLY_FIELD_NUMBER |
static int |
DTMF_PARAMETERS_FIELD_NUMBER |
static int |
END_USER_SUGGESTION_RESULTS_FIELD_NUMBER |
static int |
HUMAN_AGENT_SUGGESTION_RESULTS_FIELD_NUMBER |
static int |
MESSAGE_FIELD_NUMBER |
static int |
REPLY_AUDIO_FIELD_NUMBER |
static int |
REPLY_TEXT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
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 REPLY_TEXT_FIELD_NUMBER
public static final int REPLY_AUDIO_FIELD_NUMBER
public static final int AUTOMATED_AGENT_REPLY_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
public static final int HUMAN_AGENT_SUGGESTION_RESULTS_FIELD_NUMBER
public static final int END_USER_SUGGESTION_RESULTS_FIELD_NUMBER
public static final int DTMF_PARAMETERS_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 String getReplyText()
The output text content. This field is set if the automated agent responded with text to show to the user.
string reply_text = 1;
getReplyText
in interface AnalyzeContentResponseOrBuilder
public ByteString getReplyTextBytes()
The output text content. This field is set if the automated agent responded with text to show to the user.
string reply_text = 1;
getReplyTextBytes
in interface AnalyzeContentResponseOrBuilder
public boolean hasReplyAudio()
The audio data bytes encoded as specified in the request. This field is set if: - `reply_audio_config` was specified in the request, or - The automated agent responded with audio to play to the user. In such case, `reply_audio.config` contains settings used to synthesize the speech. In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.
.google.cloud.dialogflow.v2.OutputAudio reply_audio = 2;
hasReplyAudio
in interface AnalyzeContentResponseOrBuilder
public OutputAudio getReplyAudio()
The audio data bytes encoded as specified in the request. This field is set if: - `reply_audio_config` was specified in the request, or - The automated agent responded with audio to play to the user. In such case, `reply_audio.config` contains settings used to synthesize the speech. In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.
.google.cloud.dialogflow.v2.OutputAudio reply_audio = 2;
getReplyAudio
in interface AnalyzeContentResponseOrBuilder
public OutputAudioOrBuilder getReplyAudioOrBuilder()
The audio data bytes encoded as specified in the request. This field is set if: - `reply_audio_config` was specified in the request, or - The automated agent responded with audio to play to the user. In such case, `reply_audio.config` contains settings used to synthesize the speech. In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.
.google.cloud.dialogflow.v2.OutputAudio reply_audio = 2;
getReplyAudioOrBuilder
in interface AnalyzeContentResponseOrBuilder
public boolean hasAutomatedAgentReply()
Only set if a Dialogflow automated agent has responded. Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] and [AutomatedAgentReply.detect_intent_response.output_audio_config][] are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead.
.google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3;
hasAutomatedAgentReply
in interface AnalyzeContentResponseOrBuilder
public AutomatedAgentReply getAutomatedAgentReply()
Only set if a Dialogflow automated agent has responded. Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] and [AutomatedAgentReply.detect_intent_response.output_audio_config][] are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead.
.google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3;
getAutomatedAgentReply
in interface AnalyzeContentResponseOrBuilder
public AutomatedAgentReplyOrBuilder getAutomatedAgentReplyOrBuilder()
Only set if a Dialogflow automated agent has responded. Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] and [AutomatedAgentReply.detect_intent_response.output_audio_config][] are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead.
.google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3;
getAutomatedAgentReplyOrBuilder
in interface AnalyzeContentResponseOrBuilder
public boolean hasMessage()
Message analyzed by CCAI.
.google.cloud.dialogflow.v2.Message message = 5;
hasMessage
in interface AnalyzeContentResponseOrBuilder
public Message getMessage()
Message analyzed by CCAI.
.google.cloud.dialogflow.v2.Message message = 5;
getMessage
in interface AnalyzeContentResponseOrBuilder
public MessageOrBuilder getMessageOrBuilder()
Message analyzed by CCAI.
.google.cloud.dialogflow.v2.Message message = 5;
getMessageOrBuilder
in interface AnalyzeContentResponseOrBuilder
public List<SuggestionResult> getHumanAgentSuggestionResultsList()
The suggestions for most recent human agent. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. Note that any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.
repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6;
getHumanAgentSuggestionResultsList
in interface AnalyzeContentResponseOrBuilder
public List<? extends SuggestionResultOrBuilder> getHumanAgentSuggestionResultsOrBuilderList()
The suggestions for most recent human agent. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. Note that any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.
repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6;
getHumanAgentSuggestionResultsOrBuilderList
in interface AnalyzeContentResponseOrBuilder
public int getHumanAgentSuggestionResultsCount()
The suggestions for most recent human agent. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. Note that any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.
repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6;
getHumanAgentSuggestionResultsCount
in interface AnalyzeContentResponseOrBuilder
public SuggestionResult getHumanAgentSuggestionResults(int index)
The suggestions for most recent human agent. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. Note that any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.
repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6;
getHumanAgentSuggestionResults
in interface AnalyzeContentResponseOrBuilder
public SuggestionResultOrBuilder getHumanAgentSuggestionResultsOrBuilder(int index)
The suggestions for most recent human agent. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. Note that any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.
repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6;
getHumanAgentSuggestionResultsOrBuilder
in interface AnalyzeContentResponseOrBuilder
public List<SuggestionResult> getEndUserSuggestionResultsList()
The suggestions for end user. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. Same as human_agent_suggestion_results, any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.
repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7;
getEndUserSuggestionResultsList
in interface AnalyzeContentResponseOrBuilder
public List<? extends SuggestionResultOrBuilder> getEndUserSuggestionResultsOrBuilderList()
The suggestions for end user. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. Same as human_agent_suggestion_results, any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.
repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7;
getEndUserSuggestionResultsOrBuilderList
in interface AnalyzeContentResponseOrBuilder
public int getEndUserSuggestionResultsCount()
The suggestions for end user. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. Same as human_agent_suggestion_results, any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.
repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7;
getEndUserSuggestionResultsCount
in interface AnalyzeContentResponseOrBuilder
public SuggestionResult getEndUserSuggestionResults(int index)
The suggestions for end user. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. Same as human_agent_suggestion_results, any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.
repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7;
getEndUserSuggestionResults
in interface AnalyzeContentResponseOrBuilder
public SuggestionResultOrBuilder getEndUserSuggestionResultsOrBuilder(int index)
The suggestions for end user. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. Same as human_agent_suggestion_results, any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.
repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7;
getEndUserSuggestionResultsOrBuilder
in interface AnalyzeContentResponseOrBuilder
public boolean hasDtmfParameters()
Indicates the parameters of DTMF.
.google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9;
hasDtmfParameters
in interface AnalyzeContentResponseOrBuilder
public DtmfParameters getDtmfParameters()
Indicates the parameters of DTMF.
.google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9;
getDtmfParameters
in interface AnalyzeContentResponseOrBuilder
public DtmfParametersOrBuilder getDtmfParametersOrBuilder()
Indicates the parameters of DTMF.
.google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9;
getDtmfParametersOrBuilder
in interface AnalyzeContentResponseOrBuilder
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 AnalyzeContentResponse parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeContentResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeContentResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeContentResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeContentResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeContentResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeContentResponse parseFrom(InputStream input) throws IOException
IOException
public static AnalyzeContentResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AnalyzeContentResponse parseDelimitedFrom(InputStream input) throws IOException
IOException
public static AnalyzeContentResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AnalyzeContentResponse parseFrom(CodedInputStream input) throws IOException
IOException
public static AnalyzeContentResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public AnalyzeContentResponse.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static AnalyzeContentResponse.Builder newBuilder()
public static AnalyzeContentResponse.Builder newBuilder(AnalyzeContentResponse prototype)
public AnalyzeContentResponse.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected AnalyzeContentResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static AnalyzeContentResponse getDefaultInstance()
public static Parser<AnalyzeContentResponse> parser()
public Parser<AnalyzeContentResponse> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public AnalyzeContentResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.