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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StreamingAnalyzeContentRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StreamingAnalyzeContentRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StreamingAnalyzeContentRequest.Builder>
    • getDefaultInstanceForType

      public StreamingAnalyzeContentRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StreamingAnalyzeContentRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public StreamingAnalyzeContentRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingAnalyzeContentRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingAnalyzeContentRequest.Builder>
      Throws:
      IOException
    • getConfigCase

      Specified by:
      getConfigCase in interface StreamingAnalyzeContentRequestOrBuilder
    • clearConfig

    • getInputCase

      Specified by:
      getInputCase in interface StreamingAnalyzeContentRequestOrBuilder
    • clearInput

    • getParticipant

      public String 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:
      getParticipant in interface StreamingAnalyzeContentRequestOrBuilder
      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:
      getParticipantBytes in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      The bytes for participant.
    • setParticipant

      public StreamingAnalyzeContentRequest.Builder setParticipant(String 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 participant to set.
      Returns:
      This builder for chaining.
    • clearParticipant

      public StreamingAnalyzeContentRequest.Builder 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:
      hasAudioConfig in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      Whether the audioConfig field is set.
    • getAudioConfig

      public InputAudioConfig getAudioConfig()
       Instructs the speech recognizer how to process the speech audio.
       
      .google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2;
      Specified by:
      getAudioConfig in interface StreamingAnalyzeContentRequestOrBuilder
      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

      public StreamingAnalyzeContentRequest.Builder clearAudioConfig()
       Instructs the speech recognizer how to process the speech audio.
       
      .google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2;
    • getAudioConfigBuilder

      public InputAudioConfig.Builder getAudioConfigBuilder()
       Instructs the speech recognizer how to process the speech audio.
       
      .google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2;
    • getAudioConfigOrBuilder

      public InputAudioConfigOrBuilder getAudioConfigOrBuilder()
       Instructs the speech recognizer how to process the speech audio.
       
      .google.cloud.dialogflow.v2.InputAudioConfig audio_config = 2;
      Specified by:
      getAudioConfigOrBuilder in interface StreamingAnalyzeContentRequestOrBuilder
    • hasTextConfig

      public boolean hasTextConfig()
       The natural language text to be processed.
       
      .google.cloud.dialogflow.v2.InputTextConfig text_config = 3;
      Specified by:
      hasTextConfig in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      Whether the textConfig field is set.
    • getTextConfig

      public InputTextConfig getTextConfig()
       The natural language text to be processed.
       
      .google.cloud.dialogflow.v2.InputTextConfig text_config = 3;
      Specified by:
      getTextConfig in interface StreamingAnalyzeContentRequestOrBuilder
      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

      public StreamingAnalyzeContentRequest.Builder clearTextConfig()
       The natural language text to be processed.
       
      .google.cloud.dialogflow.v2.InputTextConfig text_config = 3;
    • getTextConfigBuilder

      public InputTextConfig.Builder getTextConfigBuilder()
       The natural language text to be processed.
       
      .google.cloud.dialogflow.v2.InputTextConfig text_config = 3;
    • getTextConfigOrBuilder

      public InputTextConfigOrBuilder getTextConfigOrBuilder()
       The natural language text to be processed.
       
      .google.cloud.dialogflow.v2.InputTextConfig text_config = 3;
      Specified by:
      getTextConfigOrBuilder in interface StreamingAnalyzeContentRequestOrBuilder
    • 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:
      hasReplyAudioConfig in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      Whether the replyAudioConfig field is set.
    • getReplyAudioConfig

      public OutputAudioConfig 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:
      getReplyAudioConfig in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      The replyAudioConfig.
    • setReplyAudioConfig

      public StreamingAnalyzeContentRequest.Builder setReplyAudioConfig(OutputAudioConfig value)
       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

      public StreamingAnalyzeContentRequest.Builder mergeReplyAudioConfig(OutputAudioConfig value)
       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

      public StreamingAnalyzeContentRequest.Builder 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

      public OutputAudioConfig.Builder 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

      public OutputAudioConfigOrBuilder 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:
      getReplyAudioConfigOrBuilder in interface StreamingAnalyzeContentRequestOrBuilder
    • 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:
      hasInputAudio in interface StreamingAnalyzeContentRequestOrBuilder
      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:
      getInputAudio in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      The inputAudio.
    • setInputAudio

      public StreamingAnalyzeContentRequest.Builder setInputAudio(com.google.protobuf.ByteString value)
       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

      public StreamingAnalyzeContentRequest.Builder 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:
      hasInputText in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      Whether the inputText field is set.
    • getInputText

      public String 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:
      getInputText in interface StreamingAnalyzeContentRequestOrBuilder
      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:
      getInputTextBytes in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      The bytes for inputText.
    • setInputText

      public StreamingAnalyzeContentRequest.Builder setInputText(String 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 inputText to set.
      Returns:
      This builder for chaining.
    • clearInputText

      public StreamingAnalyzeContentRequest.Builder 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:
      hasInputDtmf in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      Whether the inputDtmf field is set.
    • getInputDtmf

      public TelephonyDtmfEvents 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:
      getInputDtmf in interface StreamingAnalyzeContentRequestOrBuilder
      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

       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

      public StreamingAnalyzeContentRequest.Builder 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

      public TelephonyDtmfEvents.Builder 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

      public TelephonyDtmfEventsOrBuilder 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:
      getInputDtmfOrBuilder in interface StreamingAnalyzeContentRequestOrBuilder
    • hasQueryParams

      public boolean hasQueryParams()
       Parameters for a Dialogflow virtual-agent query.
       
      .google.cloud.dialogflow.v2.QueryParameters query_params = 7;
      Specified by:
      hasQueryParams in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      Whether the queryParams field is set.
    • getQueryParams

      public QueryParameters getQueryParams()
       Parameters for a Dialogflow virtual-agent query.
       
      .google.cloud.dialogflow.v2.QueryParameters query_params = 7;
      Specified by:
      getQueryParams in interface StreamingAnalyzeContentRequestOrBuilder
      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

      public StreamingAnalyzeContentRequest.Builder clearQueryParams()
       Parameters for a Dialogflow virtual-agent query.
       
      .google.cloud.dialogflow.v2.QueryParameters query_params = 7;
    • getQueryParamsBuilder

      public QueryParameters.Builder getQueryParamsBuilder()
       Parameters for a Dialogflow virtual-agent query.
       
      .google.cloud.dialogflow.v2.QueryParameters query_params = 7;
    • getQueryParamsOrBuilder

      public QueryParametersOrBuilder getQueryParamsOrBuilder()
       Parameters for a Dialogflow virtual-agent query.
       
      .google.cloud.dialogflow.v2.QueryParameters query_params = 7;
      Specified by:
      getQueryParamsOrBuilder in interface StreamingAnalyzeContentRequestOrBuilder
    • hasAssistQueryParams

      public boolean hasAssistQueryParams()
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8;
      Specified by:
      hasAssistQueryParams in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      Whether the assistQueryParams field is set.
    • getAssistQueryParams

      public AssistQueryParameters getAssistQueryParams()
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8;
      Specified by:
      getAssistQueryParams in interface StreamingAnalyzeContentRequestOrBuilder
      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

      public StreamingAnalyzeContentRequest.Builder mergeAssistQueryParams(AssistQueryParameters value)
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8;
    • clearAssistQueryParams

      public StreamingAnalyzeContentRequest.Builder clearAssistQueryParams()
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8;
    • getAssistQueryParamsBuilder

      public AssistQueryParameters.Builder getAssistQueryParamsBuilder()
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8;
    • getAssistQueryParamsOrBuilder

      public AssistQueryParametersOrBuilder getAssistQueryParamsOrBuilder()
       Parameters for a human assist query.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 8;
      Specified by:
      getAssistQueryParamsOrBuilder in interface StreamingAnalyzeContentRequestOrBuilder
    • 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:
      hasCxParameters in interface StreamingAnalyzeContentRequestOrBuilder
      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:
      getCxParameters in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      The cxParameters.
    • setCxParameters

      public StreamingAnalyzeContentRequest.Builder setCxParameters(com.google.protobuf.Struct value)
       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

      public StreamingAnalyzeContentRequest.Builder mergeCxParameters(com.google.protobuf.Struct value)
       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

      public StreamingAnalyzeContentRequest.Builder 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:
      getCxParametersOrBuilder in interface StreamingAnalyzeContentRequestOrBuilder
    • 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:
      getEnableExtendedStreaming in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      The enableExtendedStreaming.
    • setEnableExtendedStreaming

      public StreamingAnalyzeContentRequest.Builder setEnableExtendedStreaming(boolean value)
       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

      public StreamingAnalyzeContentRequest.Builder 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:
      getEnablePartialAutomatedAgentReply in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      The enablePartialAutomatedAgentReply.
    • setEnablePartialAutomatedAgentReply

      public StreamingAnalyzeContentRequest.Builder setEnablePartialAutomatedAgentReply(boolean value)
       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

      public StreamingAnalyzeContentRequest.Builder 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:
      getOutputMultipleUtterances in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      The outputMultipleUtterances.
    • setOutputMultipleUtterances

      public StreamingAnalyzeContentRequest.Builder setOutputMultipleUtterances(boolean value)
       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

      public StreamingAnalyzeContentRequest.Builder 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:
      getEnableDebuggingInfo in interface StreamingAnalyzeContentRequestOrBuilder
      Returns:
      The enableDebuggingInfo.
    • setEnableDebuggingInfo

      public StreamingAnalyzeContentRequest.Builder setEnableDebuggingInfo(boolean value)
       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

      public StreamingAnalyzeContentRequest.Builder clearEnableDebuggingInfo()
       If true, `StreamingAnalyzeContentResponse.debugging_info` will get
       populated.
       
      bool enable_debugging_info = 19;
      Returns:
      This builder for chaining.