Class SynthesizeSpeechResponse.Builder

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

public static final class SynthesizeSpeechResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<SynthesizeSpeechResponse.Builder> implements SynthesizeSpeechResponseOrBuilder
 The message returned to the client by the `SynthesizeSpeech` method.
 
Protobuf type google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse
  • 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<SynthesizeSpeechResponse.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<SynthesizeSpeechResponse.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<SynthesizeSpeechResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SynthesizeSpeechResponse.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<SynthesizeSpeechResponse.Builder>
      Throws:
      IOException
    • getAudioContent

      public com.google.protobuf.ByteString getAudioContent()
       The audio data bytes encoded as specified in the request, including the
       header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
       For LINEAR16 audio, we include the WAV header. Note: as
       with all bytes fields, protobuffers use a pure binary representation,
       whereas JSON representations use base64.
       
      bytes audio_content = 1;
      Specified by:
      getAudioContent in interface SynthesizeSpeechResponseOrBuilder
      Returns:
      The audioContent.
    • setAudioContent

      public SynthesizeSpeechResponse.Builder setAudioContent(com.google.protobuf.ByteString value)
       The audio data bytes encoded as specified in the request, including the
       header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
       For LINEAR16 audio, we include the WAV header. Note: as
       with all bytes fields, protobuffers use a pure binary representation,
       whereas JSON representations use base64.
       
      bytes audio_content = 1;
      Parameters:
      value - The audioContent to set.
      Returns:
      This builder for chaining.
    • clearAudioContent

      public SynthesizeSpeechResponse.Builder clearAudioContent()
       The audio data bytes encoded as specified in the request, including the
       header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
       For LINEAR16 audio, we include the WAV header. Note: as
       with all bytes fields, protobuffers use a pure binary representation,
       whereas JSON representations use base64.
       
      bytes audio_content = 1;
      Returns:
      This builder for chaining.
    • getTimepointsList

      public List<Timepoint> getTimepointsList()
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      Specified by:
      getTimepointsList in interface SynthesizeSpeechResponseOrBuilder
    • getTimepointsCount

      public int getTimepointsCount()
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      Specified by:
      getTimepointsCount in interface SynthesizeSpeechResponseOrBuilder
    • getTimepoints

      public Timepoint getTimepoints(int index)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      Specified by:
      getTimepoints in interface SynthesizeSpeechResponseOrBuilder
    • setTimepoints

      public SynthesizeSpeechResponse.Builder setTimepoints(int index, Timepoint value)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • setTimepoints

      public SynthesizeSpeechResponse.Builder setTimepoints(int index, Timepoint.Builder builderForValue)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • addTimepoints

      public SynthesizeSpeechResponse.Builder addTimepoints(Timepoint value)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • addTimepoints

      public SynthesizeSpeechResponse.Builder addTimepoints(int index, Timepoint value)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • addTimepoints

      public SynthesizeSpeechResponse.Builder addTimepoints(Timepoint.Builder builderForValue)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • addTimepoints

      public SynthesizeSpeechResponse.Builder addTimepoints(int index, Timepoint.Builder builderForValue)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • addAllTimepoints

      public SynthesizeSpeechResponse.Builder addAllTimepoints(Iterable<? extends Timepoint> values)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • clearTimepoints

      public SynthesizeSpeechResponse.Builder clearTimepoints()
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • removeTimepoints

      public SynthesizeSpeechResponse.Builder removeTimepoints(int index)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • getTimepointsBuilder

      public Timepoint.Builder getTimepointsBuilder(int index)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • getTimepointsOrBuilder

      public TimepointOrBuilder getTimepointsOrBuilder(int index)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      Specified by:
      getTimepointsOrBuilder in interface SynthesizeSpeechResponseOrBuilder
    • getTimepointsOrBuilderList

      public List<? extends TimepointOrBuilder> getTimepointsOrBuilderList()
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      Specified by:
      getTimepointsOrBuilderList in interface SynthesizeSpeechResponseOrBuilder
    • addTimepointsBuilder

      public Timepoint.Builder addTimepointsBuilder()
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • addTimepointsBuilder

      public Timepoint.Builder addTimepointsBuilder(int index)
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • getTimepointsBuilderList

      public List<Timepoint.Builder> getTimepointsBuilderList()
       A link between a position in the original request input and a corresponding
       time in the output audio. It's only supported via `<mark>` of SSML input.
       
      repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    • hasAudioConfig

      public boolean hasAudioConfig()
       The audio metadata of `audio_content`.
       
      .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
      Specified by:
      hasAudioConfig in interface SynthesizeSpeechResponseOrBuilder
      Returns:
      Whether the audioConfig field is set.
    • getAudioConfig

      public AudioConfig getAudioConfig()
       The audio metadata of `audio_content`.
       
      .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
      Specified by:
      getAudioConfig in interface SynthesizeSpeechResponseOrBuilder
      Returns:
      The audioConfig.
    • setAudioConfig

      public SynthesizeSpeechResponse.Builder setAudioConfig(AudioConfig value)
       The audio metadata of `audio_content`.
       
      .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
    • setAudioConfig

      public SynthesizeSpeechResponse.Builder setAudioConfig(AudioConfig.Builder builderForValue)
       The audio metadata of `audio_content`.
       
      .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
    • mergeAudioConfig

      public SynthesizeSpeechResponse.Builder mergeAudioConfig(AudioConfig value)
       The audio metadata of `audio_content`.
       
      .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
    • clearAudioConfig

      public SynthesizeSpeechResponse.Builder clearAudioConfig()
       The audio metadata of `audio_content`.
       
      .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
    • getAudioConfigBuilder

      public AudioConfig.Builder getAudioConfigBuilder()
       The audio metadata of `audio_content`.
       
      .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
    • getAudioConfigOrBuilder

      public AudioConfigOrBuilder getAudioConfigOrBuilder()
       The audio metadata of `audio_content`.
       
      .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;
      Specified by:
      getAudioConfigOrBuilder in interface SynthesizeSpeechResponseOrBuilder