Class AnalyzeContentResponse.Builder (4.5.11)

See more code actions.
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

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

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

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

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

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

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

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

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

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

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

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

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnalyzeContentResponse build()
Returns
TypeDescription
AnalyzeContentResponse

buildPartial()

public AnalyzeContentResponse buildPartial()
Returns
TypeDescription
AnalyzeContentResponse

clear()

public AnalyzeContentResponse.Builder clear()
Returns 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

clearDtmfParameters()

public AnalyzeContentResponse.Builder clearDtmfParameters()

Indicates the parameters of DTMF.

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

Returns

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

clearField(Descriptors.FieldDescriptor field)

public AnalyzeContentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns 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

clearMessage()

public AnalyzeContentResponse.Builder clearMessage()

Message analyzed by CCAI.

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

Returns

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeContentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns 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

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

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

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

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

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

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

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

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

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

mergeFrom(AnalyzeContentResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AnalyzeContentResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns 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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeContentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns 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

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

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

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

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

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

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

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

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeContentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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

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

setMessage(Message value)

public AnalyzeContentResponse.Builder setMessage(Message value)

Message analyzed by CCAI.

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

Parameter
NameDescription
valueMessage
Returns

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

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

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

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 Overrides