Class MultiSpeakerMarkup.Builder (2.55.0)

public static final class MultiSpeakerMarkup.Builder extends GeneratedMessageV3.Builder<MultiSpeakerMarkup.Builder> implements MultiSpeakerMarkupOrBuilder

A collection of turns for multi-speaker synthesis.

Protobuf type google.cloud.texttospeech.v1.MultiSpeakerMarkup

Static Methods

getDescriptor()

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

Methods

addAllTurns(Iterable<? extends MultiSpeakerMarkup.Turn> values)

public MultiSpeakerMarkup.Builder addAllTurns(Iterable<? extends MultiSpeakerMarkup.Turn> values)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTurns(MultiSpeakerMarkup.Turn value)

public MultiSpeakerMarkup.Builder addTurns(MultiSpeakerMarkup.Turn value)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MultiSpeakerMarkup.Turn
Returns
Type Description
MultiSpeakerMarkup.Builder

addTurns(MultiSpeakerMarkup.Turn.Builder builderForValue)

public MultiSpeakerMarkup.Builder addTurns(MultiSpeakerMarkup.Turn.Builder builderForValue)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue MultiSpeakerMarkup.Turn.Builder
Returns
Type Description
MultiSpeakerMarkup.Builder

addTurns(int index, MultiSpeakerMarkup.Turn value)

public MultiSpeakerMarkup.Builder addTurns(int index, MultiSpeakerMarkup.Turn value)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value MultiSpeakerMarkup.Turn
Returns
Type Description
MultiSpeakerMarkup.Builder

addTurns(int index, MultiSpeakerMarkup.Turn.Builder builderForValue)

public MultiSpeakerMarkup.Builder addTurns(int index, MultiSpeakerMarkup.Turn.Builder builderForValue)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue MultiSpeakerMarkup.Turn.Builder
Returns
Type Description
MultiSpeakerMarkup.Builder

addTurnsBuilder()

public MultiSpeakerMarkup.Turn.Builder addTurnsBuilder()

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MultiSpeakerMarkup.Turn.Builder

addTurnsBuilder(int index)

public MultiSpeakerMarkup.Turn.Builder addTurnsBuilder(int index)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder

build()

public MultiSpeakerMarkup build()
Returns
Type Description
MultiSpeakerMarkup

buildPartial()

public MultiSpeakerMarkup buildPartial()
Returns
Type Description
MultiSpeakerMarkup

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTurns()

public MultiSpeakerMarkup.Builder clearTurns()

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MultiSpeakerMarkup.Builder

clone()

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

getDefaultInstanceForType()

public MultiSpeakerMarkup getDefaultInstanceForType()
Returns
Type Description
MultiSpeakerMarkup

getDescriptorForType()

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

getTurns(int index)

public MultiSpeakerMarkup.Turn getTurns(int index)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MultiSpeakerMarkup.Turn

getTurnsBuilder(int index)

public MultiSpeakerMarkup.Turn.Builder getTurnsBuilder(int index)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder

getTurnsBuilderList()

public List<MultiSpeakerMarkup.Turn.Builder> getTurnsBuilderList()

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getTurnsCount()

public int getTurnsCount()

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getTurnsList()

public List<MultiSpeakerMarkup.Turn> getTurnsList()

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Turn>

getTurnsOrBuilder(int index)

public MultiSpeakerMarkup.TurnOrBuilder getTurnsOrBuilder(int index)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MultiSpeakerMarkup.TurnOrBuilder

getTurnsOrBuilderList()

public List<? extends MultiSpeakerMarkup.TurnOrBuilder> getTurnsOrBuilderList()

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MultiSpeakerMarkup other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTurns(int index)

public MultiSpeakerMarkup.Builder removeTurns(int index)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MultiSpeakerMarkup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTurns(int index, MultiSpeakerMarkup.Turn value)

public MultiSpeakerMarkup.Builder setTurns(int index, MultiSpeakerMarkup.Turn value)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value MultiSpeakerMarkup.Turn
Returns
Type Description
MultiSpeakerMarkup.Builder

setTurns(int index, MultiSpeakerMarkup.Turn.Builder builderForValue)

public MultiSpeakerMarkup.Builder setTurns(int index, MultiSpeakerMarkup.Turn.Builder builderForValue)

Required. Speaker turns.

repeated .google.cloud.texttospeech.v1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue MultiSpeakerMarkup.Turn.Builder
Returns
Type Description
MultiSpeakerMarkup.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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