Class TimeSegment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TimeSegment.Builder>
com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder
- All Implemented Interfaces:
TimeSegmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TimeSegment
public static final class TimeSegment.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TimeSegment.Builder>
implements TimeSegmentOrBuilder
A time period inside of an example that has a time dimension (e.g. video).Protobuf type
google.cloud.datalabeling.v1beta1.TimeSegment-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()End of the time segment (exclusive), represented as the duration since the example start.Start of the time segment (inclusive), represented as the duration since the example start.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationEnd of the time segment (exclusive), represented as the duration since the example start.com.google.protobuf.Duration.BuilderEnd of the time segment (exclusive), represented as the duration since the example start.com.google.protobuf.DurationOrBuilderEnd of the time segment (exclusive), represented as the duration since the example start.com.google.protobuf.DurationStart of the time segment (inclusive), represented as the duration since the example start.com.google.protobuf.Duration.BuilderStart of the time segment (inclusive), represented as the duration since the example start.com.google.protobuf.DurationOrBuilderStart of the time segment (inclusive), represented as the duration since the example start.booleanEnd of the time segment (exclusive), represented as the duration since the example start.booleanStart of the time segment (inclusive), represented as the duration since the example start.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEndTimeOffset(com.google.protobuf.Duration value) End of the time segment (exclusive), represented as the duration since the example start.mergeFrom(TimeSegment other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTimeOffset(com.google.protobuf.Duration value) Start of the time segment (inclusive), represented as the duration since the example start.setEndTimeOffset(com.google.protobuf.Duration value) End of the time segment (exclusive), represented as the duration since the example start.setEndTimeOffset(com.google.protobuf.Duration.Builder builderForValue) End of the time segment (exclusive), represented as the duration since the example start.setStartTimeOffset(com.google.protobuf.Duration value) Start of the time segment (inclusive), represented as the duration since the example start.setStartTimeOffset(com.google.protobuf.Duration.Builder builderForValue) Start of the time segment (inclusive), represented as the duration since the example start.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TimeSegment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TimeSegment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TimeSegment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TimeSegment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TimeSegment.Builder>
-
mergeFrom
public TimeSegment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TimeSegment.Builder>- Throws:
IOException
-
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;- Specified by:
hasStartTimeOffsetin interfaceTimeSegmentOrBuilder- Returns:
- Whether the startTimeOffset field is set.
-
getStartTimeOffset
public com.google.protobuf.Duration getStartTimeOffset()Start of the time segment (inclusive), represented as the duration since the example start.
.google.protobuf.Duration start_time_offset = 1;- Specified by:
getStartTimeOffsetin interfaceTimeSegmentOrBuilder- Returns:
- The startTimeOffset.
-
setStartTimeOffset
Start of the time segment (inclusive), represented as the duration since the example start.
.google.protobuf.Duration start_time_offset = 1; -
setStartTimeOffset
Start of the time segment (inclusive), represented as the duration since the example start.
.google.protobuf.Duration start_time_offset = 1; -
mergeStartTimeOffset
Start of the time segment (inclusive), represented as the duration since the example start.
.google.protobuf.Duration start_time_offset = 1; -
clearStartTimeOffset
Start of the time segment (inclusive), represented as the duration since the example start.
.google.protobuf.Duration start_time_offset = 1; -
getStartTimeOffsetBuilder
public com.google.protobuf.Duration.Builder getStartTimeOffsetBuilder()Start of the time segment (inclusive), represented as the duration since the example start.
.google.protobuf.Duration start_time_offset = 1; -
getStartTimeOffsetOrBuilder
public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder()Start of the time segment (inclusive), represented as the duration since the example start.
.google.protobuf.Duration start_time_offset = 1;- Specified by:
getStartTimeOffsetOrBuilderin interfaceTimeSegmentOrBuilder
-
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;- Specified by:
hasEndTimeOffsetin interfaceTimeSegmentOrBuilder- Returns:
- Whether the endTimeOffset field is set.
-
getEndTimeOffset
public com.google.protobuf.Duration getEndTimeOffset()End of the time segment (exclusive), represented as the duration since the example start.
.google.protobuf.Duration end_time_offset = 2;- Specified by:
getEndTimeOffsetin interfaceTimeSegmentOrBuilder- Returns:
- The endTimeOffset.
-
setEndTimeOffset
End of the time segment (exclusive), represented as the duration since the example start.
.google.protobuf.Duration end_time_offset = 2; -
setEndTimeOffset
End of the time segment (exclusive), represented as the duration since the example start.
.google.protobuf.Duration end_time_offset = 2; -
mergeEndTimeOffset
End of the time segment (exclusive), represented as the duration since the example start.
.google.protobuf.Duration end_time_offset = 2; -
clearEndTimeOffset
End of the time segment (exclusive), represented as the duration since the example start.
.google.protobuf.Duration end_time_offset = 2; -
getEndTimeOffsetBuilder
public com.google.protobuf.Duration.Builder getEndTimeOffsetBuilder()End of the time segment (exclusive), represented as the duration since the example start.
.google.protobuf.Duration end_time_offset = 2; -
getEndTimeOffsetOrBuilder
public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder()End of the time segment (exclusive), represented as the duration since the example start.
.google.protobuf.Duration end_time_offset = 2;- Specified by:
getEndTimeOffsetOrBuilderin interfaceTimeSegmentOrBuilder
-