Class ObjectTrackingFrame.Builder (2.6.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ObjectTrackingFrame.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ObjectTrackingFrame.Builder
Overrides

build()

public ObjectTrackingFrame build()
Returns
TypeDescription
ObjectTrackingFrame

buildPartial()

public ObjectTrackingFrame buildPartial()
Returns
TypeDescription
ObjectTrackingFrame

clear()

public ObjectTrackingFrame.Builder clear()
Returns
TypeDescription
ObjectTrackingFrame.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ObjectTrackingFrame.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ObjectTrackingFrame.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ObjectTrackingFrame.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ObjectTrackingFrame.Builder
Overrides

clearTimeOffset()

public ObjectTrackingFrame.Builder clearTimeOffset()

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Returns
TypeDescription
ObjectTrackingFrame.Builder

clone()

public ObjectTrackingFrame.Builder clone()
Returns
TypeDescription
ObjectTrackingFrame.Builder
Overrides

getDefaultInstanceForType()

public ObjectTrackingFrame getDefaultInstanceForType()
Returns
TypeDescription
ObjectTrackingFrame

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
NormalizedBoundingBoxOrBuilder

getTimeOffset()

public Duration getTimeOffset()

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Returns
TypeDescription
Duration

The timeOffset.

getTimeOffsetBuilder()

public Duration.Builder getTimeOffsetBuilder()

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Returns
TypeDescription
Builder

getTimeOffsetOrBuilder()

public DurationOrBuilder getTimeOffsetOrBuilder()

The timestamp of the frame in microseconds.

.google.protobuf.Duration time_offset = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the timeOffset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ObjectTrackingFrame other)

public ObjectTrackingFrame.Builder mergeFrom(ObjectTrackingFrame other)
Parameter
NameDescription
otherObjectTrackingFrame
Returns
TypeDescription
ObjectTrackingFrame.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ObjectTrackingFrame.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ObjectTrackingFrame.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ObjectTrackingFrame.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueNormalizedBoundingBox
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
ObjectTrackingFrame.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ObjectTrackingFrame.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ObjectTrackingFrame.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ObjectTrackingFrame.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueNormalizedBoundingBox
Returns
TypeDescription
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
NameDescription
builderForValueNormalizedBoundingBox.Builder
Returns
TypeDescription
ObjectTrackingFrame.Builder

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

public ObjectTrackingFrame.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ObjectTrackingFrame.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ObjectTrackingFrame.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ObjectTrackingFrame.Builder
Overrides