Class VideoObjectTrackingPredictionResult.BoundingBox.Builder (0.3.0)

public static final class VideoObjectTrackingPredictionResult.BoundingBox.Builder extends GeneratedMessageV3.Builder<VideoObjectTrackingPredictionResult.BoundingBox.Builder> implements VideoObjectTrackingPredictionResult.BoundingBoxOrBuilder

Boundingbox for detected object. I.e. the rectangle over the video frame pinpointing the found AnnotationSpec. The coordinates are relative to the frame size, and the point 0,0 is in the top left of the frame.

Protobuf type google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VideoObjectTrackingPredictionResult.BoundingBox.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VideoObjectTrackingPredictionResult.BoundingBox build()
Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox

buildPartial()

public VideoObjectTrackingPredictionResult.BoundingBox buildPartial()
Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox

clear()

public VideoObjectTrackingPredictionResult.BoundingBox.Builder clear()
Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearXMax()

public VideoObjectTrackingPredictionResult.BoundingBox.Builder clearXMax()

The rightmost coordinate of the bounding box.

float x_max = 2;

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder

This builder for chaining.

clearXMin()

public VideoObjectTrackingPredictionResult.BoundingBox.Builder clearXMin()

The leftmost coordinate of the bounding box.

float x_min = 1;

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder

This builder for chaining.

clearYMax()

public VideoObjectTrackingPredictionResult.BoundingBox.Builder clearYMax()

The bottommost coordinate of the bounding box.

float y_max = 4;

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder

This builder for chaining.

clearYMin()

public VideoObjectTrackingPredictionResult.BoundingBox.Builder clearYMin()

The topmost coordinate of the bounding box.

float y_min = 3;

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder

This builder for chaining.

clone()

public VideoObjectTrackingPredictionResult.BoundingBox.Builder clone()
Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder
Overrides

getDefaultInstanceForType()

public VideoObjectTrackingPredictionResult.BoundingBox getDefaultInstanceForType()
Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox

getDescriptorForType()

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

getXMax()

public float getXMax()

The rightmost coordinate of the bounding box.

float x_max = 2;

Returns
Type Description
float

The xMax.

getXMin()

public float getXMin()

The leftmost coordinate of the bounding box.

float x_min = 1;

Returns
Type Description
float

The xMin.

getYMax()

public float getYMax()

The bottommost coordinate of the bounding box.

float y_max = 4;

Returns
Type Description
float

The yMax.

getYMin()

public float getYMin()

The topmost coordinate of the bounding box.

float y_min = 3;

Returns
Type Description
float

The yMin.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VideoObjectTrackingPredictionResult.BoundingBox other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setXMax(float value)

public VideoObjectTrackingPredictionResult.BoundingBox.Builder setXMax(float value)

The rightmost coordinate of the bounding box.

float x_max = 2;

Parameter
Name Description
value float

The xMax to set.

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder

This builder for chaining.

setXMin(float value)

public VideoObjectTrackingPredictionResult.BoundingBox.Builder setXMin(float value)

The leftmost coordinate of the bounding box.

float x_min = 1;

Parameter
Name Description
value float

The xMin to set.

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder

This builder for chaining.

setYMax(float value)

public VideoObjectTrackingPredictionResult.BoundingBox.Builder setYMax(float value)

The bottommost coordinate of the bounding box.

float y_max = 4;

Parameter
Name Description
value float

The yMax to set.

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder

This builder for chaining.

setYMin(float value)

public VideoObjectTrackingPredictionResult.BoundingBox.Builder setYMin(float value)

The topmost coordinate of the bounding box.

float y_min = 3;

Parameter
Name Description
value float

The yMin to set.

Returns
Type Description
VideoObjectTrackingPredictionResult.BoundingBox.Builder

This builder for chaining.