Class NormalizedBoundingBox.Builder (2.12.0)

public static final class NormalizedBoundingBox.Builder extends GeneratedMessageV3.Builder<NormalizedBoundingBox.Builder> implements NormalizedBoundingBoxOrBuilder

Normalized bounding box. The normalized vertex coordinates are relative to the original image. Range: [0, 1].

Protobuf type google.cloud.videointelligence.v1beta2.NormalizedBoundingBox

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NormalizedBoundingBox build()
Returns
TypeDescription
NormalizedBoundingBox

buildPartial()

public NormalizedBoundingBox buildPartial()
Returns
TypeDescription
NormalizedBoundingBox

clear()

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

clearBottom()

public NormalizedBoundingBox.Builder clearBottom()

Bottom Y coordinate.

float bottom = 4;

Returns
TypeDescription
NormalizedBoundingBox.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLeft()

public NormalizedBoundingBox.Builder clearLeft()

Left X coordinate.

float left = 1;

Returns
TypeDescription
NormalizedBoundingBox.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRight()

public NormalizedBoundingBox.Builder clearRight()

Right X coordinate.

float right = 3;

Returns
TypeDescription
NormalizedBoundingBox.Builder

This builder for chaining.

clearTop()

public NormalizedBoundingBox.Builder clearTop()

Top Y coordinate.

float top = 2;

Returns
TypeDescription
NormalizedBoundingBox.Builder

This builder for chaining.

clone()

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

getBottom()

public float getBottom()

Bottom Y coordinate.

float bottom = 4;

Returns
TypeDescription
float

The bottom.

getDefaultInstanceForType()

public NormalizedBoundingBox getDefaultInstanceForType()
Returns
TypeDescription
NormalizedBoundingBox

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLeft()

public float getLeft()

Left X coordinate.

float left = 1;

Returns
TypeDescription
float

The left.

getRight()

public float getRight()

Right X coordinate.

float right = 3;

Returns
TypeDescription
float

The right.

getTop()

public float getTop()

Top Y coordinate.

float top = 2;

Returns
TypeDescription
float

The top.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NormalizedBoundingBox other)

public NormalizedBoundingBox.Builder mergeFrom(NormalizedBoundingBox other)
Parameter
NameDescription
otherNormalizedBoundingBox
Returns
TypeDescription
NormalizedBoundingBox.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public NormalizedBoundingBox.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NormalizedBoundingBox.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBottom(float value)

public NormalizedBoundingBox.Builder setBottom(float value)

Bottom Y coordinate.

float bottom = 4;

Parameter
NameDescription
valuefloat

The bottom to set.

Returns
TypeDescription
NormalizedBoundingBox.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLeft(float value)

public NormalizedBoundingBox.Builder setLeft(float value)

Left X coordinate.

float left = 1;

Parameter
NameDescription
valuefloat

The left to set.

Returns
TypeDescription
NormalizedBoundingBox.Builder

This builder for chaining.

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

public NormalizedBoundingBox.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NormalizedBoundingBox.Builder
Overrides

setRight(float value)

public NormalizedBoundingBox.Builder setRight(float value)

Right X coordinate.

float right = 3;

Parameter
NameDescription
valuefloat

The right to set.

Returns
TypeDescription
NormalizedBoundingBox.Builder

This builder for chaining.

setTop(float value)

public NormalizedBoundingBox.Builder setTop(float value)

Top Y coordinate.

float top = 2;

Parameter
NameDescription
valuefloat

The top to set.

Returns
TypeDescription
NormalizedBoundingBox.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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