Class SynthesizeSpeechRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest
All Implemented Interfaces:
SynthesizeSpeechRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SynthesizeSpeechRequest extends com.google.protobuf.GeneratedMessage implements SynthesizeSpeechRequestOrBuilder
 The top-level message sent by the client for the `SynthesizeSpeech` method.
 
Protobuf type google.cloud.texttospeech.v1.SynthesizeSpeechRequest
See Also:
  • Field Details

    • INPUT_FIELD_NUMBER

      public static final int INPUT_FIELD_NUMBER
      See Also:
    • VOICE_FIELD_NUMBER

      public static final int VOICE_FIELD_NUMBER
      See Also:
    • AUDIO_CONFIG_FIELD_NUMBER

      public static final int AUDIO_CONFIG_FIELD_NUMBER
      See Also:
    • ADVANCED_VOICE_OPTIONS_FIELD_NUMBER

      public static final int ADVANCED_VOICE_OPTIONS_FIELD_NUMBER
      See Also:
  • 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
    • hasInput

      public boolean hasInput()
       Required. The Synthesizer requires either plain text or SSML as input.
       
      .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInput in interface SynthesizeSpeechRequestOrBuilder
      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 = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInput in interface SynthesizeSpeechRequestOrBuilder
      Returns:
      The input.
    • getInputOrBuilder

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

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

      public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
       Required. The desired voice of the synthesized audio.
       
      .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVoiceOrBuilder in interface SynthesizeSpeechRequestOrBuilder
    • 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 SynthesizeSpeechRequestOrBuilder
      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 SynthesizeSpeechRequestOrBuilder
      Returns:
      The audioConfig.
    • 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 SynthesizeSpeechRequestOrBuilder
    • hasAdvancedVoiceOptions

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

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

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SynthesizeSpeechRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SynthesizeSpeechRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SynthesizeSpeechRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SynthesizeSpeechRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SynthesizeSpeechRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SynthesizeSpeechRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SynthesizeSpeechRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SynthesizeSpeechRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SynthesizeSpeechRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SynthesizeSpeechRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SynthesizeSpeechRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SynthesizeSpeechRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SynthesizeSpeechRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SynthesizeSpeechRequest.Builder newBuilder()
    • newBuilder

      public static SynthesizeSpeechRequest.Builder newBuilder(SynthesizeSpeechRequest prototype)
    • toBuilder

      public SynthesizeSpeechRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SynthesizeSpeechRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SynthesizeSpeechRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SynthesizeSpeechRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<SynthesizeSpeechRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SynthesizeSpeechRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder