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.v1beta1.MultiSpeakerMarkup
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllTurns(Iterable<? extends MultiSpeakerMarkup.Turn> values)
public MultiSpeakerMarkup.Builder addAllTurns(Iterable<? extends MultiSpeakerMarkup.Turn> values)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MultiSpeakerMarkup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addTurns(MultiSpeakerMarkup.Turn value)
public MultiSpeakerMarkup.Builder addTurns(MultiSpeakerMarkup.Turn value)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
addTurns(MultiSpeakerMarkup.Turn.Builder builderForValue)
public MultiSpeakerMarkup.Builder addTurns(MultiSpeakerMarkup.Turn.Builder builderForValue)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
addTurns(int index, MultiSpeakerMarkup.Turn value)
public MultiSpeakerMarkup.Builder addTurns(int index, MultiSpeakerMarkup.Turn value)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
addTurns(int index, MultiSpeakerMarkup.Turn.Builder builderForValue)
public MultiSpeakerMarkup.Builder addTurns(int index, MultiSpeakerMarkup.Turn.Builder builderForValue)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
addTurnsBuilder()
public MultiSpeakerMarkup.Turn.Builder addTurnsBuilder()
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
addTurnsBuilder(int index)
public MultiSpeakerMarkup.Turn.Builder addTurnsBuilder(int index)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
build()
public MultiSpeakerMarkup build()
buildPartial()
public MultiSpeakerMarkup buildPartial()
clear()
public MultiSpeakerMarkup.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public MultiSpeakerMarkup.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public MultiSpeakerMarkup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTurns()
public MultiSpeakerMarkup.Builder clearTurns()
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public MultiSpeakerMarkup.Builder clone()
Overrides
getDefaultInstanceForType()
public MultiSpeakerMarkup getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getTurns(int index)
public MultiSpeakerMarkup.Turn getTurns(int index)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getTurnsBuilder(int index)
public MultiSpeakerMarkup.Turn.Builder getTurnsBuilder(int index)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getTurnsBuilderList()
public List<MultiSpeakerMarkup.Turn.Builder> getTurnsBuilderList()
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
getTurnsCount()
public int getTurnsCount()
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.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.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
getTurnsOrBuilder(int index)
public MultiSpeakerMarkup.TurnOrBuilder getTurnsOrBuilder(int index)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getTurnsOrBuilderList()
public List<? extends MultiSpeakerMarkup.TurnOrBuilder> getTurnsOrBuilderList()
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<? extends com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MultiSpeakerMarkup other)
public MultiSpeakerMarkup.Builder mergeFrom(MultiSpeakerMarkup other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MultiSpeakerMarkup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MultiSpeakerMarkup.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MultiSpeakerMarkup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeTurns(int index)
public MultiSpeakerMarkup.Builder removeTurns(int index)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public MultiSpeakerMarkup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MultiSpeakerMarkup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTurns(int index, MultiSpeakerMarkup.Turn value)
public MultiSpeakerMarkup.Builder setTurns(int index, MultiSpeakerMarkup.Turn value)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
setTurns(int index, MultiSpeakerMarkup.Turn.Builder builderForValue)
public MultiSpeakerMarkup.Builder setTurns(int index, MultiSpeakerMarkup.Turn.Builder builderForValue)
Required. Speaker turns.
repeated .google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn turns = 1 [(.google.api.field_behavior) = REQUIRED];
setUnknownFields(UnknownFieldSet unknownFields)
public final MultiSpeakerMarkup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides