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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
clear
public VideoObjectTrackingAnnotation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
getDefaultInstanceForType
public VideoObjectTrackingAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VideoObjectTrackingAnnotation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VideoObjectTrackingAnnotation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VideoObjectTrackingAnnotation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
setField
public VideoObjectTrackingAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
clearField
public VideoObjectTrackingAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
clearOneof
public VideoObjectTrackingAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
setRepeatedField
public VideoObjectTrackingAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
addRepeatedField
public VideoObjectTrackingAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
mergeFrom
public VideoObjectTrackingAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VideoObjectTrackingAnnotation.Builder>
-
mergeFrom
public VideoObjectTrackingAnnotation.Builder mergeFrom(VideoObjectTrackingAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getInstanceId
in 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:
getInstanceIdBytes
in 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:
hasTimeOffset
in 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:
getTimeOffset
in 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:
getTimeOffsetOrBuilder
in 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:
hasBoundingBox
in 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:
getBoundingBox
in 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:
getBoundingBoxOrBuilder
in 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:
getScore
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
mergeUnknownFields
public final VideoObjectTrackingAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder>
-
-