Class Timepoint (2.36.0)

public final class Timepoint extends GeneratedMessageV3 implements TimepointOrBuilder

This contains a mapping between a certain point in the input text and a corresponding time in the output audio.

Protobuf type google.cloud.texttospeech.v1beta1.Timepoint

Implements

TimepointOrBuilder

Static Fields

MARK_NAME_FIELD_NUMBER

public static final int MARK_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

TIME_SECONDS_FIELD_NUMBER

public static final int TIME_SECONDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Timepoint getDefaultInstance()
Returns
TypeDescription
Timepoint

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Timepoint.Builder newBuilder()
Returns
TypeDescription
Timepoint.Builder

newBuilder(Timepoint prototype)

public static Timepoint.Builder newBuilder(Timepoint prototype)
Parameter
NameDescription
prototypeTimepoint
Returns
TypeDescription
Timepoint.Builder

parseDelimitedFrom(InputStream input)

public static Timepoint parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Timepoint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Timepoint parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Timepoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Timepoint parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Timepoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Timepoint parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Timepoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Timepoint parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Timepoint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Timepoint parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Timepoint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Timepoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Timepoint> parser()
Returns
TypeDescription
Parser<Timepoint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Timepoint getDefaultInstanceForType()
Returns
TypeDescription
Timepoint

getMarkName()

public String getMarkName()

Timepoint name as received from the client within <mark> tag.

string mark_name = 4;

Returns
TypeDescription
String

The markName.

getMarkNameBytes()

public ByteString getMarkNameBytes()

Timepoint name as received from the client within <mark> tag.

string mark_name = 4;

Returns
TypeDescription
ByteString

The bytes for markName.

getParserForType()

public Parser<Timepoint> getParserForType()
Returns
TypeDescription
Parser<Timepoint>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTimeSeconds()

public double getTimeSeconds()

Time offset in seconds from the start of the synthesized audio.

double time_seconds = 3;

Returns
TypeDescription
double

The timeSeconds.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Timepoint.Builder newBuilderForType()
Returns
TypeDescription
Timepoint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Timepoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Timepoint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Timepoint.Builder toBuilder()
Returns
TypeDescription
Timepoint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException