Class SpeechConfig.Builder

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

public static final class SpeechConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder> implements SpeechConfigOrBuilder
 Configuration for speech generation.
 
Protobuf type google.cloud.aiplatform.v1.SpeechConfig
  • 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<SpeechConfig.Builder>
    • clear

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

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

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

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

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

      public SpeechConfig.Builder mergeFrom(SpeechConfig other)
    • isInitialized

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

      public SpeechConfig.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<SpeechConfig.Builder>
      Throws:
      IOException
    • hasVoiceConfig

      public boolean hasVoiceConfig()
       The configuration for the voice to use.
       
      .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
      Specified by:
      hasVoiceConfig in interface SpeechConfigOrBuilder
      Returns:
      Whether the voiceConfig field is set.
    • getVoiceConfig

      public VoiceConfig getVoiceConfig()
       The configuration for the voice to use.
       
      .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
      Specified by:
      getVoiceConfig in interface SpeechConfigOrBuilder
      Returns:
      The voiceConfig.
    • setVoiceConfig

      public SpeechConfig.Builder setVoiceConfig(VoiceConfig value)
       The configuration for the voice to use.
       
      .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
    • setVoiceConfig

      public SpeechConfig.Builder setVoiceConfig(VoiceConfig.Builder builderForValue)
       The configuration for the voice to use.
       
      .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
    • mergeVoiceConfig

      public SpeechConfig.Builder mergeVoiceConfig(VoiceConfig value)
       The configuration for the voice to use.
       
      .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
    • clearVoiceConfig

      public SpeechConfig.Builder clearVoiceConfig()
       The configuration for the voice to use.
       
      .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
    • getVoiceConfigBuilder

      public VoiceConfig.Builder getVoiceConfigBuilder()
       The configuration for the voice to use.
       
      .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
    • getVoiceConfigOrBuilder

      public VoiceConfigOrBuilder getVoiceConfigOrBuilder()
       The configuration for the voice to use.
       
      .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
      Specified by:
      getVoiceConfigOrBuilder in interface SpeechConfigOrBuilder
    • getLanguageCode

      public String getLanguageCode()
       Optional. The language code (ISO 639-1) for the speech synthesis.
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface SpeechConfigOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Optional. The language code (ISO 639-1) for the speech synthesis.
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface SpeechConfigOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public SpeechConfig.Builder setLanguageCode(String value)
       Optional. The language code (ISO 639-1) for the speech synthesis.
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public SpeechConfig.Builder clearLanguageCode()
       Optional. The language code (ISO 639-1) for the speech synthesis.
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public SpeechConfig.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       Optional. The language code (ISO 639-1) for the speech synthesis.
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • hasMultiSpeakerVoiceConfig

      public boolean hasMultiSpeakerVoiceConfig()
       The configuration for a multi-speaker text-to-speech request.
       This field is mutually exclusive with `voice_config`.
       
      .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
      Specified by:
      hasMultiSpeakerVoiceConfig in interface SpeechConfigOrBuilder
      Returns:
      Whether the multiSpeakerVoiceConfig field is set.
    • getMultiSpeakerVoiceConfig

      public MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig()
       The configuration for a multi-speaker text-to-speech request.
       This field is mutually exclusive with `voice_config`.
       
      .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
      Specified by:
      getMultiSpeakerVoiceConfig in interface SpeechConfigOrBuilder
      Returns:
      The multiSpeakerVoiceConfig.
    • setMultiSpeakerVoiceConfig

      public SpeechConfig.Builder setMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig value)
       The configuration for a multi-speaker text-to-speech request.
       This field is mutually exclusive with `voice_config`.
       
      .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
    • setMultiSpeakerVoiceConfig

      public SpeechConfig.Builder setMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig.Builder builderForValue)
       The configuration for a multi-speaker text-to-speech request.
       This field is mutually exclusive with `voice_config`.
       
      .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
    • mergeMultiSpeakerVoiceConfig

      public SpeechConfig.Builder mergeMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig value)
       The configuration for a multi-speaker text-to-speech request.
       This field is mutually exclusive with `voice_config`.
       
      .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
    • clearMultiSpeakerVoiceConfig

      public SpeechConfig.Builder clearMultiSpeakerVoiceConfig()
       The configuration for a multi-speaker text-to-speech request.
       This field is mutually exclusive with `voice_config`.
       
      .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
    • getMultiSpeakerVoiceConfigBuilder

      public MultiSpeakerVoiceConfig.Builder getMultiSpeakerVoiceConfigBuilder()
       The configuration for a multi-speaker text-to-speech request.
       This field is mutually exclusive with `voice_config`.
       
      .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
    • getMultiSpeakerVoiceConfigOrBuilder

      public MultiSpeakerVoiceConfigOrBuilder getMultiSpeakerVoiceConfigOrBuilder()
       The configuration for a multi-speaker text-to-speech request.
       This field is mutually exclusive with `voice_config`.
       
      .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
      Specified by:
      getMultiSpeakerVoiceConfigOrBuilder in interface SpeechConfigOrBuilder