Class AnalyzeContentResponse (4.3.1)

public final class AnalyzeContentResponse extends GeneratedMessageV3 implements AnalyzeContentResponseOrBuilder

The response message for Participants.AnalyzeContent.

Protobuf type google.cloud.dialogflow.v2beta1.AnalyzeContentResponse

Fields

AUTOMATED_AGENT_REPLY_FIELD_NUMBER

public static final int AUTOMATED_AGENT_REPLY_FIELD_NUMBER
Field Value
TypeDescription
int

DTMF_PARAMETERS_FIELD_NUMBER

public static final int DTMF_PARAMETERS_FIELD_NUMBER
Field Value
TypeDescription
int

END_USER_SUGGESTION_RESULTS_FIELD_NUMBER

public static final int END_USER_SUGGESTION_RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

HUMAN_AGENT_SUGGESTION_RESULTS_FIELD_NUMBER

public static final int HUMAN_AGENT_SUGGESTION_RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

REPLY_AUDIO_FIELD_NUMBER

public static final int REPLY_AUDIO_FIELD_NUMBER
Field Value
TypeDescription
int

REPLY_TEXT_FIELD_NUMBER

public static final int REPLY_TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAutomatedAgentReply()

public AutomatedAgentReply getAutomatedAgentReply()

Optional. 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 instead.

.google.cloud.dialogflow.v2beta1.AutomatedAgentReply automated_agent_reply = 3;

Returns
TypeDescription
AutomatedAgentReply

The automatedAgentReply.

getAutomatedAgentReplyOrBuilder()

public AutomatedAgentReplyOrBuilder getAutomatedAgentReplyOrBuilder()

Optional. 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 instead.

.google.cloud.dialogflow.v2beta1.AutomatedAgentReply automated_agent_reply = 3;

Returns
TypeDescription
AutomatedAgentReplyOrBuilder

getDefaultInstance()

public static AnalyzeContentResponse getDefaultInstance()
Returns
TypeDescription
AnalyzeContentResponse

getDefaultInstanceForType()

public AnalyzeContentResponse getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeContentResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDtmfParameters()

public DtmfParameters getDtmfParameters()

Indicates the parameters of DTMF.

.google.cloud.dialogflow.v2beta1.DtmfParameters dtmf_parameters = 9;

Returns
TypeDescription
DtmfParameters

The dtmfParameters.

getDtmfParametersOrBuilder()

public DtmfParametersOrBuilder getDtmfParametersOrBuilder()

Indicates the parameters of DTMF.

.google.cloud.dialogflow.v2beta1.DtmfParameters dtmf_parameters = 9;

Returns
TypeDescription
DtmfParametersOrBuilder

getEndUserSuggestionResults(int index)

public SuggestionResult getEndUserSuggestionResults(int index)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.end_user_suggestion_config.

repeated .google.cloud.dialogflow.v2beta1.SuggestionResult end_user_suggestion_results = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResult

getEndUserSuggestionResultsCount()

public int getEndUserSuggestionResultsCount()

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.end_user_suggestion_config.

repeated .google.cloud.dialogflow.v2beta1.SuggestionResult end_user_suggestion_results = 7;

Returns
TypeDescription
int

getEndUserSuggestionResultsList()

public List<SuggestionResult> getEndUserSuggestionResultsList()

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.end_user_suggestion_config.

repeated .google.cloud.dialogflow.v2beta1.SuggestionResult end_user_suggestion_results = 7;

Returns
TypeDescription
List<SuggestionResult>

getEndUserSuggestionResultsOrBuilder(int index)

public SuggestionResultOrBuilder getEndUserSuggestionResultsOrBuilder(int index)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.end_user_suggestion_config.

repeated .google.cloud.dialogflow.v2beta1.SuggestionResult end_user_suggestion_results = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResultOrBuilder

getEndUserSuggestionResultsOrBuilderList()

public List<? extends SuggestionResultOrBuilder> getEndUserSuggestionResultsOrBuilderList()

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.end_user_suggestion_config.

repeated .google.cloud.dialogflow.v2beta1.SuggestionResult end_user_suggestion_results = 7;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.SuggestionResultOrBuilder>

getHumanAgentSuggestionResults(int index)

public SuggestionResult getHumanAgentSuggestionResults(int index)

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.human_agent_suggestion_config.

repeated .google.cloud.dialogflow.v2beta1.SuggestionResult human_agent_suggestion_results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResult

getHumanAgentSuggestionResultsCount()

public int getHumanAgentSuggestionResultsCount()

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.human_agent_suggestion_config.

repeated .google.cloud.dialogflow.v2beta1.SuggestionResult human_agent_suggestion_results = 6;

Returns
TypeDescription
int

getHumanAgentSuggestionResultsList()

public List<SuggestionResult> getHumanAgentSuggestionResultsList()

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.human_agent_suggestion_config.

repeated .google.cloud.dialogflow.v2beta1.SuggestionResult human_agent_suggestion_results = 6;

Returns
TypeDescription
List<SuggestionResult>

getHumanAgentSuggestionResultsOrBuilder(int index)

public SuggestionResultOrBuilder getHumanAgentSuggestionResultsOrBuilder(int index)

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.human_agent_suggestion_config.

repeated .google.cloud.dialogflow.v2beta1.SuggestionResult human_agent_suggestion_results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResultOrBuilder

getHumanAgentSuggestionResultsOrBuilderList()

public List<? extends SuggestionResultOrBuilder> getHumanAgentSuggestionResultsOrBuilderList()

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.human_agent_suggestion_config.

repeated .google.cloud.dialogflow.v2beta1.SuggestionResult human_agent_suggestion_results = 6;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.SuggestionResultOrBuilder>

getMessage()

public Message getMessage()

Output only. Message analyzed by CCAI.

.google.cloud.dialogflow.v2beta1.Message message = 5;

Returns
TypeDescription
Message

The message.

getMessageOrBuilder()

public MessageOrBuilder getMessageOrBuilder()

Output only. Message analyzed by CCAI.

.google.cloud.dialogflow.v2beta1.Message message = 5;

Returns
TypeDescription
MessageOrBuilder

getParserForType()

public Parser<AnalyzeContentResponse> getParserForType()
Returns
TypeDescription
Parser<AnalyzeContentResponse>
Overrides

getReplyAudio()

public OutputAudio getReplyAudio()

Optional. 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.v2beta1.OutputAudio reply_audio = 2;

Returns
TypeDescription
OutputAudio

The replyAudio.

getReplyAudioOrBuilder()

public OutputAudioOrBuilder getReplyAudioOrBuilder()

Optional. 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.v2beta1.OutputAudio reply_audio = 2;

Returns
TypeDescription
OutputAudioOrBuilder

getReplyText()

public String getReplyText()

Output only. The output text content. This field is set if the automated agent responded with text to show to the user.

string reply_text = 1;

Returns
TypeDescription
String

The replyText.

getReplyTextBytes()

public ByteString getReplyTextBytes()

Output only. The output text content. This field is set if the automated agent responded with text to show to the user.

string reply_text = 1;

Returns
TypeDescription
ByteString

The bytes for replyText.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAutomatedAgentReply()

public boolean hasAutomatedAgentReply()

Optional. 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 instead.

.google.cloud.dialogflow.v2beta1.AutomatedAgentReply automated_agent_reply = 3;

Returns
TypeDescription
boolean

Whether the automatedAgentReply field is set.

hasDtmfParameters()

public boolean hasDtmfParameters()

Indicates the parameters of DTMF.

.google.cloud.dialogflow.v2beta1.DtmfParameters dtmf_parameters = 9;

Returns
TypeDescription
boolean

Whether the dtmfParameters field is set.

hasMessage()

public boolean hasMessage()

Output only. Message analyzed by CCAI.

.google.cloud.dialogflow.v2beta1.Message message = 5;

Returns
TypeDescription
boolean

Whether the message field is set.

hasReplyAudio()

public boolean hasReplyAudio()

Optional. 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.v2beta1.OutputAudio reply_audio = 2;

Returns
TypeDescription
boolean

Whether the replyAudio field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static AnalyzeContentResponse.Builder newBuilder()
Returns
TypeDescription
AnalyzeContentResponse.Builder

newBuilder(AnalyzeContentResponse prototype)

public static AnalyzeContentResponse.Builder newBuilder(AnalyzeContentResponse prototype)
Parameter
NameDescription
prototypeAnalyzeContentResponse
Returns
TypeDescription
AnalyzeContentResponse.Builder

newBuilderForType()

public AnalyzeContentResponse.Builder newBuilderForType()
Returns
TypeDescription
AnalyzeContentResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnalyzeContentResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static AnalyzeContentResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeContentResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AnalyzeContentResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeContentResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnalyzeContentResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeContentResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnalyzeContentResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeContentResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AnalyzeContentResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeContentResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AnalyzeContentResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeContentResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeContentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AnalyzeContentResponse> parser()
Returns
TypeDescription
Parser<AnalyzeContentResponse>

toBuilder()

public AnalyzeContentResponse.Builder toBuilder()
Returns
TypeDescription
AnalyzeContentResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException