Class TimeSegment (0.163.0)

public final class TimeSegment extends GeneratedMessageV3 implements TimeSegmentOrBuilder

A time period inside of an example that has a time dimension (e.g. video).

Protobuf type google.cloud.datalabeling.v1beta1.TimeSegment

Static Fields

END_TIME_OFFSET_FIELD_NUMBER

public static final int END_TIME_OFFSET_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_OFFSET_FIELD_NUMBER

public static final int START_TIME_OFFSET_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TimeSegment getDefaultInstance()
Returns
Type Description
TimeSegment

getDescriptor()

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

newBuilder()

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

newBuilder(TimeSegment prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TimeSegment getDefaultInstanceForType()
Returns
Type Description
TimeSegment

getEndTimeOffset()

public Duration getEndTimeOffset()

End of the time segment (exclusive), represented as the duration since the example start.

.google.protobuf.Duration end_time_offset = 2;

Returns
Type Description
Duration

The endTimeOffset.

getEndTimeOffsetOrBuilder()

public DurationOrBuilder getEndTimeOffsetOrBuilder()

End of the time segment (exclusive), represented as the duration since the example start.

.google.protobuf.Duration end_time_offset = 2;

Returns
Type Description
DurationOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTimeOffset()

public Duration getStartTimeOffset()

Start of the time segment (inclusive), represented as the duration since the example start.

.google.protobuf.Duration start_time_offset = 1;

Returns
Type Description
Duration

The startTimeOffset.

getStartTimeOffsetOrBuilder()

public DurationOrBuilder getStartTimeOffsetOrBuilder()

Start of the time segment (inclusive), represented as the duration since the example start.

.google.protobuf.Duration start_time_offset = 1;

Returns
Type Description
DurationOrBuilder

hasEndTimeOffset()

public boolean hasEndTimeOffset()

End of the time segment (exclusive), represented as the duration since the example start.

.google.protobuf.Duration end_time_offset = 2;

Returns
Type Description
boolean

Whether the endTimeOffset field is set.

hasStartTimeOffset()

public boolean hasStartTimeOffset()

Start of the time segment (inclusive), represented as the duration since the example start.

.google.protobuf.Duration start_time_offset = 1;

Returns
Type Description
boolean

Whether the startTimeOffset field is set.

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 TimeSegment.Builder newBuilderForType()
Returns
Type Description
TimeSegment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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