Class MultiSpeakerMarkup (2.56.0)

public final class MultiSpeakerMarkup extends GeneratedMessageV3 implements MultiSpeakerMarkupOrBuilder

A collection of turns for multi-speaker synthesis.

Protobuf type google.cloud.texttospeech.v1.MultiSpeakerMarkup

Static Fields

TURNS_FIELD_NUMBER

public static final int TURNS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MultiSpeakerMarkup getDefaultInstance()
Returns
Type Description
MultiSpeakerMarkup

getDescriptor()

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

newBuilder()

public static MultiSpeakerMarkup.Builder newBuilder()
Returns
Type Description
MultiSpeakerMarkup.Builder

newBuilder(MultiSpeakerMarkup prototype)

public static MultiSpeakerMarkup.Builder newBuilder(MultiSpeakerMarkup prototype)
Parameter
Name Description
prototype MultiSpeakerMarkup
Returns
Type Description
MultiSpeakerMarkup.Builder

parseDelimitedFrom(InputStream input)

public static MultiSpeakerMarkup parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MultiSpeakerMarkup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MultiSpeakerMarkup parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MultiSpeakerMarkup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MultiSpeakerMarkup parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MultiSpeakerMarkup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MultiSpeakerMarkup parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MultiSpeakerMarkup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MultiSpeakerMarkup parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MultiSpeakerMarkup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MultiSpeakerMarkup parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MultiSpeakerMarkup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MultiSpeakerMarkup
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MultiSpeakerMarkup> parser()
Returns
Type Description
Parser<MultiSpeakerMarkup>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public MultiSpeakerMarkup getDefaultInstanceForType()
Returns
Type Description
MultiSpeakerMarkup

getParserForType()

public Parser<MultiSpeakerMarkup> getParserForType()
Returns
Type Description
Parser<MultiSpeakerMarkup>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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

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>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MultiSpeakerMarkup.Builder newBuilderForType()
Returns
Type Description
MultiSpeakerMarkup.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MultiSpeakerMarkup.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MultiSpeakerMarkup.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public MultiSpeakerMarkup.Builder toBuilder()
Returns
Type Description
MultiSpeakerMarkup.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException