Package com.google.cloud.automl.v1beta1
Class VideoObjectTrackingAnnotation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoObjectTrackingAnnotation.Builder>
com.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation.Builder
- All Implemented Interfaces:
VideoObjectTrackingAnnotationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VideoObjectTrackingAnnotation
public static final class VideoObjectTrackingAnnotation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VideoObjectTrackingAnnotation.Builder>
implements VideoObjectTrackingAnnotationOrBuilder
Annotation details for video object tracking.Protobuf type
google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional.Output only.Required.Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.floatgetScore()Output only.com.google.protobuf.DurationRequired.com.google.protobuf.Duration.BuilderRequired.com.google.protobuf.DurationOrBuilderRequired.booleanRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBoundingBox(BoundingPoly value) Required.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTimeOffset(com.google.protobuf.Duration value) Required.setBoundingBox(BoundingPoly value) Required.setBoundingBox(BoundingPoly.Builder builderForValue) Required.setInstanceId(String value) Optional.setInstanceIdBytes(com.google.protobuf.ByteString value) Optional.setScore(float value) Output only.setTimeOffset(com.google.protobuf.Duration value) Required.setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) Required.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<VideoObjectTrackingAnnotation.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<VideoObjectTrackingAnnotation.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<VideoObjectTrackingAnnotation.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<VideoObjectTrackingAnnotation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VideoObjectTrackingAnnotation.Builder>
-
mergeFrom
public VideoObjectTrackingAnnotation.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<VideoObjectTrackingAnnotation.Builder>- Throws:
IOException
-
getInstanceId
Optional. The instance of the object, expressed as a positive integer. Used to tell apart objects of the same type (i.e. AnnotationSpec) when multiple are present on a single example. NOTE: Instance ID prediction quality is not a part of model evaluation and is done as best effort. Especially in cases when an entity goes off-screen for a longer time (minutes), when it comes back it may be given a new instance ID.
string instance_id = 1;- Specified by:
getInstanceIdin interfaceVideoObjectTrackingAnnotationOrBuilder- Returns:
- The instanceId.
-
getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()Optional. The instance of the object, expressed as a positive integer. Used to tell apart objects of the same type (i.e. AnnotationSpec) when multiple are present on a single example. NOTE: Instance ID prediction quality is not a part of model evaluation and is done as best effort. Especially in cases when an entity goes off-screen for a longer time (minutes), when it comes back it may be given a new instance ID.
string instance_id = 1;- Specified by:
getInstanceIdBytesin interfaceVideoObjectTrackingAnnotationOrBuilder- Returns:
- The bytes for instanceId.
-
setInstanceId
Optional. The instance of the object, expressed as a positive integer. Used to tell apart objects of the same type (i.e. AnnotationSpec) when multiple are present on a single example. NOTE: Instance ID prediction quality is not a part of model evaluation and is done as best effort. Especially in cases when an entity goes off-screen for a longer time (minutes), when it comes back it may be given a new instance ID.
string instance_id = 1;- Parameters:
value- The instanceId to set.- Returns:
- This builder for chaining.
-
clearInstanceId
Optional. The instance of the object, expressed as a positive integer. Used to tell apart objects of the same type (i.e. AnnotationSpec) when multiple are present on a single example. NOTE: Instance ID prediction quality is not a part of model evaluation and is done as best effort. Especially in cases when an entity goes off-screen for a longer time (minutes), when it comes back it may be given a new instance ID.
string instance_id = 1;- Returns:
- This builder for chaining.
-
setInstanceIdBytes
public VideoObjectTrackingAnnotation.Builder setInstanceIdBytes(com.google.protobuf.ByteString value) Optional. The instance of the object, expressed as a positive integer. Used to tell apart objects of the same type (i.e. AnnotationSpec) when multiple are present on a single example. NOTE: Instance ID prediction quality is not a part of model evaluation and is done as best effort. Especially in cases when an entity goes off-screen for a longer time (minutes), when it comes back it may be given a new instance ID.
string instance_id = 1;- Parameters:
value- The bytes for instanceId to set.- Returns:
- This builder for chaining.
-
hasTimeOffset
public boolean hasTimeOffset()Required. A time (frame) of a video to which this annotation pertains. Represented as the duration since the video's start.
.google.protobuf.Duration time_offset = 2;- Specified by:
hasTimeOffsetin interfaceVideoObjectTrackingAnnotationOrBuilder- Returns:
- Whether the timeOffset field is set.
-
getTimeOffset
public com.google.protobuf.Duration getTimeOffset()Required. A time (frame) of a video to which this annotation pertains. Represented as the duration since the video's start.
.google.protobuf.Duration time_offset = 2;- Specified by:
getTimeOffsetin interfaceVideoObjectTrackingAnnotationOrBuilder- Returns:
- The timeOffset.
-
setTimeOffset
Required. A time (frame) of a video to which this annotation pertains. Represented as the duration since the video's start.
.google.protobuf.Duration time_offset = 2; -
setTimeOffset
public VideoObjectTrackingAnnotation.Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) Required. A time (frame) of a video to which this annotation pertains. Represented as the duration since the video's start.
.google.protobuf.Duration time_offset = 2; -
mergeTimeOffset
Required. A time (frame) of a video to which this annotation pertains. Represented as the duration since the video's start.
.google.protobuf.Duration time_offset = 2; -
clearTimeOffset
Required. A time (frame) of a video to which this annotation pertains. Represented as the duration since the video's start.
.google.protobuf.Duration time_offset = 2; -
getTimeOffsetBuilder
public com.google.protobuf.Duration.Builder getTimeOffsetBuilder()Required. A time (frame) of a video to which this annotation pertains. Represented as the duration since the video's start.
.google.protobuf.Duration time_offset = 2; -
getTimeOffsetOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder()Required. A time (frame) of a video to which this annotation pertains. Represented as the duration since the video's start.
.google.protobuf.Duration time_offset = 2;- Specified by:
getTimeOffsetOrBuilderin interfaceVideoObjectTrackingAnnotationOrBuilder
-
hasBoundingBox
public boolean hasBoundingBox()Required. The rectangle representing the object location on the frame (i.e. at the time_offset of the video).
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3;- Specified by:
hasBoundingBoxin interfaceVideoObjectTrackingAnnotationOrBuilder- Returns:
- Whether the boundingBox field is set.
-
getBoundingBox
Required. The rectangle representing the object location on the frame (i.e. at the time_offset of the video).
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3;- Specified by:
getBoundingBoxin interfaceVideoObjectTrackingAnnotationOrBuilder- Returns:
- The boundingBox.
-
setBoundingBox
Required. The rectangle representing the object location on the frame (i.e. at the time_offset of the video).
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; -
setBoundingBox
Required. The rectangle representing the object location on the frame (i.e. at the time_offset of the video).
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; -
mergeBoundingBox
Required. The rectangle representing the object location on the frame (i.e. at the time_offset of the video).
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; -
clearBoundingBox
Required. The rectangle representing the object location on the frame (i.e. at the time_offset of the video).
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; -
getBoundingBoxBuilder
Required. The rectangle representing the object location on the frame (i.e. at the time_offset of the video).
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3; -
getBoundingBoxOrBuilder
Required. The rectangle representing the object location on the frame (i.e. at the time_offset of the video).
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 3;- Specified by:
getBoundingBoxOrBuilderin interfaceVideoObjectTrackingAnnotationOrBuilder
-
getScore
public float getScore()Output only. The confidence that this annotation is positive for the video at the time_offset, value in [0, 1], higher means higher positivity confidence. For annotations created by the user the score is 1. When user approves an annotation, the original float score is kept (and not changed to 1).
float score = 4;- Specified by:
getScorein interfaceVideoObjectTrackingAnnotationOrBuilder- Returns:
- The score.
-
setScore
Output only. The confidence that this annotation is positive for the video at the time_offset, value in [0, 1], higher means higher positivity confidence. For annotations created by the user the score is 1. When user approves an annotation, the original float score is kept (and not changed to 1).
float score = 4;- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
clearScore
Output only. The confidence that this annotation is positive for the video at the time_offset, value in [0, 1], higher means higher positivity confidence. For annotations created by the user the score is 1. When user approves an annotation, the original float score is kept (and not changed to 1).
float score = 4;- Returns:
- This builder for chaining.
-