public static final class CustomPronunciationParams.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CustomPronunciationParams.Builder> implements CustomPronunciationParamsOrBuilder
Pronunciation customization for a phrase.Protobuf type
google.cloud.texttospeech.v1.CustomPronunciationParams| Modifier and Type | Method and Description |
|---|---|
CustomPronunciationParams.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CustomPronunciationParams |
build() |
CustomPronunciationParams |
buildPartial() |
CustomPronunciationParams.Builder |
clear() |
CustomPronunciationParams.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CustomPronunciationParams.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CustomPronunciationParams.Builder |
clearPhoneticEncoding()
The phonetic encoding of the phrase.
|
CustomPronunciationParams.Builder |
clearPhrase()
The phrase to which the customization will be applied.
|
CustomPronunciationParams.Builder |
clearPronunciation()
The pronunciation of the phrase.
|
CustomPronunciationParams.Builder |
clone() |
CustomPronunciationParams |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
CustomPronunciationParams.PhoneticEncoding |
getPhoneticEncoding()
The phonetic encoding of the phrase.
|
int |
getPhoneticEncodingValue()
The phonetic encoding of the phrase.
|
String |
getPhrase()
The phrase to which the customization will be applied.
|
com.google.protobuf.ByteString |
getPhraseBytes()
The phrase to which the customization will be applied.
|
String |
getPronunciation()
The pronunciation of the phrase.
|
com.google.protobuf.ByteString |
getPronunciationBytes()
The pronunciation of the phrase.
|
boolean |
hasPhoneticEncoding()
The phonetic encoding of the phrase.
|
boolean |
hasPhrase()
The phrase to which the customization will be applied.
|
boolean |
hasPronunciation()
The pronunciation of the phrase.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CustomPronunciationParams.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CustomPronunciationParams.Builder |
mergeFrom(CustomPronunciationParams other) |
CustomPronunciationParams.Builder |
mergeFrom(com.google.protobuf.Message other) |
CustomPronunciationParams.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CustomPronunciationParams.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CustomPronunciationParams.Builder |
setPhoneticEncoding(CustomPronunciationParams.PhoneticEncoding value)
The phonetic encoding of the phrase.
|
CustomPronunciationParams.Builder |
setPhoneticEncodingValue(int value)
The phonetic encoding of the phrase.
|
CustomPronunciationParams.Builder |
setPhrase(String value)
The phrase to which the customization will be applied.
|
CustomPronunciationParams.Builder |
setPhraseBytes(com.google.protobuf.ByteString value)
The phrase to which the customization will be applied.
|
CustomPronunciationParams.Builder |
setPronunciation(String value)
The pronunciation of the phrase.
|
CustomPronunciationParams.Builder |
setPronunciationBytes(com.google.protobuf.ByteString value)
The pronunciation of the phrase.
|
CustomPronunciationParams.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CustomPronunciationParams.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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<CustomPronunciationParams.Builder>public CustomPronunciationParams.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CustomPronunciationParams.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<CustomPronunciationParams.Builder>public CustomPronunciationParams getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CustomPronunciationParams build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CustomPronunciationParams buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CustomPronunciationParams.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CustomPronunciationParams.Builder>public CustomPronunciationParams.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<CustomPronunciationParams.Builder>public CustomPronunciationParams.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomPronunciationParams.Builder>public CustomPronunciationParams.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CustomPronunciationParams.Builder>public CustomPronunciationParams.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<CustomPronunciationParams.Builder>public CustomPronunciationParams.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<CustomPronunciationParams.Builder>public CustomPronunciationParams.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomPronunciationParams.Builder>public CustomPronunciationParams.Builder mergeFrom(CustomPronunciationParams other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CustomPronunciationParams.Builder>public CustomPronunciationParams.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<CustomPronunciationParams.Builder>IOExceptionpublic boolean hasPhrase()
The phrase to which the customization will be applied. The phrase can be multiple words (in the case of proper nouns etc), but should not span to a whole sentence.
optional string phrase = 1;hasPhrase in interface CustomPronunciationParamsOrBuilderpublic String getPhrase()
The phrase to which the customization will be applied. The phrase can be multiple words (in the case of proper nouns etc), but should not span to a whole sentence.
optional string phrase = 1;getPhrase in interface CustomPronunciationParamsOrBuilderpublic com.google.protobuf.ByteString getPhraseBytes()
The phrase to which the customization will be applied. The phrase can be multiple words (in the case of proper nouns etc), but should not span to a whole sentence.
optional string phrase = 1;getPhraseBytes in interface CustomPronunciationParamsOrBuilderpublic CustomPronunciationParams.Builder setPhrase(String value)
The phrase to which the customization will be applied. The phrase can be multiple words (in the case of proper nouns etc), but should not span to a whole sentence.
optional string phrase = 1;value - The phrase to set.public CustomPronunciationParams.Builder clearPhrase()
The phrase to which the customization will be applied. The phrase can be multiple words (in the case of proper nouns etc), but should not span to a whole sentence.
optional string phrase = 1;public CustomPronunciationParams.Builder setPhraseBytes(com.google.protobuf.ByteString value)
The phrase to which the customization will be applied. The phrase can be multiple words (in the case of proper nouns etc), but should not span to a whole sentence.
optional string phrase = 1;value - The bytes for phrase to set.public boolean hasPhoneticEncoding()
The phonetic encoding of the phrase.
optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;
hasPhoneticEncoding in interface CustomPronunciationParamsOrBuilderpublic int getPhoneticEncodingValue()
The phonetic encoding of the phrase.
optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;
getPhoneticEncodingValue in interface CustomPronunciationParamsOrBuilderpublic CustomPronunciationParams.Builder setPhoneticEncodingValue(int value)
The phonetic encoding of the phrase.
optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;
value - The enum numeric value on the wire for phoneticEncoding to set.public CustomPronunciationParams.PhoneticEncoding getPhoneticEncoding()
The phonetic encoding of the phrase.
optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;
getPhoneticEncoding in interface CustomPronunciationParamsOrBuilderpublic CustomPronunciationParams.Builder setPhoneticEncoding(CustomPronunciationParams.PhoneticEncoding value)
The phonetic encoding of the phrase.
optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;
value - The phoneticEncoding to set.public CustomPronunciationParams.Builder clearPhoneticEncoding()
The phonetic encoding of the phrase.
optional .google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding phonetic_encoding = 2;
public boolean hasPronunciation()
The pronunciation of the phrase. This must be in the phonetic encoding specified above.
optional string pronunciation = 3;hasPronunciation in interface CustomPronunciationParamsOrBuilderpublic String getPronunciation()
The pronunciation of the phrase. This must be in the phonetic encoding specified above.
optional string pronunciation = 3;getPronunciation in interface CustomPronunciationParamsOrBuilderpublic com.google.protobuf.ByteString getPronunciationBytes()
The pronunciation of the phrase. This must be in the phonetic encoding specified above.
optional string pronunciation = 3;getPronunciationBytes in interface CustomPronunciationParamsOrBuilderpublic CustomPronunciationParams.Builder setPronunciation(String value)
The pronunciation of the phrase. This must be in the phonetic encoding specified above.
optional string pronunciation = 3;value - The pronunciation to set.public CustomPronunciationParams.Builder clearPronunciation()
The pronunciation of the phrase. This must be in the phonetic encoding specified above.
optional string pronunciation = 3;public CustomPronunciationParams.Builder setPronunciationBytes(com.google.protobuf.ByteString value)
The pronunciation of the phrase. This must be in the phonetic encoding specified above.
optional string pronunciation = 3;value - The bytes for pronunciation to set.public final CustomPronunciationParams.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CustomPronunciationParams.Builder>public final CustomPronunciationParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CustomPronunciationParams.Builder>Copyright © 2025 Google LLC. All rights reserved.