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
START_TIME_OFFSET_FIELD_NUMBER
public static final int START_TIME_OFFSET_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static TimeSegment getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TimeSegment.Builder newBuilder()
Returns
newBuilder(TimeSegment prototype)
public static TimeSegment.Builder newBuilder(TimeSegment prototype)
Parameter
Returns
public static TimeSegment parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TimeSegment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TimeSegment parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TimeSegment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TimeSegment parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TimeSegment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TimeSegment parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TimeSegment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TimeSegment parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TimeSegment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TimeSegment parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TimeSegment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TimeSegment> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public TimeSegment getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<TimeSegment> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TimeSegment.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TimeSegment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TimeSegment.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions