Class ObjectTrackingFrame.Builder (0.155.0)

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

Video frame level annotation for object detection and tracking.

Protobuf type google.cloud.datalabeling.v1beta1.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

clearBoundedArea()

public ObjectTrackingFrame.Builder clearBoundedArea()
Returns
TypeDescription
ObjectTrackingFrame.Builder

clearBoundingPoly()

public ObjectTrackingFrame.Builder clearBoundingPoly()

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
ObjectTrackingFrame.Builder

clearField(Descriptors.FieldDescriptor field)

public ObjectTrackingFrame.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ObjectTrackingFrame.Builder
Overrides

clearNormalizedBoundingPoly()

public ObjectTrackingFrame.Builder clearNormalizedBoundingPoly()

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2;

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 time offset of this frame relative to the beginning of the video.

.google.protobuf.Duration time_offset = 3;

Returns
TypeDescription
ObjectTrackingFrame.Builder

clone()

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

getBoundedAreaCase()

public ObjectTrackingFrame.BoundedAreaCase getBoundedAreaCase()
Returns
TypeDescription
ObjectTrackingFrame.BoundedAreaCase

getBoundingPoly()

public BoundingPoly getBoundingPoly()

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
BoundingPoly

The boundingPoly.

getBoundingPolyBuilder()

public BoundingPoly.Builder getBoundingPolyBuilder()

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
BoundingPoly.Builder

getBoundingPolyOrBuilder()

public BoundingPolyOrBuilder getBoundingPolyOrBuilder()

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
BoundingPolyOrBuilder

getDefaultInstanceForType()

public ObjectTrackingFrame getDefaultInstanceForType()
Returns
TypeDescription
ObjectTrackingFrame

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNormalizedBoundingPoly()

public NormalizedBoundingPoly getNormalizedBoundingPoly()

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2;

Returns
TypeDescription
NormalizedBoundingPoly

The normalizedBoundingPoly.

getNormalizedBoundingPolyBuilder()

public NormalizedBoundingPoly.Builder getNormalizedBoundingPolyBuilder()

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2;

Returns
TypeDescription
NormalizedBoundingPoly.Builder

getNormalizedBoundingPolyOrBuilder()

public NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder()

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2;

Returns
TypeDescription
NormalizedBoundingPolyOrBuilder

getTimeOffset()

public Duration getTimeOffset()

The time offset of this frame relative to the beginning of the video.

.google.protobuf.Duration time_offset = 3;

Returns
TypeDescription
Duration

The timeOffset.

getTimeOffsetBuilder()

public Duration.Builder getTimeOffsetBuilder()

The time offset of this frame relative to the beginning of the video.

.google.protobuf.Duration time_offset = 3;

Returns
TypeDescription
Builder

getTimeOffsetOrBuilder()

public DurationOrBuilder getTimeOffsetOrBuilder()

The time offset of this frame relative to the beginning of the video.

.google.protobuf.Duration time_offset = 3;

Returns
TypeDescription
DurationOrBuilder

hasBoundingPoly()

public boolean hasBoundingPoly()

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
boolean

Whether the boundingPoly field is set.

hasNormalizedBoundingPoly()

public boolean hasNormalizedBoundingPoly()

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2;

Returns
TypeDescription
boolean

Whether the normalizedBoundingPoly field is set.

hasTimeOffset()

public boolean hasTimeOffset()

The time offset of this frame relative to the beginning of the video.

.google.protobuf.Duration time_offset = 3;

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

mergeBoundingPoly(BoundingPoly value)

public ObjectTrackingFrame.Builder mergeBoundingPoly(BoundingPoly value)

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1;

Parameter
NameDescription
valueBoundingPoly
Returns
TypeDescription
ObjectTrackingFrame.Builder

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

mergeNormalizedBoundingPoly(NormalizedBoundingPoly value)

public ObjectTrackingFrame.Builder mergeNormalizedBoundingPoly(NormalizedBoundingPoly value)

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2;

Parameter
NameDescription
valueNormalizedBoundingPoly
Returns
TypeDescription
ObjectTrackingFrame.Builder

mergeTimeOffset(Duration value)

public ObjectTrackingFrame.Builder mergeTimeOffset(Duration value)

The time offset of this frame relative to the beginning of the video.

.google.protobuf.Duration time_offset = 3;

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

setBoundingPoly(BoundingPoly value)

public ObjectTrackingFrame.Builder setBoundingPoly(BoundingPoly value)

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1;

Parameter
NameDescription
valueBoundingPoly
Returns
TypeDescription
ObjectTrackingFrame.Builder

setBoundingPoly(BoundingPoly.Builder builderForValue)

public ObjectTrackingFrame.Builder setBoundingPoly(BoundingPoly.Builder builderForValue)

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1;

Parameter
NameDescription
builderForValueBoundingPoly.Builder
Returns
TypeDescription
ObjectTrackingFrame.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNormalizedBoundingPoly(NormalizedBoundingPoly value)

public ObjectTrackingFrame.Builder setNormalizedBoundingPoly(NormalizedBoundingPoly value)

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2;

Parameter
NameDescription
valueNormalizedBoundingPoly
Returns
TypeDescription
ObjectTrackingFrame.Builder

setNormalizedBoundingPoly(NormalizedBoundingPoly.Builder builderForValue)

public ObjectTrackingFrame.Builder setNormalizedBoundingPoly(NormalizedBoundingPoly.Builder builderForValue)

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2;

Parameter
NameDescription
builderForValueNormalizedBoundingPoly.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 time offset of this frame relative to the beginning of the video.

.google.protobuf.Duration time_offset = 3;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
ObjectTrackingFrame.Builder

setTimeOffset(Duration.Builder builderForValue)

public ObjectTrackingFrame.Builder setTimeOffset(Duration.Builder builderForValue)

The time offset of this frame relative to the beginning of the video.

.google.protobuf.Duration time_offset = 3;

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