Class 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.GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
    implements OutputAudioConfigOrBuilder
     Instructs the speech synthesizer how to generate the output audio content.
     
    Protobuf type google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public OutputAudioConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
      • setField

        public OutputAudioConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
      • clearField

        public OutputAudioConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
      • clearOneof

        public OutputAudioConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
      • setRepeatedField

        public OutputAudioConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
      • addRepeatedField

        public OutputAudioConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OutputAudioConfig.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.cx.v3beta1.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.cx.v3beta1.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.cx.v3beta1.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.cx.v3beta1.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.cx.v3beta1.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getSampleRateHertz

        public int getSampleRateHertz()
         Optional. 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)
         Optional. 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()
         Optional. 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()
         Optional. Configuration of how speech should be synthesized.
         If not specified,
         [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
         is applied.
         
        .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
        Specified by:
        hasSynthesizeSpeechConfig in interface OutputAudioConfigOrBuilder
        Returns:
        Whether the synthesizeSpeechConfig field is set.
      • getSynthesizeSpeechConfig

        public SynthesizeSpeechConfig getSynthesizeSpeechConfig()
         Optional. Configuration of how speech should be synthesized.
         If not specified,
         [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
         is applied.
         
        .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
        Specified by:
        getSynthesizeSpeechConfig in interface OutputAudioConfigOrBuilder
        Returns:
        The synthesizeSpeechConfig.
      • setSynthesizeSpeechConfig

        public OutputAudioConfig.Builder setSynthesizeSpeechConfig​(SynthesizeSpeechConfig value)
         Optional. Configuration of how speech should be synthesized.
         If not specified,
         [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
         is applied.
         
        .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
      • setSynthesizeSpeechConfig

        public OutputAudioConfig.Builder setSynthesizeSpeechConfig​(SynthesizeSpeechConfig.Builder builderForValue)
         Optional. Configuration of how speech should be synthesized.
         If not specified,
         [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
         is applied.
         
        .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
      • mergeSynthesizeSpeechConfig

        public OutputAudioConfig.Builder mergeSynthesizeSpeechConfig​(SynthesizeSpeechConfig value)
         Optional. Configuration of how speech should be synthesized.
         If not specified,
         [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
         is applied.
         
        .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
      • clearSynthesizeSpeechConfig

        public OutputAudioConfig.Builder clearSynthesizeSpeechConfig()
         Optional. Configuration of how speech should be synthesized.
         If not specified,
         [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
         is applied.
         
        .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
      • getSynthesizeSpeechConfigBuilder

        public SynthesizeSpeechConfig.Builder getSynthesizeSpeechConfigBuilder()
         Optional. Configuration of how speech should be synthesized.
         If not specified,
         [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
         is applied.
         
        .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
      • getSynthesizeSpeechConfigOrBuilder

        public SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder()
         Optional. Configuration of how speech should be synthesized.
         If not specified,
         [Agent.text_to_speech_settings][google.cloud.dialogflow.cx.v3beta1.Agent.text_to_speech_settings]
         is applied.
         
        .google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
        Specified by:
        getSynthesizeSpeechConfigOrBuilder in interface OutputAudioConfigOrBuilder
      • setUnknownFields

        public final OutputAudioConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
      • mergeUnknownFields

        public final OutputAudioConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OutputAudioConfig.Builder>