Class ObjectTrackingFrame.Builder (2.45.0)

public static final class ObjectTrackingFrame.Builder extends GeneratedMessageV3.Builder<ObjectTrackingFrame.Builder> implements ObjectTrackingFrameOrBuilder

Video frame level annotations for object detection and tracking. This field stores per frame location, time offset, and confidence.

Protobuf type google.cloud.videointelligence.v1.ObjectTrackingFrame

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ObjectTrackingFrame.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides

build()

public ObjectTrackingFrame build()
Returns
Type Description
ObjectTrackingFrame

buildPartial()

public ObjectTrackingFrame buildPartial()
Returns
Type Description
ObjectTrackingFrame

clear()

public ObjectTrackingFrame.Builder clear()
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ObjectTrackingFrame.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides

clearNormalizedBoundingBox()

public ObjectTrackingFrame.Builder clearNormalizedBoundingBox()

The normalized bounding box location of this object track for the frame.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Returns
Type Description
ObjectTrackingFrame.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ObjectTrackingFrame.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides

clearTimeOffset()

public ObjectTrackingFrame.Builder clearTimeOffset()

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
ObjectTrackingFrame.Builder

clone()

public ObjectTrackingFrame.Builder clone()
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides

getDefaultInstanceForType()

public ObjectTrackingFrame getDefaultInstanceForType()
Returns
Type Description
ObjectTrackingFrame

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNormalizedBoundingBox()

public NormalizedBoundingBox getNormalizedBoundingBox()

The normalized bounding box location of this object track for the frame.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Returns
Type Description
NormalizedBoundingBox

The normalizedBoundingBox.

getNormalizedBoundingBoxBuilder()

public NormalizedBoundingBox.Builder getNormalizedBoundingBoxBuilder()

The normalized bounding box location of this object track for the frame.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Returns
Type Description
NormalizedBoundingBox.Builder

getNormalizedBoundingBoxOrBuilder()

public NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder()

The normalized bounding box location of this object track for the frame.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Returns
Type Description
NormalizedBoundingBoxOrBuilder

getTimeOffset()

public Duration getTimeOffset()

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
Duration

The timeOffset.

getTimeOffsetBuilder()

public Duration.Builder getTimeOffsetBuilder()

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
Builder

getTimeOffsetOrBuilder()

public DurationOrBuilder getTimeOffsetOrBuilder()

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
DurationOrBuilder

hasNormalizedBoundingBox()

public boolean hasNormalizedBoundingBox()

The normalized bounding box location of this object track for the frame.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Returns
Type Description
boolean

Whether the normalizedBoundingBox field is set.

hasTimeOffset()

public boolean hasTimeOffset()

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
boolean

Whether the timeOffset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ObjectTrackingFrame other)

public ObjectTrackingFrame.Builder mergeFrom(ObjectTrackingFrame other)
Parameter
Name Description
other ObjectTrackingFrame
Returns
Type Description
ObjectTrackingFrame.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ObjectTrackingFrame.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ObjectTrackingFrame.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides

mergeNormalizedBoundingBox(NormalizedBoundingBox value)

public ObjectTrackingFrame.Builder mergeNormalizedBoundingBox(NormalizedBoundingBox value)

The normalized bounding box location of this object track for the frame.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Parameter
Name Description
value NormalizedBoundingBox
Returns
Type Description
ObjectTrackingFrame.Builder

mergeTimeOffset(Duration value)

public ObjectTrackingFrame.Builder mergeTimeOffset(Duration value)

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
value Duration
Returns
Type Description
ObjectTrackingFrame.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ObjectTrackingFrame.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ObjectTrackingFrame.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides

setNormalizedBoundingBox(NormalizedBoundingBox value)

public ObjectTrackingFrame.Builder setNormalizedBoundingBox(NormalizedBoundingBox value)

The normalized bounding box location of this object track for the frame.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Parameter
Name Description
value NormalizedBoundingBox
Returns
Type Description
ObjectTrackingFrame.Builder

setNormalizedBoundingBox(NormalizedBoundingBox.Builder builderForValue)

public ObjectTrackingFrame.Builder setNormalizedBoundingBox(NormalizedBoundingBox.Builder builderForValue)

The normalized bounding box location of this object track for the frame.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Parameter
Name Description
builderForValue NormalizedBoundingBox.Builder
Returns
Type Description
ObjectTrackingFrame.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ObjectTrackingFrame.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides

setTimeOffset(Duration value)

public ObjectTrackingFrame.Builder setTimeOffset(Duration value)

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
value Duration
Returns
Type Description
ObjectTrackingFrame.Builder

setTimeOffset(Duration.Builder builderForValue)

public ObjectTrackingFrame.Builder setTimeOffset(Duration.Builder builderForValue)

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ObjectTrackingFrame.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ObjectTrackingFrame.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ObjectTrackingFrame.Builder
Overrides