Class CustomPronunciations.Builder (2.54.0)

public static final class CustomPronunciations.Builder extends GeneratedMessageV3.Builder<CustomPronunciations.Builder> implements CustomPronunciationsOrBuilder

A collection of pronunciation customizations.

Protobuf type google.cloud.texttospeech.v1.CustomPronunciations

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPronunciations(Iterable<? extends CustomPronunciationParams> values)

public CustomPronunciations.Builder addAllPronunciations(Iterable<? extends CustomPronunciationParams> values)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.texttospeech.v1.CustomPronunciationParams>
Returns
Type Description
CustomPronunciations.Builder

addPronunciations(CustomPronunciationParams value)

public CustomPronunciations.Builder addPronunciations(CustomPronunciationParams value)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameter
Name Description
value CustomPronunciationParams
Returns
Type Description
CustomPronunciations.Builder

addPronunciations(CustomPronunciationParams.Builder builderForValue)

public CustomPronunciations.Builder addPronunciations(CustomPronunciationParams.Builder builderForValue)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameter
Name Description
builderForValue CustomPronunciationParams.Builder
Returns
Type Description
CustomPronunciations.Builder

addPronunciations(int index, CustomPronunciationParams value)

public CustomPronunciations.Builder addPronunciations(int index, CustomPronunciationParams value)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameters
Name Description
index int
value CustomPronunciationParams
Returns
Type Description
CustomPronunciations.Builder

addPronunciations(int index, CustomPronunciationParams.Builder builderForValue)

public CustomPronunciations.Builder addPronunciations(int index, CustomPronunciationParams.Builder builderForValue)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameters
Name Description
index int
builderForValue CustomPronunciationParams.Builder
Returns
Type Description
CustomPronunciations.Builder

addPronunciationsBuilder()

public CustomPronunciationParams.Builder addPronunciationsBuilder()

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Returns
Type Description
CustomPronunciationParams.Builder

addPronunciationsBuilder(int index)

public CustomPronunciationParams.Builder addPronunciationsBuilder(int index)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomPronunciationParams.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomPronunciations.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomPronunciations.Builder
Overrides

build()

public CustomPronunciations build()
Returns
Type Description
CustomPronunciations

buildPartial()

public CustomPronunciations buildPartial()
Returns
Type Description
CustomPronunciations

clear()

public CustomPronunciations.Builder clear()
Returns
Type Description
CustomPronunciations.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CustomPronunciations.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomPronunciations.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomPronunciations.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CustomPronunciations.Builder
Overrides

clearPronunciations()

public CustomPronunciations.Builder clearPronunciations()

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Returns
Type Description
CustomPronunciations.Builder

clone()

public CustomPronunciations.Builder clone()
Returns
Type Description
CustomPronunciations.Builder
Overrides

getDefaultInstanceForType()

public CustomPronunciations getDefaultInstanceForType()
Returns
Type Description
CustomPronunciations

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPronunciations(int index)

public CustomPronunciationParams getPronunciations(int index)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomPronunciationParams

getPronunciationsBuilder(int index)

public CustomPronunciationParams.Builder getPronunciationsBuilder(int index)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomPronunciationParams.Builder

getPronunciationsBuilderList()

public List<CustomPronunciationParams.Builder> getPronunciationsBuilderList()

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Returns
Type Description
List<Builder>

getPronunciationsCount()

public int getPronunciationsCount()

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Returns
Type Description
int

getPronunciationsList()

public List<CustomPronunciationParams> getPronunciationsList()

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Returns
Type Description
List<CustomPronunciationParams>

getPronunciationsOrBuilder(int index)

public CustomPronunciationParamsOrBuilder getPronunciationsOrBuilder(int index)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomPronunciationParamsOrBuilder

getPronunciationsOrBuilderList()

public List<? extends CustomPronunciationParamsOrBuilder> getPronunciationsOrBuilderList()

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Returns
Type Description
List<? extends com.google.cloud.texttospeech.v1.CustomPronunciationParamsOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomPronunciations other)

public CustomPronunciations.Builder mergeFrom(CustomPronunciations other)
Parameter
Name Description
other CustomPronunciations
Returns
Type Description
CustomPronunciations.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomPronunciations.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomPronunciations.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomPronunciations.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomPronunciations.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomPronunciations.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomPronunciations.Builder
Overrides

removePronunciations(int index)

public CustomPronunciations.Builder removePronunciations(int index)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomPronunciations.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CustomPronunciations.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomPronunciations.Builder
Overrides

setPronunciations(int index, CustomPronunciationParams value)

public CustomPronunciations.Builder setPronunciations(int index, CustomPronunciationParams value)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameters
Name Description
index int
value CustomPronunciationParams
Returns
Type Description
CustomPronunciations.Builder

setPronunciations(int index, CustomPronunciationParams.Builder builderForValue)

public CustomPronunciations.Builder setPronunciations(int index, CustomPronunciationParams.Builder builderForValue)

The pronunciation customizations to be applied.

repeated .google.cloud.texttospeech.v1.CustomPronunciationParams pronunciations = 1;

Parameters
Name Description
index int
builderForValue CustomPronunciationParams.Builder
Returns
Type Description
CustomPronunciations.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CustomPronunciations.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CustomPronunciations.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomPronunciations.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomPronunciations.Builder
Overrides