Class OutputAudioConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OutputAudioConfig.Builder>
com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder
All Implemented Interfaces:
OutputAudioConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OutputAudioConfig

public static final class OutputAudioConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<OutputAudioConfig.Builder> implements OutputAudioConfigOrBuilder
 Instructs the speech synthesizer on how to generate the output audio content.
 If this audio config is supplied in a request, it overrides all existing
 text-to-speech settings applied to the agent.
 
Protobuf type google.cloud.dialogflow.v2.OutputAudioConfig
  • 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<OutputAudioConfig.Builder>
    • clear

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

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

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

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

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

      public OutputAudioConfig.Builder mergeFrom(OutputAudioConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OutputAudioConfig.Builder>
    • mergeFrom

      public OutputAudioConfig.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<OutputAudioConfig.Builder>
      Throws:
      IOException
    • getAudioEncodingValue

      public int getAudioEncodingValue()
       Required. Audio encoding of the synthesized audio content.
       
      .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudioEncodingValue in interface OutputAudioConfigOrBuilder
      Returns:
      The enum numeric value on the wire for audioEncoding.
    • setAudioEncodingValue

      public OutputAudioConfig.Builder setAudioEncodingValue(int value)
       Required. Audio encoding of the synthesized audio content.
       
      .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for audioEncoding to set.
      Returns:
      This builder for chaining.
    • getAudioEncoding

      public OutputAudioEncoding getAudioEncoding()
       Required. Audio encoding of the synthesized audio content.
       
      .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudioEncoding in interface OutputAudioConfigOrBuilder
      Returns:
      The audioEncoding.
    • setAudioEncoding

      public OutputAudioConfig.Builder setAudioEncoding(OutputAudioEncoding value)
       Required. Audio encoding of the synthesized audio content.
       
      .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The audioEncoding to set.
      Returns:
      This builder for chaining.
    • clearAudioEncoding

      public OutputAudioConfig.Builder clearAudioEncoding()
       Required. Audio encoding of the synthesized audio content.
       
      .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getSampleRateHertz

      public int getSampleRateHertz()
       The synthesis sample rate (in hertz) for this audio. If not
       provided, then the synthesizer will use the default sample rate based on
       the audio encoding. If this is different from the voice's natural sample
       rate, then the synthesizer will honor this request by converting to the
       desired sample rate (which might result in worse audio quality).
       
      int32 sample_rate_hertz = 2;
      Specified by:
      getSampleRateHertz in interface OutputAudioConfigOrBuilder
      Returns:
      The sampleRateHertz.
    • setSampleRateHertz

      public OutputAudioConfig.Builder setSampleRateHertz(int value)
       The synthesis sample rate (in hertz) for this audio. If not
       provided, then the synthesizer will use the default sample rate based on
       the audio encoding. If this is different from the voice's natural sample
       rate, then the synthesizer will honor this request by converting to the
       desired sample rate (which might result in worse audio quality).
       
      int32 sample_rate_hertz = 2;
      Parameters:
      value - The sampleRateHertz to set.
      Returns:
      This builder for chaining.
    • clearSampleRateHertz

      public OutputAudioConfig.Builder clearSampleRateHertz()
       The synthesis sample rate (in hertz) for this audio. If not
       provided, then the synthesizer will use the default sample rate based on
       the audio encoding. If this is different from the voice's natural sample
       rate, then the synthesizer will honor this request by converting to the
       desired sample rate (which might result in worse audio quality).
       
      int32 sample_rate_hertz = 2;
      Returns:
      This builder for chaining.
    • hasSynthesizeSpeechConfig

      public boolean hasSynthesizeSpeechConfig()
       Configuration of how speech should be synthesized.
       
      .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
      Specified by:
      hasSynthesizeSpeechConfig in interface OutputAudioConfigOrBuilder
      Returns:
      Whether the synthesizeSpeechConfig field is set.
    • getSynthesizeSpeechConfig

      public SynthesizeSpeechConfig getSynthesizeSpeechConfig()
       Configuration of how speech should be synthesized.
       
      .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
      Specified by:
      getSynthesizeSpeechConfig in interface OutputAudioConfigOrBuilder
      Returns:
      The synthesizeSpeechConfig.
    • setSynthesizeSpeechConfig

      public OutputAudioConfig.Builder setSynthesizeSpeechConfig(SynthesizeSpeechConfig value)
       Configuration of how speech should be synthesized.
       
      .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
    • setSynthesizeSpeechConfig

      public OutputAudioConfig.Builder setSynthesizeSpeechConfig(SynthesizeSpeechConfig.Builder builderForValue)
       Configuration of how speech should be synthesized.
       
      .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
    • mergeSynthesizeSpeechConfig

      public OutputAudioConfig.Builder mergeSynthesizeSpeechConfig(SynthesizeSpeechConfig value)
       Configuration of how speech should be synthesized.
       
      .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
    • clearSynthesizeSpeechConfig

      public OutputAudioConfig.Builder clearSynthesizeSpeechConfig()
       Configuration of how speech should be synthesized.
       
      .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
    • getSynthesizeSpeechConfigBuilder

      public SynthesizeSpeechConfig.Builder getSynthesizeSpeechConfigBuilder()
       Configuration of how speech should be synthesized.
       
      .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
    • getSynthesizeSpeechConfigOrBuilder

      public SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder()
       Configuration of how speech should be synthesized.
       
      .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
      Specified by:
      getSynthesizeSpeechConfigOrBuilder in interface OutputAudioConfigOrBuilder