Class BoundingBox (3.13.0)

public final class BoundingBox extends GeneratedMessageV3 implements BoundingBoxOrBuilder

Bounding box encompassing detected text within an image.

Protobuf type google.privacy.dlp.v2.BoundingBox

Static Fields

HEIGHT_FIELD_NUMBER

public static final int HEIGHT_FIELD_NUMBER
Field Value
TypeDescription
int

LEFT_FIELD_NUMBER

public static final int LEFT_FIELD_NUMBER
Field Value
TypeDescription
int

TOP_FIELD_NUMBER

public static final int TOP_FIELD_NUMBER
Field Value
TypeDescription
int

WIDTH_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BoundingBox getDefaultInstance()
Returns
TypeDescription
BoundingBox

getDescriptor()

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

newBuilder()

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

newBuilder(BoundingBox prototype)

public static BoundingBox.Builder newBuilder(BoundingBox prototype)
Parameter
NameDescription
prototypeBoundingBox
Returns
TypeDescription
BoundingBox.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public BoundingBox getDefaultInstanceForType()
Returns
TypeDescription
BoundingBox

getHeight()

public int getHeight()

Height of the bounding box in pixels.

int32 height = 4;

Returns
TypeDescription
int

The height.

getLeft()

public int getLeft()

Left coordinate of the bounding box. (0,0) is upper left.

int32 left = 2;

Returns
TypeDescription
int

The left.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTop()

public int getTop()

Top coordinate of the bounding box. (0,0) is upper left.

int32 top = 1;

Returns
TypeDescription
int

The top.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWidth()

public int getWidth()

Width of the bounding box in pixels.

int32 width = 3;

Returns
TypeDescription
int

The width.

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 BoundingBox.Builder newBuilderForType()
Returns
TypeDescription
BoundingBox.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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