Class StreamingSynthesizeConfig.Builder

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

public static final class StreamingSynthesizeConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<StreamingSynthesizeConfig.Builder> implements StreamingSynthesizeConfigOrBuilder
 Provides configuration information for the StreamingSynthesize request.
 
Protobuf type google.cloud.texttospeech.v1.StreamingSynthesizeConfig
  • 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<StreamingSynthesizeConfig.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<StreamingSynthesizeConfig.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<StreamingSynthesizeConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public StreamingSynthesizeConfig.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<StreamingSynthesizeConfig.Builder>
      Throws:
      IOException
    • hasVoice

      public boolean hasVoice()
       Required. The desired voice of the synthesized audio.
       
      .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasVoice in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      Whether the voice field is set.
    • getVoice

      public VoiceSelectionParams getVoice()
       Required. The desired voice of the synthesized audio.
       
      .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVoice in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      The voice.
    • setVoice

       Required. The desired voice of the synthesized audio.
       
      .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];
    • setVoice

       Required. The desired voice of the synthesized audio.
       
      .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeVoice

       Required. The desired voice of the synthesized audio.
       
      .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearVoice

      public StreamingSynthesizeConfig.Builder clearVoice()
       Required. The desired voice of the synthesized audio.
       
      .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];
    • getVoiceBuilder

      public VoiceSelectionParams.Builder getVoiceBuilder()
       Required. The desired voice of the synthesized audio.
       
      .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];
    • getVoiceOrBuilder

      public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
       Required. The desired voice of the synthesized audio.
       
      .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVoiceOrBuilder in interface StreamingSynthesizeConfigOrBuilder
    • hasStreamingAudioConfig

      public boolean hasStreamingAudioConfig()
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStreamingAudioConfig in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      Whether the streamingAudioConfig field is set.
    • getStreamingAudioConfig

      public StreamingAudioConfig getStreamingAudioConfig()
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStreamingAudioConfig in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      The streamingAudioConfig.
    • setStreamingAudioConfig

      public StreamingSynthesizeConfig.Builder setStreamingAudioConfig(StreamingAudioConfig value)
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setStreamingAudioConfig

      public StreamingSynthesizeConfig.Builder setStreamingAudioConfig(StreamingAudioConfig.Builder builderForValue)
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeStreamingAudioConfig

      public StreamingSynthesizeConfig.Builder mergeStreamingAudioConfig(StreamingAudioConfig value)
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearStreamingAudioConfig

      public StreamingSynthesizeConfig.Builder clearStreamingAudioConfig()
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getStreamingAudioConfigBuilder

      public StreamingAudioConfig.Builder getStreamingAudioConfigBuilder()
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getStreamingAudioConfigOrBuilder

      public StreamingAudioConfigOrBuilder getStreamingAudioConfigOrBuilder()
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStreamingAudioConfigOrBuilder in interface StreamingSynthesizeConfigOrBuilder
    • hasCustomPronunciations

      public boolean hasCustomPronunciations()
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCustomPronunciations in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      Whether the customPronunciations field is set.
    • getCustomPronunciations

      public CustomPronunciations getCustomPronunciations()
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomPronunciations in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      The customPronunciations.
    • setCustomPronunciations

      public StreamingSynthesizeConfig.Builder setCustomPronunciations(CustomPronunciations value)
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setCustomPronunciations

      public StreamingSynthesizeConfig.Builder setCustomPronunciations(CustomPronunciations.Builder builderForValue)
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCustomPronunciations

      public StreamingSynthesizeConfig.Builder mergeCustomPronunciations(CustomPronunciations value)
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearCustomPronunciations

      public StreamingSynthesizeConfig.Builder clearCustomPronunciations()
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomPronunciationsBuilder

      public CustomPronunciations.Builder getCustomPronunciationsBuilder()
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomPronunciationsOrBuilder

      public CustomPronunciationsOrBuilder getCustomPronunciationsOrBuilder()
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomPronunciationsOrBuilder in interface StreamingSynthesizeConfigOrBuilder
    • hasAdvancedVoiceOptions

      public boolean hasAdvancedVoiceOptions()
       Optional. Advanced voice options.
       
      optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAdvancedVoiceOptions in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      Whether the advancedVoiceOptions field is set.
    • getAdvancedVoiceOptions

      public AdvancedVoiceOptions getAdvancedVoiceOptions()
       Optional. Advanced voice options.
       
      optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdvancedVoiceOptions in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      The advancedVoiceOptions.
    • setAdvancedVoiceOptions

      public StreamingSynthesizeConfig.Builder setAdvancedVoiceOptions(AdvancedVoiceOptions value)
       Optional. Advanced voice options.
       
      optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setAdvancedVoiceOptions

      public StreamingSynthesizeConfig.Builder setAdvancedVoiceOptions(AdvancedVoiceOptions.Builder builderForValue)
       Optional. Advanced voice options.
       
      optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAdvancedVoiceOptions

      public StreamingSynthesizeConfig.Builder mergeAdvancedVoiceOptions(AdvancedVoiceOptions value)
       Optional. Advanced voice options.
       
      optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearAdvancedVoiceOptions

      public StreamingSynthesizeConfig.Builder clearAdvancedVoiceOptions()
       Optional. Advanced voice options.
       
      optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getAdvancedVoiceOptionsBuilder

      public AdvancedVoiceOptions.Builder getAdvancedVoiceOptionsBuilder()
       Optional. Advanced voice options.
       
      optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getAdvancedVoiceOptionsOrBuilder

      public AdvancedVoiceOptionsOrBuilder getAdvancedVoiceOptionsOrBuilder()
       Optional. Advanced voice options.
       
      optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdvancedVoiceOptionsOrBuilder in interface StreamingSynthesizeConfigOrBuilder