Class NormalizedBoundingBox (2.53.0)

public final class NormalizedBoundingBox extends GeneratedMessageV3 implements NormalizedBoundingBoxOrBuilder

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

Protobuf type google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox

Static Fields

BOTTOM_FIELD_NUMBER

public static final int BOTTOM_FIELD_NUMBER
Field Value
Type Description
int

LEFT_FIELD_NUMBER

public static final int LEFT_FIELD_NUMBER
Field Value
Type Description
int

RIGHT_FIELD_NUMBER

public static final int RIGHT_FIELD_NUMBER
Field Value
Type Description
int

TOP_FIELD_NUMBER

public static final int TOP_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NormalizedBoundingBox getDefaultInstance()
Returns
Type Description
NormalizedBoundingBox

getDescriptor()

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

newBuilder()

public static NormalizedBoundingBox.Builder newBuilder()
Returns
Type Description
NormalizedBoundingBox.Builder

newBuilder(NormalizedBoundingBox prototype)

public static NormalizedBoundingBox.Builder newBuilder(NormalizedBoundingBox prototype)
Parameter
Name Description
prototype NormalizedBoundingBox
Returns
Type Description
NormalizedBoundingBox.Builder

parseDelimitedFrom(InputStream input)

public static NormalizedBoundingBox parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NormalizedBoundingBox parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NormalizedBoundingBox parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NormalizedBoundingBox parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NormalizedBoundingBox parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NormalizedBoundingBox parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NormalizedBoundingBox
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NormalizedBoundingBox> parser()
Returns
Type Description
Parser<NormalizedBoundingBox>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBottom()

public float getBottom()

Bottom Y coordinate.

float bottom = 4;

Returns
Type Description
float

The bottom.

getDefaultInstanceForType()

public NormalizedBoundingBox getDefaultInstanceForType()
Returns
Type Description
NormalizedBoundingBox

getLeft()

public float getLeft()

Left X coordinate.

float left = 1;

Returns
Type Description
float

The left.

getParserForType()

public Parser<NormalizedBoundingBox> getParserForType()
Returns
Type Description
Parser<NormalizedBoundingBox>
Overrides

getRight()

public float getRight()

Right X coordinate.

float right = 3;

Returns
Type Description
float

The right.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTop()

public float getTop()

Top Y coordinate.

float top = 2;

Returns
Type Description
float

The top.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NormalizedBoundingBox.Builder newBuilderForType()
Returns
Type Description
NormalizedBoundingBox.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NormalizedBoundingBox.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NormalizedBoundingBox.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NormalizedBoundingBox.Builder toBuilder()
Returns
Type Description
NormalizedBoundingBox.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException