Class StreamingSynthesizeConfig

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

@Generated public final class StreamingSynthesizeConfig extends com.google.protobuf.GeneratedMessage implements StreamingSynthesizeConfigOrBuilder
 Provides configuration information for the StreamingSynthesize request.
 
Protobuf type google.cloud.texttospeech.v1.StreamingSynthesizeConfig
See Also:
  • Field Details

    • VOICE_FIELD_NUMBER

      public static final int VOICE_FIELD_NUMBER
      See Also:
    • STREAMING_AUDIO_CONFIG_FIELD_NUMBER

      public static final int STREAMING_AUDIO_CONFIG_FIELD_NUMBER
      See Also:
    • CUSTOM_PRONUNCIATIONS_FIELD_NUMBER

      public static final int CUSTOM_PRONUNCIATIONS_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
    • hasVoice

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

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

      public boolean hasStreamingAudioConfig()
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStreamingAudioConfig in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      Whether the streamingAudioConfig field is set.
    • getStreamingAudioConfig

      public StreamingAudioConfig getStreamingAudioConfig()
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStreamingAudioConfig in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      The streamingAudioConfig.
    • getStreamingAudioConfigOrBuilder

      public StreamingAudioConfigOrBuilder getStreamingAudioConfigOrBuilder()
       Optional. The configuration of the synthesized audio.
       
      .google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStreamingAudioConfigOrBuilder in interface StreamingSynthesizeConfigOrBuilder
    • hasCustomPronunciations

      public boolean hasCustomPronunciations()
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCustomPronunciations in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      Whether the customPronunciations field is set.
    • getCustomPronunciations

      public CustomPronunciations getCustomPronunciations()
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomPronunciations in interface StreamingSynthesizeConfigOrBuilder
      Returns:
      The customPronunciations.
    • getCustomPronunciationsOrBuilder

      public CustomPronunciationsOrBuilder getCustomPronunciationsOrBuilder()
       Optional. The pronunciation customizations are applied to the input. If
       this is set, the input is synthesized using the given pronunciation
       customizations.
      
       The initial support is for en-us, with plans to expand to other locales in
       the future. Instant Clone voices aren't supported.
      
       In order to customize the pronunciation of a phrase, there must be an exact
       match of the phrase in the input types. If using SSML, the phrase must not
       be inside a phoneme tag.
       
      .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomPronunciationsOrBuilder in interface StreamingSynthesizeConfigOrBuilder
    • hasAdvancedVoiceOptions

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

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

      public AdvancedVoiceOptionsOrBuilder getAdvancedVoiceOptionsOrBuilder()
       Optional. Advanced voice options.
       
      optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdvancedVoiceOptionsOrBuilder in interface StreamingSynthesizeConfigOrBuilder
    • 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 StreamingSynthesizeConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static StreamingSynthesizeConfig.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static StreamingSynthesizeConfig getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<StreamingSynthesizeConfig> 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 StreamingSynthesizeConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder