Package com.google.cloud.texttospeech.v1
Class StreamingSynthesisInput.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamingSynthesisInput.Builder>
com.google.cloud.texttospeech.v1.StreamingSynthesisInput.Builder
- All Implemented Interfaces:
StreamingSynthesisInputOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamingSynthesisInput
public static final class StreamingSynthesisInput.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StreamingSynthesisInput.Builder>
implements StreamingSynthesisInputOrBuilder
Input to be synthesized.Protobuf type
google.cloud.texttospeech.v1.StreamingSynthesisInput-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Markup for Chirp 3: HD voices specifically.Multi-speaker markup for Gemini TTS.This is system instruction supported only for controllable voice models.The raw text to be synthesized.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorMarkup for Chirp 3: HD voices specifically.com.google.protobuf.ByteStringMarkup for Chirp 3: HD voices specifically.Multi-speaker markup for Gemini TTS.Multi-speaker markup for Gemini TTS.Multi-speaker markup for Gemini TTS.This is system instruction supported only for controllable voice models.com.google.protobuf.ByteStringThis is system instruction supported only for controllable voice models.getText()The raw text to be synthesized.com.google.protobuf.ByteStringThe raw text to be synthesized.booleanMarkup for Chirp 3: HD voices specifically.booleanMulti-speaker markup for Gemini TTS.booleanThis is system instruction supported only for controllable voice models.booleanhasText()The raw text to be synthesized.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(StreamingSynthesisInput other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Multi-speaker markup for Gemini TTS.Markup for Chirp 3: HD voices specifically.setMarkupBytes(com.google.protobuf.ByteString value) Markup for Chirp 3: HD voices specifically.Multi-speaker markup for Gemini TTS.setMultiSpeakerMarkup(MultiSpeakerMarkup.Builder builderForValue) Multi-speaker markup for Gemini TTS.This is system instruction supported only for controllable voice models.setPromptBytes(com.google.protobuf.ByteString value) This is system instruction supported only for controllable voice models.The raw text to be synthesized.setTextBytes(com.google.protobuf.ByteString value) The raw text to be synthesized.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StreamingSynthesisInput.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StreamingSynthesisInput.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StreamingSynthesisInput.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingSynthesisInput.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StreamingSynthesisInput.Builder>
-
mergeFrom
public StreamingSynthesisInput.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingSynthesisInput.Builder>- Throws:
IOException
-
getInputSourceCase
- Specified by:
getInputSourceCasein interfaceStreamingSynthesisInputOrBuilder
-
clearInputSource
-
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:
hasTextin interfaceStreamingSynthesisInputOrBuilder- Returns:
- Whether the text field is set.
-
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:
getTextin interfaceStreamingSynthesisInputOrBuilder- 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:
getTextBytesin interfaceStreamingSynthesisInputOrBuilder- Returns:
- The bytes for text.
-
setText
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;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
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;- Returns:
- This builder for chaining.
-
setTextBytes
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;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
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:
hasMarkupin interfaceStreamingSynthesisInputOrBuilder- Returns:
- Whether the markup field is set.
-
getMarkup
Markup for Chirp 3: HD voices specifically. This field may not be used with any other voices.
string markup = 5;- Specified by:
getMarkupin interfaceStreamingSynthesisInputOrBuilder- 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:
getMarkupBytesin interfaceStreamingSynthesisInputOrBuilder- Returns:
- The bytes for markup.
-
setMarkup
Markup for Chirp 3: HD voices specifically. This field may not be used with any other voices.
string markup = 5;- Parameters:
value- The markup to set.- Returns:
- This builder for chaining.
-
clearMarkup
Markup for Chirp 3: HD voices specifically. This field may not be used with any other voices.
string markup = 5;- Returns:
- This builder for chaining.
-
setMarkupBytes
Markup for Chirp 3: HD voices specifically. This field may not be used with any other voices.
string markup = 5;- Parameters:
value- The bytes for markup to set.- Returns:
- This builder for chaining.
-
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:
hasMultiSpeakerMarkupin interfaceStreamingSynthesisInputOrBuilder- Returns:
- Whether the multiSpeakerMarkup field is set.
-
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:
getMultiSpeakerMarkupin interfaceStreamingSynthesisInputOrBuilder- Returns:
- The multiSpeakerMarkup.
-
setMultiSpeakerMarkup
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; -
setMultiSpeakerMarkup
public StreamingSynthesisInput.Builder setMultiSpeakerMarkup(MultiSpeakerMarkup.Builder builderForValue) 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; -
mergeMultiSpeakerMarkup
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; -
clearMultiSpeakerMarkup
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; -
getMultiSpeakerMarkupBuilder
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; -
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:
getMultiSpeakerMarkupOrBuilderin interfaceStreamingSynthesisInputOrBuilder
-
hasPrompt
public boolean hasPrompt()This is system instruction supported only for controllable voice models.
optional string prompt = 6;- Specified by:
hasPromptin interfaceStreamingSynthesisInputOrBuilder- Returns:
- Whether the prompt field is set.
-
getPrompt
This is system instruction supported only for controllable voice models.
optional string prompt = 6;- Specified by:
getPromptin interfaceStreamingSynthesisInputOrBuilder- 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:
getPromptBytesin interfaceStreamingSynthesisInputOrBuilder- Returns:
- The bytes for prompt.
-
setPrompt
This is system instruction supported only for controllable voice models.
optional string prompt = 6;- Parameters:
value- The prompt to set.- Returns:
- This builder for chaining.
-
clearPrompt
This is system instruction supported only for controllable voice models.
optional string prompt = 6;- Returns:
- This builder for chaining.
-
setPromptBytes
This is system instruction supported only for controllable voice models.
optional string prompt = 6;- Parameters:
value- The bytes for prompt to set.- Returns:
- This builder for chaining.
-