Class AdvancedVoiceOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdvancedVoiceOptions.Builder>
com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.Builder
All Implemented Interfaces:
AdvancedVoiceOptionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AdvancedVoiceOptions

public static final class AdvancedVoiceOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdvancedVoiceOptions.Builder> implements AdvancedVoiceOptionsOrBuilder
 Used for advanced voice options.
 
Protobuf type google.cloud.texttospeech.v1.AdvancedVoiceOptions
  • 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<AdvancedVoiceOptions.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<AdvancedVoiceOptions.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<AdvancedVoiceOptions.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AdvancedVoiceOptions.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<AdvancedVoiceOptions.Builder>
      Throws:
      IOException
    • hasLowLatencyJourneySynthesis

      public boolean hasLowLatencyJourneySynthesis()
       Only for Journey voices. If false, the synthesis is context aware
       and has a higher latency.
       
      optional bool low_latency_journey_synthesis = 1;
      Specified by:
      hasLowLatencyJourneySynthesis in interface AdvancedVoiceOptionsOrBuilder
      Returns:
      Whether the lowLatencyJourneySynthesis field is set.
    • getLowLatencyJourneySynthesis

      public boolean getLowLatencyJourneySynthesis()
       Only for Journey voices. If false, the synthesis is context aware
       and has a higher latency.
       
      optional bool low_latency_journey_synthesis = 1;
      Specified by:
      getLowLatencyJourneySynthesis in interface AdvancedVoiceOptionsOrBuilder
      Returns:
      The lowLatencyJourneySynthesis.
    • setLowLatencyJourneySynthesis

      public AdvancedVoiceOptions.Builder setLowLatencyJourneySynthesis(boolean value)
       Only for Journey voices. If false, the synthesis is context aware
       and has a higher latency.
       
      optional bool low_latency_journey_synthesis = 1;
      Parameters:
      value - The lowLatencyJourneySynthesis to set.
      Returns:
      This builder for chaining.
    • clearLowLatencyJourneySynthesis

      public AdvancedVoiceOptions.Builder clearLowLatencyJourneySynthesis()
       Only for Journey voices. If false, the synthesis is context aware
       and has a higher latency.
       
      optional bool low_latency_journey_synthesis = 1;
      Returns:
      This builder for chaining.
    • getRelaxSafetyFilters

      @Deprecated public boolean getRelaxSafetyFilters()
      Deprecated.
      google.cloud.texttospeech.v1.AdvancedVoiceOptions.relax_safety_filters is deprecated. See google/cloud/texttospeech/v1/cloud_tts.proto;l=224
       Optional. Input only. Deprecated, use safety_settings instead.
       If true, relaxes safety filters for Gemini TTS.
       
      bool relax_safety_filters = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRelaxSafetyFilters in interface AdvancedVoiceOptionsOrBuilder
      Returns:
      The relaxSafetyFilters.
    • setRelaxSafetyFilters

      @Deprecated public AdvancedVoiceOptions.Builder setRelaxSafetyFilters(boolean value)
      Deprecated.
      google.cloud.texttospeech.v1.AdvancedVoiceOptions.relax_safety_filters is deprecated. See google/cloud/texttospeech/v1/cloud_tts.proto;l=224
       Optional. Input only. Deprecated, use safety_settings instead.
       If true, relaxes safety filters for Gemini TTS.
       
      bool relax_safety_filters = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The relaxSafetyFilters to set.
      Returns:
      This builder for chaining.
    • clearRelaxSafetyFilters

      @Deprecated public AdvancedVoiceOptions.Builder clearRelaxSafetyFilters()
      Deprecated.
      google.cloud.texttospeech.v1.AdvancedVoiceOptions.relax_safety_filters is deprecated. See google/cloud/texttospeech/v1/cloud_tts.proto;l=224
       Optional. Input only. Deprecated, use safety_settings instead.
       If true, relaxes safety filters for Gemini TTS.
       
      bool relax_safety_filters = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasSafetySettings

      public boolean hasSafetySettings()
       Optional. Input only. This applies to Gemini TTS only. If set, the category
       specified in the safety setting will be blocked if the harm probability is
       above the threshold. Otherwise, the safety filter will be disabled by
       default.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSafetySettings in interface AdvancedVoiceOptionsOrBuilder
      Returns:
      Whether the safetySettings field is set.
    • getSafetySettings

      public AdvancedVoiceOptions.SafetySettings getSafetySettings()
       Optional. Input only. This applies to Gemini TTS only. If set, the category
       specified in the safety setting will be blocked if the harm probability is
       above the threshold. Otherwise, the safety filter will be disabled by
       default.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSafetySettings in interface AdvancedVoiceOptionsOrBuilder
      Returns:
      The safetySettings.
    • setSafetySettings

       Optional. Input only. This applies to Gemini TTS only. If set, the category
       specified in the safety setting will be blocked if the harm probability is
       above the threshold. Otherwise, the safety filter will be disabled by
       default.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
    • setSafetySettings

       Optional. Input only. This applies to Gemini TTS only. If set, the category
       specified in the safety setting will be blocked if the harm probability is
       above the threshold. Otherwise, the safety filter will be disabled by
       default.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
    • mergeSafetySettings

       Optional. Input only. This applies to Gemini TTS only. If set, the category
       specified in the safety setting will be blocked if the harm probability is
       above the threshold. Otherwise, the safety filter will be disabled by
       default.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
    • clearSafetySettings

      public AdvancedVoiceOptions.Builder clearSafetySettings()
       Optional. Input only. This applies to Gemini TTS only. If set, the category
       specified in the safety setting will be blocked if the harm probability is
       above the threshold. Otherwise, the safety filter will be disabled by
       default.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
    • getSafetySettingsBuilder

      public AdvancedVoiceOptions.SafetySettings.Builder getSafetySettingsBuilder()
       Optional. Input only. This applies to Gemini TTS only. If set, the category
       specified in the safety setting will be blocked if the harm probability is
       above the threshold. Otherwise, the safety filter will be disabled by
       default.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
    • getSafetySettingsOrBuilder

      public AdvancedVoiceOptions.SafetySettingsOrBuilder getSafetySettingsOrBuilder()
       Optional. Input only. This applies to Gemini TTS only. If set, the category
       specified in the safety setting will be blocked if the harm probability is
       above the threshold. Otherwise, the safety filter will be disabled by
       default.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSafetySettingsOrBuilder in interface AdvancedVoiceOptionsOrBuilder
    • hasEnableTextnorm

      public boolean hasEnableTextnorm()
       Optional. If true, textnorm will be applied to text input. This feature is
       enabled by default. Only applies for Gemini TTS.
       
      optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEnableTextnorm in interface AdvancedVoiceOptionsOrBuilder
      Returns:
      Whether the enableTextnorm field is set.
    • getEnableTextnorm

      public boolean getEnableTextnorm()
       Optional. If true, textnorm will be applied to text input. This feature is
       enabled by default. Only applies for Gemini TTS.
       
      optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnableTextnorm in interface AdvancedVoiceOptionsOrBuilder
      Returns:
      The enableTextnorm.
    • setEnableTextnorm

      public AdvancedVoiceOptions.Builder setEnableTextnorm(boolean value)
       Optional. If true, textnorm will be applied to text input. This feature is
       enabled by default. Only applies for Gemini TTS.
       
      optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enableTextnorm to set.
      Returns:
      This builder for chaining.
    • clearEnableTextnorm

      public AdvancedVoiceOptions.Builder clearEnableTextnorm()
       Optional. If true, textnorm will be applied to text input. This feature is
       enabled by default. Only applies for Gemini TTS.
       
      optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.