Class VideoObjectTrackingPredictionResult.BoundingBox.Builder (0.40.0)

public static final class VideoObjectTrackingPredictionResult.BoundingBox.Builder extends GeneratedMessage.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

Static Methods

getDescriptor()

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

Methods

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

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.

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 GeneratedMessage.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

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.