Class StreamingSynthesisInput

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

@Generated public final class StreamingSynthesisInput extends com.google.protobuf.GeneratedMessage implements StreamingSynthesisInputOrBuilder
 Input to be synthesized.
 
Protobuf type google.cloud.texttospeech.v1.StreamingSynthesisInput
See Also:
  • Field Details

  • 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
    • getInputSourceCase

      public StreamingSynthesisInput.InputSourceCase getInputSourceCase()
      Specified by:
      getInputSourceCase in interface StreamingSynthesisInputOrBuilder
    • hasText

      public boolean hasText()
       The raw text to be synthesized. It is recommended that each input
       contains complete, terminating sentences, which results in better prosody
       in the output audio.
       
      string text = 1;
      Specified by:
      hasText in interface StreamingSynthesisInputOrBuilder
      Returns:
      Whether the text field is set.
    • getText

      public String getText()
       The raw text to be synthesized. It is recommended that each input
       contains complete, terminating sentences, which results in better prosody
       in the output audio.
       
      string text = 1;
      Specified by:
      getText in interface StreamingSynthesisInputOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       The raw text to be synthesized. It is recommended that each input
       contains complete, terminating sentences, which results in better prosody
       in the output audio.
       
      string text = 1;
      Specified by:
      getTextBytes in interface StreamingSynthesisInputOrBuilder
      Returns:
      The bytes for text.
    • hasMarkup

      public boolean hasMarkup()
       Markup for Chirp 3: HD voices specifically. This field may not be used
       with any other voices.
       
      string markup = 5;
      Specified by:
      hasMarkup in interface StreamingSynthesisInputOrBuilder
      Returns:
      Whether the markup field is set.
    • getMarkup

      public String getMarkup()
       Markup for Chirp 3: HD voices specifically. This field may not be used
       with any other voices.
       
      string markup = 5;
      Specified by:
      getMarkup in interface StreamingSynthesisInputOrBuilder
      Returns:
      The markup.
    • getMarkupBytes

      public com.google.protobuf.ByteString getMarkupBytes()
       Markup for Chirp 3: HD voices specifically. This field may not be used
       with any other voices.
       
      string markup = 5;
      Specified by:
      getMarkupBytes in interface StreamingSynthesisInputOrBuilder
      Returns:
      The bytes for markup.
    • hasMultiSpeakerMarkup

      public boolean hasMultiSpeakerMarkup()
       Multi-speaker markup for Gemini TTS. This field may not
       be used with any other voices.
       
      .google.cloud.texttospeech.v1.MultiSpeakerMarkup multi_speaker_markup = 7;
      Specified by:
      hasMultiSpeakerMarkup in interface StreamingSynthesisInputOrBuilder
      Returns:
      Whether the multiSpeakerMarkup field is set.
    • getMultiSpeakerMarkup

      public MultiSpeakerMarkup getMultiSpeakerMarkup()
       Multi-speaker markup for Gemini TTS. This field may not
       be used with any other voices.
       
      .google.cloud.texttospeech.v1.MultiSpeakerMarkup multi_speaker_markup = 7;
      Specified by:
      getMultiSpeakerMarkup in interface StreamingSynthesisInputOrBuilder
      Returns:
      The multiSpeakerMarkup.
    • getMultiSpeakerMarkupOrBuilder

      public MultiSpeakerMarkupOrBuilder getMultiSpeakerMarkupOrBuilder()
       Multi-speaker markup for Gemini TTS. This field may not
       be used with any other voices.
       
      .google.cloud.texttospeech.v1.MultiSpeakerMarkup multi_speaker_markup = 7;
      Specified by:
      getMultiSpeakerMarkupOrBuilder in interface StreamingSynthesisInputOrBuilder
    • hasPrompt

      public boolean hasPrompt()
       This is system instruction supported only for controllable voice models.
       
      optional string prompt = 6;
      Specified by:
      hasPrompt in interface StreamingSynthesisInputOrBuilder
      Returns:
      Whether the prompt field is set.
    • getPrompt

      public String getPrompt()
       This is system instruction supported only for controllable voice models.
       
      optional string prompt = 6;
      Specified by:
      getPrompt in interface StreamingSynthesisInputOrBuilder
      Returns:
      The prompt.
    • getPromptBytes

      public com.google.protobuf.ByteString getPromptBytes()
       This is system instruction supported only for controllable voice models.
       
      optional string prompt = 6;
      Specified by:
      getPromptBytes in interface StreamingSynthesisInputOrBuilder
      Returns:
      The bytes for prompt.
    • 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 StreamingSynthesisInput parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static StreamingSynthesisInput.Builder newBuilder()
    • newBuilder

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

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

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

      public static StreamingSynthesisInput getDefaultInstance()
    • parser

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

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