Class ReplicatedVoiceConfig.Builder

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

public static final class ReplicatedVoiceConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReplicatedVoiceConfig.Builder> implements ReplicatedVoiceConfigOrBuilder
 The configuration for the replicated voice to use.
 
Protobuf type google.cloud.aiplatform.v1.ReplicatedVoiceConfig
  • 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<ReplicatedVoiceConfig.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<ReplicatedVoiceConfig.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<ReplicatedVoiceConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ReplicatedVoiceConfig.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<ReplicatedVoiceConfig.Builder>
      Throws:
      IOException
    • getMimeType

      public String getMimeType()
       Optional. The mimetype of the voice sample. The only currently supported
       value is `audio/wav`. This represents 16-bit signed little-endian wav data,
       with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
       set.
       
      string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMimeType in interface ReplicatedVoiceConfigOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       Optional. The mimetype of the voice sample. The only currently supported
       value is `audio/wav`. This represents 16-bit signed little-endian wav data,
       with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
       set.
       
      string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMimeTypeBytes in interface ReplicatedVoiceConfigOrBuilder
      Returns:
      The bytes for mimeType.
    • setMimeType

      public ReplicatedVoiceConfig.Builder setMimeType(String value)
       Optional. The mimetype of the voice sample. The only currently supported
       value is `audio/wav`. This represents 16-bit signed little-endian wav data,
       with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
       set.
       
      string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

      public ReplicatedVoiceConfig.Builder clearMimeType()
       Optional. The mimetype of the voice sample. The only currently supported
       value is `audio/wav`. This represents 16-bit signed little-endian wav data,
       with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
       set.
       
      string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setMimeTypeBytes

      public ReplicatedVoiceConfig.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
       Optional. The mimetype of the voice sample. The only currently supported
       value is `audio/wav`. This represents 16-bit signed little-endian wav data,
       with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
       set.
       
      string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for mimeType to set.
      Returns:
      This builder for chaining.
    • getVoiceSampleAudio

      public com.google.protobuf.ByteString getVoiceSampleAudio()
       Optional. The sample of the custom voice.
       
      bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVoiceSampleAudio in interface ReplicatedVoiceConfigOrBuilder
      Returns:
      The voiceSampleAudio.
    • setVoiceSampleAudio

      public ReplicatedVoiceConfig.Builder setVoiceSampleAudio(com.google.protobuf.ByteString value)
       Optional. The sample of the custom voice.
       
      bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The voiceSampleAudio to set.
      Returns:
      This builder for chaining.
    • clearVoiceSampleAudio

      public ReplicatedVoiceConfig.Builder clearVoiceSampleAudio()
       Optional. The sample of the custom voice.
       
      bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.