Class StreamingAnalyzeContentResponse.Builder (4.7.5)

public static final class StreamingAnalyzeContentResponse.Builder extends GeneratedMessageV3.Builder<StreamingAnalyzeContentResponse.Builder> implements StreamingAnalyzeContentResponseOrBuilder

The top-level message returned from the StreamingAnalyzeContent method. Multiple response messages can be returned in order:

  1. If the input was set to streaming audio, the first one or more messages contain recognition_result. Each recognition_result represents a more complete transcript of what the user said. The last recognition_result has is_final set to true.
  2. In virtual agent stage: if enable_partial_automated_agent_reply is true, the following N (currently 1 <= N <= 4) messages contain automated_agent_reply and optionally reply_audio returned by the virtual agent. The first (N-1) automated_agent_replys will have automated_agent_reply_type set to PARTIAL. The last automated_agent_reply has automated_agent_reply_type set to FINAL. If enable_partial_automated_agent_reply is not enabled, response stream only contains the final reply. In human assist stage: the following N (N >= 1) messages contain human_agent_suggestion_results, end_user_suggestion_results or message.

Protobuf type google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse

Static Methods

getDescriptor()

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

Methods

addAllEndUserSuggestionResults(Iterable<? extends SuggestionResult> values)

public StreamingAnalyzeContentResponse.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.

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

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

addAllHumanAgentSuggestionResults(Iterable<? extends SuggestionResult> values)

public StreamingAnalyzeContentResponse.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.

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

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

addEndUserSuggestionResults(SuggestionResult value)

public StreamingAnalyzeContentResponse.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.

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

Parameter
NameDescription
valueSuggestionResult
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

addEndUserSuggestionResults(SuggestionResult.Builder builderForValue)

public StreamingAnalyzeContentResponse.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.

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

Parameter
NameDescription
builderForValueSuggestionResult.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

addEndUserSuggestionResults(int index, SuggestionResult value)

public StreamingAnalyzeContentResponse.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.

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

Parameters
NameDescription
indexint
valueSuggestionResult
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

addEndUserSuggestionResults(int index, SuggestionResult.Builder builderForValue)

public StreamingAnalyzeContentResponse.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.

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

Parameters
NameDescription
indexint
builderForValueSuggestionResult.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.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.

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

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.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResult.Builder

addHumanAgentSuggestionResults(SuggestionResult value)

public StreamingAnalyzeContentResponse.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.

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

Parameter
NameDescription
valueSuggestionResult
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

addHumanAgentSuggestionResults(SuggestionResult.Builder builderForValue)

public StreamingAnalyzeContentResponse.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.

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

Parameter
NameDescription
builderForValueSuggestionResult.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

addHumanAgentSuggestionResults(int index, SuggestionResult value)

public StreamingAnalyzeContentResponse.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.

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

Parameters
NameDescription
indexint
valueSuggestionResult
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

addHumanAgentSuggestionResults(int index, SuggestionResult.Builder builderForValue)

public StreamingAnalyzeContentResponse.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.

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

Parameters
NameDescription
indexint
builderForValueSuggestionResult.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.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.

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

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.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SuggestionResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamingAnalyzeContentResponse build()
Returns
TypeDescription
StreamingAnalyzeContentResponse

buildPartial()

public StreamingAnalyzeContentResponse buildPartial()
Returns
TypeDescription
StreamingAnalyzeContentResponse

clear()

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

clearAutomatedAgentReply()

public StreamingAnalyzeContentResponse.Builder clearAutomatedAgentReply()

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 = 4;

Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

clearDtmfParameters()

public StreamingAnalyzeContentResponse.Builder clearDtmfParameters()

Indicates the parameters of DTMF.

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

Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

clearEndUserSuggestionResults()

public StreamingAnalyzeContentResponse.Builder clearEndUserSuggestionResults()

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 = 8;

Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHumanAgentSuggestionResults()

public StreamingAnalyzeContentResponse.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.

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

Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

clearMessage()

public StreamingAnalyzeContentResponse.Builder clearMessage()

Output only. Message analyzed by CCAI.

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

Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecognitionResult()

public StreamingAnalyzeContentResponse.Builder clearRecognitionResult()

The result of speech recognition.

.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1;

Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

clearReplyAudio()

public StreamingAnalyzeContentResponse.Builder clearReplyAudio()

Optional. The audio data bytes encoded as specified in the request. This field is set if:

  • The reply_audio_config field is specified in the request.
  • The automated agent, which this output comes from, responded with audio. In such case, the reply_audio.config field 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 = 3;

Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

clearReplyText()

public StreamingAnalyzeContentResponse.Builder clearReplyText()

Optional. The output text content. This field is set if an automated agent responded with a text for the user.

string reply_text = 2;

Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

This builder for chaining.

clone()

public StreamingAnalyzeContentResponse.Builder clone()
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder
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 = 4;

Returns
TypeDescription
AutomatedAgentReply

The automatedAgentReply.

getAutomatedAgentReplyBuilder()

public AutomatedAgentReply.Builder getAutomatedAgentReplyBuilder()

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 = 4;

Returns
TypeDescription
AutomatedAgentReply.Builder

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 = 4;

Returns
TypeDescription
AutomatedAgentReplyOrBuilder

getDefaultInstanceForType()

public StreamingAnalyzeContentResponse getDefaultInstanceForType()
Returns
TypeDescription
StreamingAnalyzeContentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDtmfParameters()

public DtmfParameters getDtmfParameters()

Indicates the parameters of DTMF.

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

Returns
TypeDescription
DtmfParameters

The dtmfParameters.

getDtmfParametersBuilder()

public DtmfParameters.Builder getDtmfParametersBuilder()

Indicates the parameters of DTMF.

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

Returns
TypeDescription
DtmfParameters.Builder

getDtmfParametersOrBuilder()

public DtmfParametersOrBuilder getDtmfParametersOrBuilder()

Indicates the parameters of DTMF.

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

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 = 8;

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.

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

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.

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

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.

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

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 = 8;

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 = 8;

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 = 8;

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

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.

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

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.

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

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.

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

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

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

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

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 = 6;

Returns
TypeDescription
Message

The message.

getMessageBuilder()

public Message.Builder getMessageBuilder()

Output only. Message analyzed by CCAI.

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

Returns
TypeDescription
Message.Builder

getMessageOrBuilder()

public MessageOrBuilder getMessageOrBuilder()

Output only. Message analyzed by CCAI.

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

Returns
TypeDescription
MessageOrBuilder

getRecognitionResult()

public StreamingRecognitionResult getRecognitionResult()

The result of speech recognition.

.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1;

Returns
TypeDescription
StreamingRecognitionResult

The recognitionResult.

getRecognitionResultBuilder()

public StreamingRecognitionResult.Builder getRecognitionResultBuilder()

The result of speech recognition.

.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1;

Returns
TypeDescription
StreamingRecognitionResult.Builder

getRecognitionResultOrBuilder()

public StreamingRecognitionResultOrBuilder getRecognitionResultOrBuilder()

The result of speech recognition.

.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1;

Returns
TypeDescription
StreamingRecognitionResultOrBuilder

getReplyAudio()

public OutputAudio getReplyAudio()

Optional. The audio data bytes encoded as specified in the request. This field is set if:

  • The reply_audio_config field is specified in the request.
  • The automated agent, which this output comes from, responded with audio. In such case, the reply_audio.config field 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 = 3;

Returns
TypeDescription
OutputAudio

The replyAudio.

getReplyAudioBuilder()

public OutputAudio.Builder getReplyAudioBuilder()

Optional. The audio data bytes encoded as specified in the request. This field is set if:

  • The reply_audio_config field is specified in the request.
  • The automated agent, which this output comes from, responded with audio. In such case, the reply_audio.config field 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 = 3;

Returns
TypeDescription
OutputAudio.Builder

getReplyAudioOrBuilder()

public OutputAudioOrBuilder getReplyAudioOrBuilder()

Optional. The audio data bytes encoded as specified in the request. This field is set if:

  • The reply_audio_config field is specified in the request.
  • The automated agent, which this output comes from, responded with audio. In such case, the reply_audio.config field 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 = 3;

Returns
TypeDescription
OutputAudioOrBuilder

getReplyText()

public String getReplyText()

Optional. The output text content. This field is set if an automated agent responded with a text for the user.

string reply_text = 2;

Returns
TypeDescription
String

The replyText.

getReplyTextBytes()

public ByteString getReplyTextBytes()

Optional. The output text content. This field is set if an automated agent responded with a text for the user.

string reply_text = 2;

Returns
TypeDescription
ByteString

The bytes for replyText.

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 = 4;

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 = 10;

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 = 6;

Returns
TypeDescription
boolean

Whether the message field is set.

hasRecognitionResult()

public boolean hasRecognitionResult()

The result of speech recognition.

.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1;

Returns
TypeDescription
boolean

Whether the recognitionResult field is set.

hasReplyAudio()

public boolean hasReplyAudio()

Optional. The audio data bytes encoded as specified in the request. This field is set if:

  • The reply_audio_config field is specified in the request.
  • The automated agent, which this output comes from, responded with audio. In such case, the reply_audio.config field 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 = 3;

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 StreamingAnalyzeContentResponse.Builder mergeAutomatedAgentReply(AutomatedAgentReply value)

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 = 4;

Parameter
NameDescription
valueAutomatedAgentReply
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

mergeDtmfParameters(DtmfParameters value)

public StreamingAnalyzeContentResponse.Builder mergeDtmfParameters(DtmfParameters value)

Indicates the parameters of DTMF.

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

Parameter
NameDescription
valueDtmfParameters
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

mergeFrom(StreamingAnalyzeContentResponse other)

public StreamingAnalyzeContentResponse.Builder mergeFrom(StreamingAnalyzeContentResponse other)
Parameter
NameDescription
otherStreamingAnalyzeContentResponse
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMessage(Message value)

public StreamingAnalyzeContentResponse.Builder mergeMessage(Message value)

Output only. Message analyzed by CCAI.

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

Parameter
NameDescription
valueMessage
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

mergeRecognitionResult(StreamingRecognitionResult value)

public StreamingAnalyzeContentResponse.Builder mergeRecognitionResult(StreamingRecognitionResult value)

The result of speech recognition.

.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1;

Parameter
NameDescription
valueStreamingRecognitionResult
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

mergeReplyAudio(OutputAudio value)

public StreamingAnalyzeContentResponse.Builder mergeReplyAudio(OutputAudio value)

Optional. The audio data bytes encoded as specified in the request. This field is set if:

  • The reply_audio_config field is specified in the request.
  • The automated agent, which this output comes from, responded with audio. In such case, the reply_audio.config field 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 = 3;

Parameter
NameDescription
valueOutputAudio
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEndUserSuggestionResults(int index)

public StreamingAnalyzeContentResponse.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.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

removeHumanAgentSuggestionResults(int index)

public StreamingAnalyzeContentResponse.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.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setAutomatedAgentReply(AutomatedAgentReply value)

public StreamingAnalyzeContentResponse.Builder setAutomatedAgentReply(AutomatedAgentReply value)

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 = 4;

Parameter
NameDescription
valueAutomatedAgentReply
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setAutomatedAgentReply(AutomatedAgentReply.Builder builderForValue)

public StreamingAnalyzeContentResponse.Builder setAutomatedAgentReply(AutomatedAgentReply.Builder builderForValue)

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 = 4;

Parameter
NameDescription
builderForValueAutomatedAgentReply.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setDtmfParameters(DtmfParameters value)

public StreamingAnalyzeContentResponse.Builder setDtmfParameters(DtmfParameters value)

Indicates the parameters of DTMF.

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

Parameter
NameDescription
valueDtmfParameters
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setDtmfParameters(DtmfParameters.Builder builderForValue)

public StreamingAnalyzeContentResponse.Builder setDtmfParameters(DtmfParameters.Builder builderForValue)

Indicates the parameters of DTMF.

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

Parameter
NameDescription
builderForValueDtmfParameters.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setEndUserSuggestionResults(int index, SuggestionResult value)

public StreamingAnalyzeContentResponse.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.

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

Parameters
NameDescription
indexint
valueSuggestionResult
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setEndUserSuggestionResults(int index, SuggestionResult.Builder builderForValue)

public StreamingAnalyzeContentResponse.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.

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

Parameters
NameDescription
indexint
builderForValueSuggestionResult.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHumanAgentSuggestionResults(int index, SuggestionResult value)

public StreamingAnalyzeContentResponse.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.

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

Parameters
NameDescription
indexint
valueSuggestionResult
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setHumanAgentSuggestionResults(int index, SuggestionResult.Builder builderForValue)

public StreamingAnalyzeContentResponse.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.

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

Parameters
NameDescription
indexint
builderForValueSuggestionResult.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setMessage(Message value)

public StreamingAnalyzeContentResponse.Builder setMessage(Message value)

Output only. Message analyzed by CCAI.

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

Parameter
NameDescription
valueMessage
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setMessage(Message.Builder builderForValue)

public StreamingAnalyzeContentResponse.Builder setMessage(Message.Builder builderForValue)

Output only. Message analyzed by CCAI.

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

Parameter
NameDescription
builderForValueMessage.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setRecognitionResult(StreamingRecognitionResult value)

public StreamingAnalyzeContentResponse.Builder setRecognitionResult(StreamingRecognitionResult value)

The result of speech recognition.

.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1;

Parameter
NameDescription
valueStreamingRecognitionResult
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)

public StreamingAnalyzeContentResponse.Builder setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)

The result of speech recognition.

.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 1;

Parameter
NameDescription
builderForValueStreamingRecognitionResult.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

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

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

setReplyAudio(OutputAudio value)

public StreamingAnalyzeContentResponse.Builder setReplyAudio(OutputAudio value)

Optional. The audio data bytes encoded as specified in the request. This field is set if:

  • The reply_audio_config field is specified in the request.
  • The automated agent, which this output comes from, responded with audio. In such case, the reply_audio.config field 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 = 3;

Parameter
NameDescription
valueOutputAudio
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setReplyAudio(OutputAudio.Builder builderForValue)

public StreamingAnalyzeContentResponse.Builder setReplyAudio(OutputAudio.Builder builderForValue)

Optional. The audio data bytes encoded as specified in the request. This field is set if:

  • The reply_audio_config field is specified in the request.
  • The automated agent, which this output comes from, responded with audio. In such case, the reply_audio.config field 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 = 3;

Parameter
NameDescription
builderForValueOutputAudio.Builder
Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

setReplyText(String value)

public StreamingAnalyzeContentResponse.Builder setReplyText(String value)

Optional. The output text content. This field is set if an automated agent responded with a text for the user.

string reply_text = 2;

Parameter
NameDescription
valueString

The replyText to set.

Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

This builder for chaining.

setReplyTextBytes(ByteString value)

public StreamingAnalyzeContentResponse.Builder setReplyTextBytes(ByteString value)

Optional. The output text content. This field is set if an automated agent responded with a text for the user.

string reply_text = 2;

Parameter
NameDescription
valueByteString

The bytes for replyText to set.

Returns
TypeDescription
StreamingAnalyzeContentResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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