Class ImageLocation (3.28.0)

public final class ImageLocation extends GeneratedMessageV3 implements ImageLocationOrBuilder

Location of the finding within an image.

Protobuf type google.privacy.dlp.v2.ImageLocation

Static Fields

BOUNDING_BOXES_FIELD_NUMBER

public static final int BOUNDING_BOXES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImageLocation getDefaultInstance()
Returns
TypeDescription
ImageLocation

getDescriptor()

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

newBuilder()

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

newBuilder(ImageLocation prototype)

public static ImageLocation.Builder newBuilder(ImageLocation prototype)
Parameter
NameDescription
prototypeImageLocation
Returns
TypeDescription
ImageLocation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBoundingBoxes(int index)

public BoundingBox getBoundingBoxes(int index)

Bounding boxes locating the pixels within the image containing the finding.

repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
BoundingBox

getBoundingBoxesCount()

public int getBoundingBoxesCount()

Bounding boxes locating the pixels within the image containing the finding.

repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;

Returns
TypeDescription
int

getBoundingBoxesList()

public List<BoundingBox> getBoundingBoxesList()

Bounding boxes locating the pixels within the image containing the finding.

repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;

Returns
TypeDescription
List<BoundingBox>

getBoundingBoxesOrBuilder(int index)

public BoundingBoxOrBuilder getBoundingBoxesOrBuilder(int index)

Bounding boxes locating the pixels within the image containing the finding.

repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
BoundingBoxOrBuilder

getBoundingBoxesOrBuilderList()

public List<? extends BoundingBoxOrBuilder> getBoundingBoxesOrBuilderList()

Bounding boxes locating the pixels within the image containing the finding.

repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;

Returns
TypeDescription
List<? extends com.google.privacy.dlp.v2.BoundingBoxOrBuilder>

getDefaultInstanceForType()

public ImageLocation getDefaultInstanceForType()
Returns
TypeDescription
ImageLocation

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 ImageLocation.Builder newBuilderForType()
Returns
TypeDescription
ImageLocation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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