Class NormalizedBoundingBox (2.14.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.v1p3beta1.NormalizedBoundingBox

Static Fields

BOTTOM_FIELD_NUMBER

public static final int BOTTOM_FIELD_NUMBER
Field Value
TypeDescription
int

LEFT_FIELD_NUMBER

public static final int LEFT_FIELD_NUMBER
Field Value
TypeDescription
int

RIGHT_FIELD_NUMBER

public static final int RIGHT_FIELD_NUMBER
Field Value
TypeDescription
int

TOP_FIELD_NUMBER

public static final int TOP_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NormalizedBoundingBox getDefaultInstance()
Returns
TypeDescription
NormalizedBoundingBox

getDescriptor()

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

newBuilder()

public static NormalizedBoundingBox.Builder newBuilder()
Returns
TypeDescription
NormalizedBoundingBox.Builder

newBuilder(NormalizedBoundingBox prototype)

public static NormalizedBoundingBox.Builder newBuilder(NormalizedBoundingBox prototype)
Parameter
NameDescription
prototypeNormalizedBoundingBox
Returns
TypeDescription
NormalizedBoundingBox.Builder

parseDelimitedFrom(InputStream input)

public static NormalizedBoundingBox parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NormalizedBoundingBox parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NormalizedBoundingBox parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NormalizedBoundingBox parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NormalizedBoundingBox parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NormalizedBoundingBox parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NormalizedBoundingBox parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NormalizedBoundingBox
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NormalizedBoundingBox> parser()
Returns
TypeDescription
Parser<NormalizedBoundingBox>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBottom()

public float getBottom()

Bottom Y coordinate.

float bottom = 4;

Returns
TypeDescription
float

The bottom.

getDefaultInstanceForType()

public NormalizedBoundingBox getDefaultInstanceForType()
Returns
TypeDescription
NormalizedBoundingBox

getLeft()

public float getLeft()

Left X coordinate.

float left = 1;

Returns
TypeDescription
float

The left.

getParserForType()

public Parser<NormalizedBoundingBox> getParserForType()
Returns
TypeDescription
Parser<NormalizedBoundingBox>
Overrides

getRight()

public float getRight()

Right X coordinate.

float right = 3;

Returns
TypeDescription
float

The right.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTop()

public float getTop()

Top Y coordinate.

float top = 2;

Returns
TypeDescription
float

The top.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NormalizedBoundingBox.Builder newBuilderForType()
Returns
TypeDescription
NormalizedBoundingBox.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NormalizedBoundingBox.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NormalizedBoundingBox.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NormalizedBoundingBox.Builder toBuilder()
Returns
TypeDescription
NormalizedBoundingBox.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException