public static final class SynthesisInput.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder> implements SynthesisInputOrBuilder
Contains text input to be synthesized. Either `text` or `ssml` must be supplied. Supplying both or neither returns [google.rpc.Code.INVALID_ARGUMENT][]. The input size is limited to 5000 characters.Protobuf type
google.cloud.texttospeech.v1.SynthesisInput| Modifier and Type | Method and Description |
|---|---|
SynthesisInput.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SynthesisInput |
build() |
SynthesisInput |
buildPartial() |
SynthesisInput.Builder |
clear() |
SynthesisInput.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SynthesisInput.Builder |
clearInputSource() |
SynthesisInput.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SynthesisInput.Builder |
clearSsml()
The SSML document to be synthesized.
|
SynthesisInput.Builder |
clearText()
The raw text to be synthesized.
|
SynthesisInput.Builder |
clone() |
SynthesisInput |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
SynthesisInput.InputSourceCase |
getInputSourceCase() |
String |
getSsml()
The SSML document to be synthesized.
|
com.google.protobuf.ByteString |
getSsmlBytes()
The SSML document to be synthesized.
|
String |
getText()
The raw text to be synthesized.
|
com.google.protobuf.ByteString |
getTextBytes()
The raw text to be synthesized.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SynthesisInput.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SynthesisInput.Builder |
mergeFrom(com.google.protobuf.Message other) |
SynthesisInput.Builder |
mergeFrom(SynthesisInput other) |
SynthesisInput.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SynthesisInput.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SynthesisInput.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SynthesisInput.Builder |
setSsml(String value)
The SSML document to be synthesized.
|
SynthesisInput.Builder |
setSsmlBytes(com.google.protobuf.ByteString value)
The SSML document to be synthesized.
|
SynthesisInput.Builder |
setText(String value)
The raw text to be synthesized.
|
SynthesisInput.Builder |
setTextBytes(com.google.protobuf.ByteString value)
The raw text to be synthesized.
|
SynthesisInput.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public SynthesisInput.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public SynthesisInput getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SynthesisInput build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SynthesisInput buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SynthesisInput.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public SynthesisInput.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public SynthesisInput.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public SynthesisInput.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public SynthesisInput.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public SynthesisInput.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public SynthesisInput.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SynthesisInput.Builder>public SynthesisInput.Builder mergeFrom(SynthesisInput other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public SynthesisInput.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SynthesisInput.Builder>IOExceptionpublic SynthesisInput.InputSourceCase getInputSourceCase()
getInputSourceCase in interface SynthesisInputOrBuilderpublic SynthesisInput.Builder clearInputSource()
public String getText()
The raw text to be synthesized.
string text = 1;getText in interface SynthesisInputOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
The raw text to be synthesized.
string text = 1;getTextBytes in interface SynthesisInputOrBuilderpublic SynthesisInput.Builder setText(String value)
The raw text to be synthesized.
string text = 1;value - The text to set.public SynthesisInput.Builder clearText()
The raw text to be synthesized.
string text = 1;public SynthesisInput.Builder setTextBytes(com.google.protobuf.ByteString value)
The raw text to be synthesized.
string text = 1;value - The bytes for text to set.public String getSsml()
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return [google.rpc.Code.INVALID_ARGUMENT][]. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
string ssml = 2;getSsml in interface SynthesisInputOrBuilderpublic com.google.protobuf.ByteString getSsmlBytes()
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return [google.rpc.Code.INVALID_ARGUMENT][]. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
string ssml = 2;getSsmlBytes in interface SynthesisInputOrBuilderpublic SynthesisInput.Builder setSsml(String value)
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return [google.rpc.Code.INVALID_ARGUMENT][]. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
string ssml = 2;value - The ssml to set.public SynthesisInput.Builder clearSsml()
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return [google.rpc.Code.INVALID_ARGUMENT][]. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
string ssml = 2;public SynthesisInput.Builder setSsmlBytes(com.google.protobuf.ByteString value)
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return [google.rpc.Code.INVALID_ARGUMENT][]. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
string ssml = 2;value - The bytes for ssml to set.public final SynthesisInput.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>public final SynthesisInput.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesisInput.Builder>Copyright © 2021 Google LLC. All rights reserved.