Class Track.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Track.Builder>
com.google.cloud.videointelligence.v1.Track.Builder
- All Implemented Interfaces:
TrackOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Track
public static final class Track.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Track.Builder>
implements TrackOrBuilder
A track of an object instance.Protobuf type
google.cloud.videointelligence.v1.Track-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends DetectedAttribute> values) Optional.addAllTimestampedObjects(Iterable<? extends TimestampedObject> values) The object with timestamp and attributes per frame in the track.addAttributes(int index, DetectedAttribute value) Optional.addAttributes(int index, DetectedAttribute.Builder builderForValue) Optional.addAttributes(DetectedAttribute value) Optional.addAttributes(DetectedAttribute.Builder builderForValue) Optional.Optional.addAttributesBuilder(int index) Optional.addTimestampedObjects(int index, TimestampedObject value) The object with timestamp and attributes per frame in the track.addTimestampedObjects(int index, TimestampedObject.Builder builderForValue) The object with timestamp and attributes per frame in the track.The object with timestamp and attributes per frame in the track.addTimestampedObjects(TimestampedObject.Builder builderForValue) The object with timestamp and attributes per frame in the track.The object with timestamp and attributes per frame in the track.addTimestampedObjectsBuilder(int index) The object with timestamp and attributes per frame in the track.build()clear()Optional.Optional.Video segment of a track.The object with timestamp and attributes per frame in the track.getAttributes(int index) Optional.getAttributesBuilder(int index) Optional.Optional.intOptional.Optional.getAttributesOrBuilder(int index) Optional.List<? extends DetectedAttributeOrBuilder>Optional.floatOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorVideo segment of a track.Video segment of a track.Video segment of a track.getTimestampedObjects(int index) The object with timestamp and attributes per frame in the track.getTimestampedObjectsBuilder(int index) The object with timestamp and attributes per frame in the track.The object with timestamp and attributes per frame in the track.intThe object with timestamp and attributes per frame in the track.The object with timestamp and attributes per frame in the track.getTimestampedObjectsOrBuilder(int index) The object with timestamp and attributes per frame in the track.List<? extends TimestampedObjectOrBuilder>The object with timestamp and attributes per frame in the track.booleanVideo segment of a track.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSegment(VideoSegment value) Video segment of a track.removeAttributes(int index) Optional.removeTimestampedObjects(int index) The object with timestamp and attributes per frame in the track.setAttributes(int index, DetectedAttribute value) Optional.setAttributes(int index, DetectedAttribute.Builder builderForValue) Optional.setConfidence(float value) Optional.setSegment(VideoSegment value) Video segment of a track.setSegment(VideoSegment.Builder builderForValue) Video segment of a track.setTimestampedObjects(int index, TimestampedObject value) The object with timestamp and attributes per frame in the track.setTimestampedObjects(int index, TimestampedObject.Builder builderForValue) The object with timestamp and attributes per frame in the track.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<Track.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<Track.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<Track.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<Track.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Track.Builder>
-
mergeFrom
public Track.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<Track.Builder>- Throws:
IOException
-
hasSegment
public boolean hasSegment()Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;- Specified by:
hasSegmentin interfaceTrackOrBuilder- Returns:
- Whether the segment field is set.
-
getSegment
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;- Specified by:
getSegmentin interfaceTrackOrBuilder- Returns:
- The segment.
-
setSegment
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1; -
setSegment
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1; -
mergeSegment
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1; -
clearSegment
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1; -
getSegmentBuilder
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1; -
getSegmentOrBuilder
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;- Specified by:
getSegmentOrBuilderin interfaceTrackOrBuilder
-
getTimestampedObjectsList
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;- Specified by:
getTimestampedObjectsListin interfaceTrackOrBuilder
-
getTimestampedObjectsCount
public int getTimestampedObjectsCount()The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;- Specified by:
getTimestampedObjectsCountin interfaceTrackOrBuilder
-
getTimestampedObjects
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;- Specified by:
getTimestampedObjectsin interfaceTrackOrBuilder
-
setTimestampedObjects
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
setTimestampedObjects
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
addTimestampedObjects
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
addTimestampedObjects
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
addTimestampedObjects
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
addTimestampedObjects
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
addAllTimestampedObjects
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
clearTimestampedObjects
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
removeTimestampedObjects
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
getTimestampedObjectsBuilder
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
getTimestampedObjectsOrBuilder
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;- Specified by:
getTimestampedObjectsOrBuilderin interfaceTrackOrBuilder
-
getTimestampedObjectsOrBuilderList
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;- Specified by:
getTimestampedObjectsOrBuilderListin interfaceTrackOrBuilder
-
addTimestampedObjectsBuilder
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
addTimestampedObjectsBuilder
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
getTimestampedObjectsBuilderList
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2; -
getAttributesList
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAttributesListin interfaceTrackOrBuilder
-
getAttributesCount
public int getAttributesCount()Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAttributesCountin interfaceTrackOrBuilder
-
getAttributes
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAttributesin interfaceTrackOrBuilder
-
setAttributes
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setAttributes
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAttributes
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAttributes
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAttributes
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAttributes
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAllAttributes
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearAttributes
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
removeAttributes
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getAttributesBuilder
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getAttributesOrBuilder
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAttributesOrBuilderin interfaceTrackOrBuilder
-
getAttributesOrBuilderList
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAttributesOrBuilderListin interfaceTrackOrBuilder
-
addAttributesBuilder
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAttributesBuilder
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getAttributesBuilderList
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getConfidence
public float getConfidence()Optional. The confidence score of the tracked object.
float confidence = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getConfidencein interfaceTrackOrBuilder- Returns:
- The confidence.
-
setConfidence
Optional. The confidence score of the tracked object.
float confidence = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
Optional. The confidence score of the tracked object.
float confidence = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-