Package com.google.cloud.dialogflow.v2
Class StreamingAnalyzeContentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamingAnalyzeContentRequest.Builder>
com.google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.Builder
- All Implemented Interfaces:
StreamingAnalyzeContentRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamingAnalyzeContentRequest
public static final class StreamingAnalyzeContentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StreamingAnalyzeContentRequest.Builder>
implements StreamingAnalyzeContentRequestOrBuilder
The top-level message sent by the client to the [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] method. Multiple request messages should be sent in order: 1. The first message must contain [participant][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] and optionally [query_params][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.query_params]. If you want to receive an audio response, it should also contain [reply_audio_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.reply_audio_config]. The message must not contain [input][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input]. 2. If [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message was set to [audio_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.audio_config], all subsequent messages must contain [input_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input_audio] to continue with Speech recognition. However, note that: * Dialogflow will bill you for the audio so far. * Dialogflow discards all Speech recognition results in favor of the text input. 3. If [StreamingAnalyzeContentRequest.config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message was set to [StreamingAnalyzeContentRequest.text_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.text_config], then the second message must contain only [input_text][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input_text]. Moreover, you must not send more than two messages. After you sent all input, you must half-close or abort the request stream.Protobuf type
google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Parameters for a human assist query.Instructs the speech recognizer how to process the speech audio.Additional parameters to be put into Dialogflow CX session parameters.If true, `StreamingAnalyzeContentResponse.debugging_info` will get populated.Optional.Optional.The input audio content to be recognized.The DTMF digits used to invoke intent and fill in parameter value.The UTF-8 encoded natural language text to be processed.Optional.Required.Parameters for a Dialogflow virtual-agent query.Speech synthesis configuration.The natural language text to be processed.Parameters for a human assist query.Parameters for a human assist query.Parameters for a human assist query.Instructs the speech recognizer how to process the speech audio.Instructs the speech recognizer how to process the speech audio.Instructs the speech recognizer how to process the speech audio.com.google.protobuf.StructAdditional parameters to be put into Dialogflow CX session parameters.com.google.protobuf.Struct.BuilderAdditional parameters to be put into Dialogflow CX session parameters.com.google.protobuf.StructOrBuilderAdditional parameters to be put into Dialogflow CX session parameters.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, `StreamingAnalyzeContentResponse.debugging_info` will get populated.booleanOptional.booleanOptional.com.google.protobuf.ByteStringThe input audio content to be recognized.The DTMF digits used to invoke intent and fill in parameter value.The DTMF digits used to invoke intent and fill in parameter value.The DTMF digits used to invoke intent and fill in parameter value.The UTF-8 encoded natural language text to be processed.com.google.protobuf.ByteStringThe UTF-8 encoded natural language text to be processed.booleanOptional.Required.com.google.protobuf.ByteStringRequired.Parameters for a Dialogflow virtual-agent query.Parameters for a Dialogflow virtual-agent query.Parameters for a Dialogflow virtual-agent query.Speech synthesis configuration.Speech synthesis configuration.Speech synthesis configuration.The natural language text to be processed.The natural language text to be processed.The natural language text to be processed.booleanParameters for a human assist query.booleanInstructs the speech recognizer how to process the speech audio.booleanAdditional parameters to be put into Dialogflow CX session parameters.booleanThe input audio content to be recognized.booleanThe DTMF digits used to invoke intent and fill in parameter value.booleanThe UTF-8 encoded natural language text to be processed.booleanParameters for a Dialogflow virtual-agent query.booleanSpeech synthesis configuration.booleanThe natural language text to be processed.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanParameters for a human assist query.mergeAudioConfig(InputAudioConfig value) Instructs the speech recognizer how to process the speech audio.mergeCxParameters(com.google.protobuf.Struct value) Additional parameters to be put into Dialogflow CX session parameters.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The DTMF digits used to invoke intent and fill in parameter value.mergeQueryParams(QueryParameters value) Parameters for a Dialogflow virtual-agent query.Speech synthesis configuration.mergeTextConfig(InputTextConfig value) The natural language text to be processed.Parameters for a human assist query.setAssistQueryParams(AssistQueryParameters.Builder builderForValue) Parameters for a human assist query.setAudioConfig(InputAudioConfig value) Instructs the speech recognizer how to process the speech audio.setAudioConfig(InputAudioConfig.Builder builderForValue) Instructs the speech recognizer how to process the speech audio.setCxParameters(com.google.protobuf.Struct value) Additional parameters to be put into Dialogflow CX session parameters.setCxParameters(com.google.protobuf.Struct.Builder builderForValue) Additional parameters to be put into Dialogflow CX session parameters.setEnableDebuggingInfo(boolean value) If true, `StreamingAnalyzeContentResponse.debugging_info` will get populated.setEnableExtendedStreaming(boolean value) Optional.setEnablePartialAutomatedAgentReply(boolean value) Optional.setInputAudio(com.google.protobuf.ByteString value) The input audio content to be recognized.setInputDtmf(TelephonyDtmfEvents value) The DTMF digits used to invoke intent and fill in parameter value.setInputDtmf(TelephonyDtmfEvents.Builder builderForValue) The DTMF digits used to invoke intent and fill in parameter value.setInputText(String value) The UTF-8 encoded natural language text to be processed.setInputTextBytes(com.google.protobuf.ByteString value) The UTF-8 encoded natural language text to be processed.setOutputMultipleUtterances(boolean value) Optional.setParticipant(String value) Required.setParticipantBytes(com.google.protobuf.ByteString value) Required.setQueryParams(QueryParameters value) Parameters for a Dialogflow virtual-agent query.setQueryParams(QueryParameters.Builder builderForValue) Parameters for a Dialogflow virtual-agent query.Speech synthesis configuration.setReplyAudioConfig(OutputAudioConfig.Builder builderForValue) Speech synthesis configuration.setTextConfig(InputTextConfig value) The natural language text to be processed.setTextConfig(InputTextConfig.Builder builderForValue) The natural language text to be processed.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StreamingAnalyzeContentRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StreamingAnalyzeContentRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StreamingAnalyzeContentRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingAnalyzeContentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StreamingAnalyzeContentRequest.Builder>
-
mergeFrom
public StreamingAnalyzeContentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingAnalyzeContentRequest.Builder>- Throws:
IOException
-
getConfigCase
- Specified by:
getConfigCasein interfaceStreamingAnalyzeContentRequestOrBuilder
-
clearConfig
-
getInputCase
- Specified by:
getInputCasein interfaceStreamingAnalyzeContentRequestOrBuilder
-
clearInput
-
getParticipant
Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParticipantin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The participant.
-
getParticipantBytes
public com.google.protobuf.ByteString getParticipantBytes()Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParticipantBytesin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The bytes for participant.
-
setParticipant
Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The participant to set.- Returns:
- This builder for chaining.
-
clearParticipant
Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParticipantBytes
public StreamingAnalyzeContentRequest.Builder setParticipantBytes(com.google.protobuf.ByteString value) Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for participant to set.- Returns:
- This builder for chaining.
-
hasAudioConfig
public boolean hasAudioConfig()Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2;- Specified by:
hasAudioConfigin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- Whether the audioConfig field is set.
-
getAudioConfig
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2;- Specified by:
getAudioConfigin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The audioConfig.
-
setAudioConfig
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2; -
setAudioConfig
public StreamingAnalyzeContentRequest.Builder setAudioConfig(InputAudioConfig.Builder builderForValue) Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2; -
mergeAudioConfig
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2; -
clearAudioConfig
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2; -
getAudioConfigBuilder
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2; -
getAudioConfigOrBuilder
Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2;- Specified by:
getAudioConfigOrBuilderin interfaceStreamingAnalyzeContentRequestOrBuilder
-
hasTextConfig
public boolean hasTextConfig()The natural language text to be processed.
.google.cloud.dialogflow.v2.InputTextConfig text_config = 3;- Specified by:
hasTextConfigin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- Whether the textConfig field is set.
-
getTextConfig
The natural language text to be processed.
.google.cloud.dialogflow.v2.InputTextConfig text_config = 3;- Specified by:
getTextConfigin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The textConfig.
-
setTextConfig
The natural language text to be processed.
.google.cloud.dialogflow.v2.InputTextConfig text_config = 3; -
setTextConfig
public StreamingAnalyzeContentRequest.Builder setTextConfig(InputTextConfig.Builder builderForValue) The natural language text to be processed.
.google.cloud.dialogflow.v2.InputTextConfig text_config = 3; -
mergeTextConfig
The natural language text to be processed.
.google.cloud.dialogflow.v2.InputTextConfig text_config = 3; -
clearTextConfig
The natural language text to be processed.
.google.cloud.dialogflow.v2.InputTextConfig text_config = 3; -
getTextConfigBuilder
The natural language text to be processed.
.google.cloud.dialogflow.v2.InputTextConfig text_config = 3; -
getTextConfigOrBuilder
The natural language text to be processed.
.google.cloud.dialogflow.v2.InputTextConfig text_config = 3;- Specified by:
getTextConfigOrBuilderin interfaceStreamingAnalyzeContentRequestOrBuilder
-
hasReplyAudioConfig
public boolean hasReplyAudioConfig()Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling StreamingAnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.
.google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 4;- Specified by:
hasReplyAudioConfigin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- Whether the replyAudioConfig field is set.
-
getReplyAudioConfig
Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling StreamingAnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.
.google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 4;- Specified by:
getReplyAudioConfigin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The replyAudioConfig.
-
setReplyAudioConfig
Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling StreamingAnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.
.google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 4; -
setReplyAudioConfig
public StreamingAnalyzeContentRequest.Builder setReplyAudioConfig(OutputAudioConfig.Builder builderForValue) Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling StreamingAnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.
.google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 4; -
mergeReplyAudioConfig
Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling StreamingAnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.
.google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 4; -
clearReplyAudioConfig
Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling StreamingAnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.
.google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 4; -
getReplyAudioConfigBuilder
Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling StreamingAnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.
.google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 4; -
getReplyAudioConfigOrBuilder
Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling StreamingAnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.
.google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 4;- Specified by:
getReplyAudioConfigOrBuilderin interfaceStreamingAnalyzeContentRequestOrBuilder
-
hasInputAudio
public boolean hasInputAudio()The input audio content to be recognized. Must be sent if `audio_config` is set in the first message. The complete audio over all streaming messages must not exceed 1 minute.
bytes input_audio = 5;- Specified by:
hasInputAudioin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- Whether the inputAudio field is set.
-
getInputAudio
public com.google.protobuf.ByteString getInputAudio()The input audio content to be recognized. Must be sent if `audio_config` is set in the first message. The complete audio over all streaming messages must not exceed 1 minute.
bytes input_audio = 5;- Specified by:
getInputAudioin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The inputAudio.
-
setInputAudio
The input audio content to be recognized. Must be sent if `audio_config` is set in the first message. The complete audio over all streaming messages must not exceed 1 minute.
bytes input_audio = 5;- Parameters:
value- The inputAudio to set.- Returns:
- This builder for chaining.
-
clearInputAudio
The input audio content to be recognized. Must be sent if `audio_config` is set in the first message. The complete audio over all streaming messages must not exceed 1 minute.
bytes input_audio = 5;- Returns:
- This builder for chaining.
-
hasInputText
public boolean hasInputText()The UTF-8 encoded natural language text to be processed. Must be sent if `text_config` is set in the first message. Text length must not exceed 256 bytes for virtual agent interactions. The `input_text` field can be only sent once, and would cancel the speech recognition if any ongoing.
string input_text = 6;- Specified by:
hasInputTextin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- Whether the inputText field is set.
-
getInputText
The UTF-8 encoded natural language text to be processed. Must be sent if `text_config` is set in the first message. Text length must not exceed 256 bytes for virtual agent interactions. The `input_text` field can be only sent once, and would cancel the speech recognition if any ongoing.
string input_text = 6;- Specified by:
getInputTextin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The inputText.
-
getInputTextBytes
public com.google.protobuf.ByteString getInputTextBytes()The UTF-8 encoded natural language text to be processed. Must be sent if `text_config` is set in the first message. Text length must not exceed 256 bytes for virtual agent interactions. The `input_text` field can be only sent once, and would cancel the speech recognition if any ongoing.
string input_text = 6;- Specified by:
getInputTextBytesin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The bytes for inputText.
-
setInputText
The UTF-8 encoded natural language text to be processed. Must be sent if `text_config` is set in the first message. Text length must not exceed 256 bytes for virtual agent interactions. The `input_text` field can be only sent once, and would cancel the speech recognition if any ongoing.
string input_text = 6;- Parameters:
value- The inputText to set.- Returns:
- This builder for chaining.
-
clearInputText
The UTF-8 encoded natural language text to be processed. Must be sent if `text_config` is set in the first message. Text length must not exceed 256 bytes for virtual agent interactions. The `input_text` field can be only sent once, and would cancel the speech recognition if any ongoing.
string input_text = 6;- Returns:
- This builder for chaining.
-
setInputTextBytes
public StreamingAnalyzeContentRequest.Builder setInputTextBytes(com.google.protobuf.ByteString value) The UTF-8 encoded natural language text to be processed. Must be sent if `text_config` is set in the first message. Text length must not exceed 256 bytes for virtual agent interactions. The `input_text` field can be only sent once, and would cancel the speech recognition if any ongoing.
string input_text = 6;- Parameters:
value- The bytes for inputText to set.- Returns:
- This builder for chaining.
-
hasInputDtmf
public boolean hasInputDtmf()The DTMF digits used to invoke intent and fill in parameter value. This input is ignored if the previous response indicated that DTMF input is not accepted.
.google.cloud.dialogflow.v2.TelephonyDtmfEvents input_dtmf = 9;- Specified by:
hasInputDtmfin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- Whether the inputDtmf field is set.
-
getInputDtmf
The DTMF digits used to invoke intent and fill in parameter value. This input is ignored if the previous response indicated that DTMF input is not accepted.
.google.cloud.dialogflow.v2.TelephonyDtmfEvents input_dtmf = 9;- Specified by:
getInputDtmfin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The inputDtmf.
-
setInputDtmf
The DTMF digits used to invoke intent and fill in parameter value. This input is ignored if the previous response indicated that DTMF input is not accepted.
.google.cloud.dialogflow.v2.TelephonyDtmfEvents input_dtmf = 9; -
setInputDtmf
public StreamingAnalyzeContentRequest.Builder setInputDtmf(TelephonyDtmfEvents.Builder builderForValue) The DTMF digits used to invoke intent and fill in parameter value. This input is ignored if the previous response indicated that DTMF input is not accepted.
.google.cloud.dialogflow.v2.TelephonyDtmfEvents input_dtmf = 9; -
mergeInputDtmf
The DTMF digits used to invoke intent and fill in parameter value. This input is ignored if the previous response indicated that DTMF input is not accepted.
.google.cloud.dialogflow.v2.TelephonyDtmfEvents input_dtmf = 9; -
clearInputDtmf
The DTMF digits used to invoke intent and fill in parameter value. This input is ignored if the previous response indicated that DTMF input is not accepted.
.google.cloud.dialogflow.v2.TelephonyDtmfEvents input_dtmf = 9; -
getInputDtmfBuilder
The DTMF digits used to invoke intent and fill in parameter value. This input is ignored if the previous response indicated that DTMF input is not accepted.
.google.cloud.dialogflow.v2.TelephonyDtmfEvents input_dtmf = 9; -
getInputDtmfOrBuilder
The DTMF digits used to invoke intent and fill in parameter value. This input is ignored if the previous response indicated that DTMF input is not accepted.
.google.cloud.dialogflow.v2.TelephonyDtmfEvents input_dtmf = 9;- Specified by:
getInputDtmfOrBuilderin interfaceStreamingAnalyzeContentRequestOrBuilder
-
hasQueryParams
public boolean hasQueryParams()Parameters for a Dialogflow virtual-agent query.
.google.cloud.dialogflow.v2.QueryParameters query_params = 7;- Specified by:
hasQueryParamsin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- Whether the queryParams field is set.
-
getQueryParams
Parameters for a Dialogflow virtual-agent query.
.google.cloud.dialogflow.v2.QueryParameters query_params = 7;- Specified by:
getQueryParamsin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The queryParams.
-
setQueryParams
Parameters for a Dialogflow virtual-agent query.
.google.cloud.dialogflow.v2.QueryParameters query_params = 7; -
setQueryParams
public StreamingAnalyzeContentRequest.Builder setQueryParams(QueryParameters.Builder builderForValue) Parameters for a Dialogflow virtual-agent query.
.google.cloud.dialogflow.v2.QueryParameters query_params = 7; -
mergeQueryParams
Parameters for a Dialogflow virtual-agent query.
.google.cloud.dialogflow.v2.QueryParameters query_params = 7; -
clearQueryParams
Parameters for a Dialogflow virtual-agent query.
.google.cloud.dialogflow.v2.QueryParameters query_params = 7; -
getQueryParamsBuilder
Parameters for a Dialogflow virtual-agent query.
.google.cloud.dialogflow.v2.QueryParameters query_params = 7; -
getQueryParamsOrBuilder
Parameters for a Dialogflow virtual-agent query.
.google.cloud.dialogflow.v2.QueryParameters query_params = 7;- Specified by:
getQueryParamsOrBuilderin interfaceStreamingAnalyzeContentRequestOrBuilder
-
hasAssistQueryParams
public boolean hasAssistQueryParams()Parameters for a human assist query.
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8;- Specified by:
hasAssistQueryParamsin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- Whether the assistQueryParams field is set.
-
getAssistQueryParams
Parameters for a human assist query.
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8;- Specified by:
getAssistQueryParamsin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The assistQueryParams.
-
setAssistQueryParams
Parameters for a human assist query.
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8; -
setAssistQueryParams
public StreamingAnalyzeContentRequest.Builder setAssistQueryParams(AssistQueryParameters.Builder builderForValue) Parameters for a human assist query.
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8; -
mergeAssistQueryParams
Parameters for a human assist query.
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8; -
clearAssistQueryParams
Parameters for a human assist query.
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8; -
getAssistQueryParamsBuilder
Parameters for a human assist query.
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8; -
getAssistQueryParamsOrBuilder
Parameters for a human assist query.
.google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8;- Specified by:
getAssistQueryParamsOrBuilderin interfaceStreamingAnalyzeContentRequestOrBuilder
-
hasCxParameters
public boolean hasCxParameters()Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. Note: this field should only be used if you are connecting to a Dialogflow CX agent.
.google.protobuf.Struct cx_parameters = 13;- Specified by:
hasCxParametersin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- Whether the cxParameters field is set.
-
getCxParameters
public com.google.protobuf.Struct getCxParameters()Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. Note: this field should only be used if you are connecting to a Dialogflow CX agent.
.google.protobuf.Struct cx_parameters = 13;- Specified by:
getCxParametersin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The cxParameters.
-
setCxParameters
Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. Note: this field should only be used if you are connecting to a Dialogflow CX agent.
.google.protobuf.Struct cx_parameters = 13; -
setCxParameters
public StreamingAnalyzeContentRequest.Builder setCxParameters(com.google.protobuf.Struct.Builder builderForValue) Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. Note: this field should only be used if you are connecting to a Dialogflow CX agent.
.google.protobuf.Struct cx_parameters = 13; -
mergeCxParameters
Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. Note: this field should only be used if you are connecting to a Dialogflow CX agent.
.google.protobuf.Struct cx_parameters = 13; -
clearCxParameters
Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. Note: this field should only be used if you are connecting to a Dialogflow CX agent.
.google.protobuf.Struct cx_parameters = 13; -
getCxParametersBuilder
public com.google.protobuf.Struct.Builder getCxParametersBuilder()Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. Note: this field should only be used if you are connecting to a Dialogflow CX agent.
.google.protobuf.Struct cx_parameters = 13; -
getCxParametersOrBuilder
public com.google.protobuf.StructOrBuilder getCxParametersOrBuilder()Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. Note: this field should only be used if you are connecting to a Dialogflow CX agent.
.google.protobuf.Struct cx_parameters = 13;- Specified by:
getCxParametersOrBuilderin interfaceStreamingAnalyzeContentRequestOrBuilder
-
getEnableExtendedStreaming
public boolean getEnableExtendedStreaming()Optional. Enable full bidirectional streaming. You can keep streaming the audio until timeout, and there's no need to half close the stream to get the response. Restrictions: - Timeout: 3 mins. - Audio Encoding: only supports [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_LINEAR_16] and [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW] - Lifecycle: conversation should be in `Assist Stage`, go to [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation] for more information. InvalidArgument Error will be returned if the one of restriction checks failed. You can find more details in https://cloud.google.com/agent-assist/docs/extended-streaming
bool enable_extended_streaming = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableExtendedStreamingin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The enableExtendedStreaming.
-
setEnableExtendedStreaming
Optional. Enable full bidirectional streaming. You can keep streaming the audio until timeout, and there's no need to half close the stream to get the response. Restrictions: - Timeout: 3 mins. - Audio Encoding: only supports [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_LINEAR_16] and [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW] - Lifecycle: conversation should be in `Assist Stage`, go to [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation] for more information. InvalidArgument Error will be returned if the one of restriction checks failed. You can find more details in https://cloud.google.com/agent-assist/docs/extended-streaming
bool enable_extended_streaming = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enableExtendedStreaming to set.- Returns:
- This builder for chaining.
-
clearEnableExtendedStreaming
Optional. Enable full bidirectional streaming. You can keep streaming the audio until timeout, and there's no need to half close the stream to get the response. Restrictions: - Timeout: 3 mins. - Audio Encoding: only supports [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_LINEAR_16] and [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW] - Lifecycle: conversation should be in `Assist Stage`, go to [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation] for more information. InvalidArgument Error will be returned if the one of restriction checks failed. You can find more details in https://cloud.google.com/agent-assist/docs/extended-streaming
bool enable_extended_streaming = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getEnablePartialAutomatedAgentReply
public boolean getEnablePartialAutomatedAgentReply()Optional. Enable partial responses from Dialogflow CX agent. If this flag is not enabled, response stream still contains only one final response even if some `Fulfillment`s in Dialogflow CX agent have been configured to return partial responses.
bool enable_partial_automated_agent_reply = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnablePartialAutomatedAgentReplyin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The enablePartialAutomatedAgentReply.
-
setEnablePartialAutomatedAgentReply
Optional. Enable partial responses from Dialogflow CX agent. If this flag is not enabled, response stream still contains only one final response even if some `Fulfillment`s in Dialogflow CX agent have been configured to return partial responses.
bool enable_partial_automated_agent_reply = 12 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enablePartialAutomatedAgentReply to set.- Returns:
- This builder for chaining.
-
clearEnablePartialAutomatedAgentReply
Optional. Enable partial responses from Dialogflow CX agent. If this flag is not enabled, response stream still contains only one final response even if some `Fulfillment`s in Dialogflow CX agent have been configured to return partial responses.
bool enable_partial_automated_agent_reply = 12 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getOutputMultipleUtterances
public boolean getOutputMultipleUtterances()Optional. If multiple uttereances are detected in the audio stream, process them individually instead of stitching them together to form a single utterance.
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputMultipleUtterancesin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The outputMultipleUtterances.
-
setOutputMultipleUtterances
Optional. If multiple uttereances are detected in the audio stream, process them individually instead of stitching them together to form a single utterance.
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The outputMultipleUtterances to set.- Returns:
- This builder for chaining.
-
clearOutputMultipleUtterances
Optional. If multiple uttereances are detected in the audio stream, process them individually instead of stitching them together to form a single utterance.
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getEnableDebuggingInfo
public boolean getEnableDebuggingInfo()If true, `StreamingAnalyzeContentResponse.debugging_info` will get populated.
bool enable_debugging_info = 19;- Specified by:
getEnableDebuggingInfoin interfaceStreamingAnalyzeContentRequestOrBuilder- Returns:
- The enableDebuggingInfo.
-
setEnableDebuggingInfo
If true, `StreamingAnalyzeContentResponse.debugging_info` will get populated.
bool enable_debugging_info = 19;- Parameters:
value- The enableDebuggingInfo to set.- Returns:
- This builder for chaining.
-
clearEnableDebuggingInfo
If true, `StreamingAnalyzeContentResponse.debugging_info` will get populated.
bool enable_debugging_info = 19;- Returns:
- This builder for chaining.
-