Class SdpImageFindingLocation.SdpBoundingBox.Builder (0.36.0)

public static final class SdpImageFindingLocation.SdpBoundingBox.Builder extends GeneratedMessage.Builder<SdpImageFindingLocation.SdpBoundingBox.Builder> implements SdpImageFindingLocation.SdpBoundingBoxOrBuilder

Bounding box encompassing a finding within an image.

Protobuf type google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox

Static Methods

getDescriptor()

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

Methods

build()

public SdpImageFindingLocation.SdpBoundingBox build()
Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox

buildPartial()

public SdpImageFindingLocation.SdpBoundingBox buildPartial()
Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox

clear()

public SdpImageFindingLocation.SdpBoundingBox.Builder clear()
Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder
Overrides

clearHeight()

public SdpImageFindingLocation.SdpBoundingBox.Builder clearHeight()

Height of the bounding box in pixels.

int32 height = 4;

Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder

This builder for chaining.

clearLeft()

public SdpImageFindingLocation.SdpBoundingBox.Builder clearLeft()

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

int32 left = 2;

Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder

This builder for chaining.

clearTop()

public SdpImageFindingLocation.SdpBoundingBox.Builder clearTop()

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

int32 top = 1;

Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder

This builder for chaining.

clearWidth()

public SdpImageFindingLocation.SdpBoundingBox.Builder clearWidth()

Width of the bounding box in pixels.

int32 width = 3;

Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder

This builder for chaining.

getDefaultInstanceForType()

public SdpImageFindingLocation.SdpBoundingBox getDefaultInstanceForType()
Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHeight()

public int getHeight()

Height of the bounding box in pixels.

int32 height = 4;

Returns
Type Description
int

The height.

getLeft()

public int getLeft()

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

int32 left = 2;

Returns
Type Description
int

The left.

getTop()

public int getTop()

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

int32 top = 1;

Returns
Type Description
int

The top.

getWidth()

public int getWidth()

Width of the bounding box in pixels.

int32 width = 3;

Returns
Type Description
int

The width.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SdpImageFindingLocation.SdpBoundingBox other)

public SdpImageFindingLocation.SdpBoundingBox.Builder mergeFrom(SdpImageFindingLocation.SdpBoundingBox other)
Parameter
Name Description
other SdpImageFindingLocation.SdpBoundingBox
Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SdpImageFindingLocation.SdpBoundingBox.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SdpImageFindingLocation.SdpBoundingBox.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder
Overrides

setHeight(int value)

public SdpImageFindingLocation.SdpBoundingBox.Builder setHeight(int value)

Height of the bounding box in pixels.

int32 height = 4;

Parameter
Name Description
value int

The height to set.

Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder

This builder for chaining.

setLeft(int value)

public SdpImageFindingLocation.SdpBoundingBox.Builder setLeft(int value)

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

int32 left = 2;

Parameter
Name Description
value int

The left to set.

Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder

This builder for chaining.

setTop(int value)

public SdpImageFindingLocation.SdpBoundingBox.Builder setTop(int value)

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

int32 top = 1;

Parameter
Name Description
value int

The top to set.

Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder

This builder for chaining.

setWidth(int value)

public SdpImageFindingLocation.SdpBoundingBox.Builder setWidth(int value)

Width of the bounding box in pixels.

int32 width = 3;

Parameter
Name Description
value int

The width to set.

Returns
Type Description
SdpImageFindingLocation.SdpBoundingBox.Builder

This builder for chaining.