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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder> implements VideoObjectTrackingAnnotationOrBuilder
Annotation details for video object tracking.
Protobuf typegoogle.cloud.automl.v1beta1.VideoObjectTrackingAnnotation
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
clear
public VideoObjectTrackingAnnotation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
getDefaultInstanceForType
public VideoObjectTrackingAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VideoObjectTrackingAnnotation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VideoObjectTrackingAnnotation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VideoObjectTrackingAnnotation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
setField
public VideoObjectTrackingAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
clearField
public VideoObjectTrackingAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
clearOneof
public VideoObjectTrackingAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
setRepeatedField
public VideoObjectTrackingAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
addRepeatedField
public VideoObjectTrackingAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
mergeFrom
public VideoObjectTrackingAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VideoObjectTrackingAnnotation.Builder>
-
mergeFrom
public VideoObjectTrackingAnnotation.Builder mergeFrom(VideoObjectTrackingAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String 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
public VideoObjectTrackingAnnotation.Builder setInstanceId(String 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 instanceId to set.- Returns:
- This builder for chaining.
-
clearInstanceId
public VideoObjectTrackingAnnotation.Builder 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
public VideoObjectTrackingAnnotation.Builder setTimeOffset(com.google.protobuf.Duration value)
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
public VideoObjectTrackingAnnotation.Builder mergeTimeOffset(com.google.protobuf.Duration value)
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
public VideoObjectTrackingAnnotation.Builder 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
public BoundingPoly 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
public VideoObjectTrackingAnnotation.Builder setBoundingBox(BoundingPoly value)
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
public VideoObjectTrackingAnnotation.Builder setBoundingBox(BoundingPoly.Builder builderForValue)
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
public VideoObjectTrackingAnnotation.Builder mergeBoundingBox(BoundingPoly value)
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
public VideoObjectTrackingAnnotation.Builder 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
public BoundingPoly.Builder 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
public BoundingPolyOrBuilder 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
public VideoObjectTrackingAnnotation.Builder setScore(float value)
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
public VideoObjectTrackingAnnotation.Builder 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.
-
setUnknownFields
public final VideoObjectTrackingAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
mergeUnknownFields
public final VideoObjectTrackingAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
-