Class SynthesizeLongAudioRequest.Builder

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

public static final class SynthesizeLongAudioRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SynthesizeLongAudioRequest.Builder> implements SynthesizeLongAudioRequestOrBuilder
 The top-level message sent by the client for the
 `SynthesizeLongAudio` method.
 
Protobuf type google.cloud.texttospeech.v1.SynthesizeLongAudioRequest
  • 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<SynthesizeLongAudioRequest.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<SynthesizeLongAudioRequest.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<SynthesizeLongAudioRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public SynthesizeLongAudioRequest.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<SynthesizeLongAudioRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       The resource states of the request in the form of
       `projects/*/locations/*`.
       
      string parent = 1;
      Specified by:
      getParent in interface SynthesizeLongAudioRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       The resource states of the request in the form of
       `projects/*/locations/*`.
       
      string parent = 1;
      Specified by:
      getParentBytes in interface SynthesizeLongAudioRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public SynthesizeLongAudioRequest.Builder setParent(String value)
       The resource states of the request in the form of
       `projects/*/locations/*`.
       
      string parent = 1;
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public SynthesizeLongAudioRequest.Builder clearParent()
       The resource states of the request in the form of
       `projects/*/locations/*`.
       
      string parent = 1;
      Returns:
      This builder for chaining.
    • setParentBytes

      public SynthesizeLongAudioRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       The resource states of the request in the form of
       `projects/*/locations/*`.
       
      string parent = 1;
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasInput

      public boolean hasInput()
       Required. The Synthesizer requires either plain text or SSML as input.
       
      .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInput in interface SynthesizeLongAudioRequestOrBuilder
      Returns:
      Whether the input field is set.
    • getInput

      public SynthesisInput getInput()
       Required. The Synthesizer requires either plain text or SSML as input.
       
      .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInput in interface SynthesizeLongAudioRequestOrBuilder
      Returns:
      The input.
    • setInput

       Required. The Synthesizer requires either plain text or SSML as input.
       
      .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
    • setInput

       Required. The Synthesizer requires either plain text or SSML as input.
       
      .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeInput

       Required. The Synthesizer requires either plain text or SSML as input.
       
      .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearInput

       Required. The Synthesizer requires either plain text or SSML as input.
       
      .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInputBuilder

      public SynthesisInput.Builder getInputBuilder()
       Required. The Synthesizer requires either plain text or SSML as input.
       
      .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInputOrBuilder

      public SynthesisInputOrBuilder getInputOrBuilder()
       Required. The Synthesizer requires either plain text or SSML as input.
       
      .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInputOrBuilder in interface SynthesizeLongAudioRequestOrBuilder
    • hasAudioConfig

      public boolean hasAudioConfig()
       Required. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAudioConfig in interface SynthesizeLongAudioRequestOrBuilder
      Returns:
      Whether the audioConfig field is set.
    • getAudioConfig

      public AudioConfig getAudioConfig()
       Required. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudioConfig in interface SynthesizeLongAudioRequestOrBuilder
      Returns:
      The audioConfig.
    • setAudioConfig

      public SynthesizeLongAudioRequest.Builder setAudioConfig(AudioConfig value)
       Required. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • setAudioConfig

      public SynthesizeLongAudioRequest.Builder setAudioConfig(AudioConfig.Builder builderForValue)
       Required. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeAudioConfig

      public SynthesizeLongAudioRequest.Builder mergeAudioConfig(AudioConfig value)
       Required. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearAudioConfig

      public SynthesizeLongAudioRequest.Builder clearAudioConfig()
       Required. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAudioConfigBuilder

      public AudioConfig.Builder getAudioConfigBuilder()
       Required. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAudioConfigOrBuilder

      public AudioConfigOrBuilder getAudioConfigOrBuilder()
       Required. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudioConfigOrBuilder in interface SynthesizeLongAudioRequestOrBuilder
    • getOutputGcsUri

      public String getOutputGcsUri()
       Required. Specifies a Cloud Storage URI for the synthesis results. Must be
       specified in the format: `gs://bucket_name/object_name`, and the bucket
       must already exist.
       
      string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutputGcsUri in interface SynthesizeLongAudioRequestOrBuilder
      Returns:
      The outputGcsUri.
    • getOutputGcsUriBytes

      public com.google.protobuf.ByteString getOutputGcsUriBytes()
       Required. Specifies a Cloud Storage URI for the synthesis results. Must be
       specified in the format: `gs://bucket_name/object_name`, and the bucket
       must already exist.
       
      string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutputGcsUriBytes in interface SynthesizeLongAudioRequestOrBuilder
      Returns:
      The bytes for outputGcsUri.
    • setOutputGcsUri

      public SynthesizeLongAudioRequest.Builder setOutputGcsUri(String value)
       Required. Specifies a Cloud Storage URI for the synthesis results. Must be
       specified in the format: `gs://bucket_name/object_name`, and the bucket
       must already exist.
       
      string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The outputGcsUri to set.
      Returns:
      This builder for chaining.
    • clearOutputGcsUri

      public SynthesizeLongAudioRequest.Builder clearOutputGcsUri()
       Required. Specifies a Cloud Storage URI for the synthesis results. Must be
       specified in the format: `gs://bucket_name/object_name`, and the bucket
       must already exist.
       
      string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setOutputGcsUriBytes

      public SynthesizeLongAudioRequest.Builder setOutputGcsUriBytes(com.google.protobuf.ByteString value)
       Required. Specifies a Cloud Storage URI for the synthesis results. Must be
       specified in the format: `gs://bucket_name/object_name`, and the bucket
       must already exist.
       
      string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for outputGcsUri to set.
      Returns:
      This builder for chaining.
    • hasVoice

      public boolean hasVoice()
       Required. The desired voice of the synthesized audio.
       
      .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasVoice in interface SynthesizeLongAudioRequestOrBuilder
      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 = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVoice in interface SynthesizeLongAudioRequestOrBuilder
      Returns:
      The voice.
    • setVoice

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

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

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

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

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

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