Class CustomPronunciations.Builder (2.84.0)

public static final class CustomPronunciations.Builder extends GeneratedMessage.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 are 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 are 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 are 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 are 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 are 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 are 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 are applied.

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

Parameter
Name Description
index int
Returns
Type Description
CustomPronunciationParams.Builder

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

clearPronunciations()

public CustomPronunciations.Builder clearPronunciations()

The pronunciation customizations are applied.

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

Returns
Type Description
CustomPronunciations.Builder

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 are 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 are 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 are applied.

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

Returns
Type Description
List<Builder>

getPronunciationsCount()

public int getPronunciationsCount()

The pronunciation customizations are applied.

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

Returns
Type Description
int

getPronunciationsList()

public List<CustomPronunciationParams> getPronunciationsList()

The pronunciation customizations are 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 are 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 are applied.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessage.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

removePronunciations(int index)

public CustomPronunciations.Builder removePronunciations(int index)

The pronunciation customizations are applied.

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

Parameter
Name Description
index int
Returns
Type Description
CustomPronunciations.Builder

setPronunciations(int index, CustomPronunciationParams value)

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

The pronunciation customizations are 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 are applied.

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

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