Class AnalyzeContentResponse.Builder (4.5.11)

public static final class AnalyzeContentResponse.Builder extends GeneratedMessageV3.Builder<AnalyzeContentResponse.Builder> implements AnalyzeContentResponseOrBuilder

The response message for Participants.AnalyzeContent.

Protobuf type google.cloud.dialogflow.v2.AnalyzeContentResponse

Static Methods

getDescriptor()

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

Methods

addAllEndUserSuggestionResults(Iterable<? extends SuggestionResult> values)

public AnalyzeContentResponse.Builder addAllEndUserSuggestionResults(Iterable<? extends SuggestionResult> values)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.SuggestionResult>
Returns
TypeDescription
AnalyzeContentResponse.Builder

addAllHumanAgentSuggestionResults(Iterable<? extends SuggestionResult> values)

public AnalyzeContentResponse.Builder addAllHumanAgentSuggestionResults(Iterable<? extends SuggestionResult> values)

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.SuggestionResult>
Returns
TypeDescription
AnalyzeContentResponse.Builder

addEndUserSuggestionResults(SuggestionResult value)

public AnalyzeContentResponse.Builder addEndUserSuggestionResults(SuggestionResult value)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameter
NameDescription
valueSuggestionResult
Returns
TypeDescription
AnalyzeContentResponse.Builder

addEndUserSuggestionResults(SuggestionResult.Builder builderForValue)

public AnalyzeContentResponse.Builder addEndUserSuggestionResults(SuggestionResult.Builder builderForValue)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameter
NameDescription
builderForValueSuggestionResult.Builder
Returns
TypeDescription
AnalyzeContentResponse.Builder

addEndUserSuggestionResults(int index, SuggestionResult value)

public AnalyzeContentResponse.Builder addEndUserSuggestionResults(int index, SuggestionResult value)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameters
NameDescription
indexint
valueSuggestionResult
Returns
TypeDescription
AnalyzeContentResponse.Builder

addEndUserSuggestionResults(int index, SuggestionResult.Builder builderForValue)

public AnalyzeContentResponse.Builder addEndUserSuggestionResults(int index, SuggestionResult.Builder builderForValue)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameters
NameDescription
indexint
builderForValueSuggestionResult.Builder
Returns
TypeDescription
AnalyzeContentResponse.Builder

addEndUserSuggestionResultsBuilder()

public SuggestionResult.Builder addEndUserSuggestionResultsBuilder()

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Returns
TypeDescription
SuggestionResult.Builder

addEndUserSuggestionResultsBuilder(int index)

public SuggestionResult.Builder addEndUserSuggestionResultsBuilder(int index)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResult.Builder

addHumanAgentSuggestionResults(SuggestionResult value)

public AnalyzeContentResponse.Builder addHumanAgentSuggestionResults(SuggestionResult value)

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameter
NameDescription
valueSuggestionResult
Returns
TypeDescription
AnalyzeContentResponse.Builder

addHumanAgentSuggestionResults(SuggestionResult.Builder builderForValue)

public AnalyzeContentResponse.Builder addHumanAgentSuggestionResults(SuggestionResult.Builder builderForValue)

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameter
NameDescription
builderForValueSuggestionResult.Builder
Returns
TypeDescription
AnalyzeContentResponse.Builder

addHumanAgentSuggestionResults(int index, SuggestionResult value)

public AnalyzeContentResponse.Builder addHumanAgentSuggestionResults(int index, SuggestionResult value)

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameters
NameDescription
indexint
valueSuggestionResult
Returns
TypeDescription
AnalyzeContentResponse.Builder

addHumanAgentSuggestionResults(int index, SuggestionResult.Builder builderForValue)

public AnalyzeContentResponse.Builder addHumanAgentSuggestionResults(int index, SuggestionResult.Builder builderForValue)

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameters
NameDescription
indexint
builderForValueSuggestionResult.Builder
Returns
TypeDescription
AnalyzeContentResponse.Builder

addHumanAgentSuggestionResultsBuilder()

public SuggestionResult.Builder addHumanAgentSuggestionResultsBuilder()

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Returns
TypeDescription
SuggestionResult.Builder

addHumanAgentSuggestionResultsBuilder(int index)

public SuggestionResult.Builder addHumanAgentSuggestionResultsBuilder(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. 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeContentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides

build()

public AnalyzeContentResponse build()
Returns
TypeDescription
AnalyzeContentResponse

buildPartial()

public AnalyzeContentResponse buildPartial()
Returns
TypeDescription
AnalyzeContentResponse

clear()

public AnalyzeContentResponse.Builder clear()
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides

clearAutomatedAgentReply()

public AnalyzeContentResponse.Builder clearAutomatedAgentReply()

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.v2.AutomatedAgentReply automated_agent_reply = 3;

Returns
TypeDescription
AnalyzeContentResponse.Builder

clearDtmfParameters()

public AnalyzeContentResponse.Builder clearDtmfParameters()

Indicates the parameters of DTMF.

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

Returns
TypeDescription
AnalyzeContentResponse.Builder

clearEndUserSuggestionResults()

public AnalyzeContentResponse.Builder clearEndUserSuggestionResults()

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Returns
TypeDescription
AnalyzeContentResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public AnalyzeContentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides

clearHumanAgentSuggestionResults()

public AnalyzeContentResponse.Builder clearHumanAgentSuggestionResults()

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Returns
TypeDescription
AnalyzeContentResponse.Builder

clearMessage()

public AnalyzeContentResponse.Builder clearMessage()

Message analyzed by CCAI.

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

Returns
TypeDescription
AnalyzeContentResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeContentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides

clearReplyAudio()

public AnalyzeContentResponse.Builder clearReplyAudio()

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;

Returns
TypeDescription
AnalyzeContentResponse.Builder

clearReplyText()

public AnalyzeContentResponse.Builder clearReplyText()

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
AnalyzeContentResponse.Builder

This builder for chaining.

clone()

public AnalyzeContentResponse.Builder clone()
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides

getAutomatedAgentReply()

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

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

Returns
TypeDescription
AutomatedAgentReply

The automatedAgentReply.

getAutomatedAgentReplyBuilder()

public AutomatedAgentReply.Builder getAutomatedAgentReplyBuilder()

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.v2.AutomatedAgentReply automated_agent_reply = 3;

Returns
TypeDescription
AutomatedAgentReply.Builder

getAutomatedAgentReplyOrBuilder()

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

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

Returns
TypeDescription
AutomatedAgentReplyOrBuilder

getDefaultInstanceForType()

public AnalyzeContentResponse getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeContentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDtmfParameters()

public DtmfParameters getDtmfParameters()

Indicates the parameters of DTMF.

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

Returns
TypeDescription
DtmfParameters

The dtmfParameters.

getDtmfParametersBuilder()

public DtmfParameters.Builder getDtmfParametersBuilder()

Indicates the parameters of DTMF.

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

Returns
TypeDescription
DtmfParameters.Builder

getDtmfParametersOrBuilder()

public DtmfParametersOrBuilder getDtmfParametersOrBuilder()

Indicates the parameters of DTMF.

.google.cloud.dialogflow.v2.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. 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResult

getEndUserSuggestionResultsBuilder(int index)

public SuggestionResult.Builder getEndUserSuggestionResultsBuilder(int index)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResult.Builder

getEndUserSuggestionResultsBuilderList()

public List<SuggestionResult.Builder> getEndUserSuggestionResultsBuilderList()

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Returns
TypeDescription
List<Builder>

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. 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;

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. 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;

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. 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;

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. 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;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.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. 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResult

getHumanAgentSuggestionResultsBuilder(int index)

public SuggestionResult.Builder getHumanAgentSuggestionResultsBuilder(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. 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResult.Builder

getHumanAgentSuggestionResultsBuilderList()

public List<SuggestionResult.Builder> getHumanAgentSuggestionResultsBuilderList()

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Returns
TypeDescription
List<Builder>

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. 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;

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. 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;

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. 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;

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. 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;

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

getMessage()

public Message getMessage()

Message analyzed by CCAI.

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

Returns
TypeDescription
Message

The message.

getMessageBuilder()

public Message.Builder getMessageBuilder()

Message analyzed by CCAI.

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

Returns
TypeDescription
Message.Builder

getMessageOrBuilder()

public MessageOrBuilder getMessageOrBuilder()

Message analyzed by CCAI.

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

Returns
TypeDescription
MessageOrBuilder

getReplyAudio()

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;

Returns
TypeDescription
OutputAudio

The replyAudio.

getReplyAudioBuilder()

public OutputAudio.Builder getReplyAudioBuilder()

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;

Returns
TypeDescription
OutputAudio.Builder

getReplyAudioOrBuilder()

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;

Returns
TypeDescription
OutputAudioOrBuilder

getReplyText()

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;

Returns
TypeDescription
String

The replyText.

getReplyTextBytes()

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;

Returns
TypeDescription
ByteString

The bytes for replyText.

hasAutomatedAgentReply()

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

.google.cloud.dialogflow.v2.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.v2.DtmfParameters dtmf_parameters = 9;

Returns
TypeDescription
boolean

Whether the dtmfParameters field is set.

hasMessage()

public boolean hasMessage()

Message analyzed by CCAI.

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

Returns
TypeDescription
boolean

Whether the message field is set.

hasReplyAudio()

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;

Returns
TypeDescription
boolean

Whether the replyAudio field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAutomatedAgentReply(AutomatedAgentReply value)

public AnalyzeContentResponse.Builder mergeAutomatedAgentReply(AutomatedAgentReply value)

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.v2.AutomatedAgentReply automated_agent_reply = 3;

Parameter
NameDescription
valueAutomatedAgentReply
Returns
TypeDescription
AnalyzeContentResponse.Builder

mergeDtmfParameters(DtmfParameters value)

public AnalyzeContentResponse.Builder mergeDtmfParameters(DtmfParameters value)

Indicates the parameters of DTMF.

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

Parameter
NameDescription
valueDtmfParameters
Returns
TypeDescription
AnalyzeContentResponse.Builder

mergeFrom(AnalyzeContentResponse other)

public AnalyzeContentResponse.Builder mergeFrom(AnalyzeContentResponse other)
Parameter
NameDescription
otherAnalyzeContentResponse
Returns
TypeDescription
AnalyzeContentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzeContentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnalyzeContentResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides

mergeMessage(Message value)

public AnalyzeContentResponse.Builder mergeMessage(Message value)

Message analyzed by CCAI.

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

Parameter
NameDescription
valueMessage
Returns
TypeDescription
AnalyzeContentResponse.Builder

mergeReplyAudio(OutputAudio value)

public AnalyzeContentResponse.Builder mergeReplyAudio(OutputAudio value)

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;

Parameter
NameDescription
valueOutputAudio
Returns
TypeDescription
AnalyzeContentResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeContentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides

removeEndUserSuggestionResults(int index)

public AnalyzeContentResponse.Builder removeEndUserSuggestionResults(int index)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzeContentResponse.Builder

removeHumanAgentSuggestionResults(int index)

public AnalyzeContentResponse.Builder removeHumanAgentSuggestionResults(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. 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzeContentResponse.Builder

setAutomatedAgentReply(AutomatedAgentReply value)

public AnalyzeContentResponse.Builder setAutomatedAgentReply(AutomatedAgentReply value)

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.v2.AutomatedAgentReply automated_agent_reply = 3;

Parameter
NameDescription
valueAutomatedAgentReply
Returns
TypeDescription
AnalyzeContentResponse.Builder

setAutomatedAgentReply(AutomatedAgentReply.Builder builderForValue)

public AnalyzeContentResponse.Builder setAutomatedAgentReply(AutomatedAgentReply.Builder builderForValue)

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.v2.AutomatedAgentReply automated_agent_reply = 3;

Parameter
NameDescription
builderForValueAutomatedAgentReply.Builder
Returns
TypeDescription
AnalyzeContentResponse.Builder

setDtmfParameters(DtmfParameters value)

public AnalyzeContentResponse.Builder setDtmfParameters(DtmfParameters value)

Indicates the parameters of DTMF.

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

Parameter
NameDescription
valueDtmfParameters
Returns
TypeDescription
AnalyzeContentResponse.Builder

setDtmfParameters(DtmfParameters.Builder builderForValue)

public AnalyzeContentResponse.Builder setDtmfParameters(DtmfParameters.Builder builderForValue)

Indicates the parameters of DTMF.

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

Parameter
NameDescription
builderForValueDtmfParameters.Builder
Returns
TypeDescription
AnalyzeContentResponse.Builder

setEndUserSuggestionResults(int index, SuggestionResult value)

public AnalyzeContentResponse.Builder setEndUserSuggestionResults(int index, SuggestionResult value)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameters
NameDescription
indexint
valueSuggestionResult
Returns
TypeDescription
AnalyzeContentResponse.Builder

setEndUserSuggestionResults(int index, SuggestionResult.Builder builderForValue)

public AnalyzeContentResponse.Builder setEndUserSuggestionResults(int index, SuggestionResult.Builder builderForValue)

The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameters
NameDescription
indexint
builderForValueSuggestionResult.Builder
Returns
TypeDescription
AnalyzeContentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeContentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides

setHumanAgentSuggestionResults(int index, SuggestionResult value)

public AnalyzeContentResponse.Builder setHumanAgentSuggestionResults(int index, SuggestionResult value)

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameters
NameDescription
indexint
valueSuggestionResult
Returns
TypeDescription
AnalyzeContentResponse.Builder

setHumanAgentSuggestionResults(int index, SuggestionResult.Builder builderForValue)

public AnalyzeContentResponse.Builder setHumanAgentSuggestionResults(int index, SuggestionResult.Builder builderForValue)

The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of 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;

Parameters
NameDescription
indexint
builderForValueSuggestionResult.Builder
Returns
TypeDescription
AnalyzeContentResponse.Builder

setMessage(Message value)

public AnalyzeContentResponse.Builder setMessage(Message value)

Message analyzed by CCAI.

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

Parameter
NameDescription
valueMessage
Returns
TypeDescription
AnalyzeContentResponse.Builder

setMessage(Message.Builder builderForValue)

public AnalyzeContentResponse.Builder setMessage(Message.Builder builderForValue)

Message analyzed by CCAI.

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

Parameter
NameDescription
builderForValueMessage.Builder
Returns
TypeDescription
AnalyzeContentResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnalyzeContentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides

setReplyAudio(OutputAudio value)

public AnalyzeContentResponse.Builder setReplyAudio(OutputAudio value)

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;

Parameter
NameDescription
valueOutputAudio
Returns
TypeDescription
AnalyzeContentResponse.Builder

setReplyAudio(OutputAudio.Builder builderForValue)

public AnalyzeContentResponse.Builder setReplyAudio(OutputAudio.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueOutputAudio.Builder
Returns
TypeDescription
AnalyzeContentResponse.Builder

setReplyText(String value)

public AnalyzeContentResponse.Builder setReplyText(String value)

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

string reply_text = 1;

Parameter
NameDescription
valueString

The replyText to set.

Returns
TypeDescription
AnalyzeContentResponse.Builder

This builder for chaining.

setReplyTextBytes(ByteString value)

public AnalyzeContentResponse.Builder setReplyTextBytes(ByteString value)

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

string reply_text = 1;

Parameter
NameDescription
valueByteString

The bytes for replyText to set.

Returns
TypeDescription
AnalyzeContentResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeContentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeContentResponse.Builder
Overrides