Class OccupancyCountingPredictionResult.IdentifiedBox.Builder (0.40.0)

public static final class OccupancyCountingPredictionResult.IdentifiedBox.Builder extends GeneratedMessage.Builder<OccupancyCountingPredictionResult.IdentifiedBox.Builder> implements OccupancyCountingPredictionResult.IdentifiedBoxOrBuilder

Identified box contains location and the entity of the object.

Protobuf type google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox

Static Methods

getDescriptor()

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

Methods

build()

public OccupancyCountingPredictionResult.IdentifiedBox build()
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox

buildPartial()

public OccupancyCountingPredictionResult.IdentifiedBox buildPartial()
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox

clear()

public OccupancyCountingPredictionResult.IdentifiedBox.Builder clear()
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder
Overrides

clearBoxId()

public OccupancyCountingPredictionResult.IdentifiedBox.Builder clearBoxId()

An unique id for this box.

int64 box_id = 1;

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

This builder for chaining.

clearEntity()

public OccupancyCountingPredictionResult.IdentifiedBox.Builder clearEntity()

Entity of this box.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

clearNormalizedBoundingBox()

public OccupancyCountingPredictionResult.IdentifiedBox.Builder clearNormalizedBoundingBox()

Bounding Box in the normalized coordinates.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

clearScore()

public OccupancyCountingPredictionResult.IdentifiedBox.Builder clearScore()

Confidence score associated with this box.

float score = 3;

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

This builder for chaining.

clearTrackId()

public OccupancyCountingPredictionResult.IdentifiedBox.Builder clearTrackId()

An unique id to identify a track. It should be consistent across frames. It only exists if tracking is enabled.

int64 track_id = 5;

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

This builder for chaining.

getBoxId()

public long getBoxId()

An unique id for this box.

int64 box_id = 1;

Returns
Type Description
long

The boxId.

getDefaultInstanceForType()

public OccupancyCountingPredictionResult.IdentifiedBox getDefaultInstanceForType()
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox

getDescriptorForType()

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

getEntity()

public OccupancyCountingPredictionResult.Entity getEntity()

Entity of this box.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;

Returns
Type Description
OccupancyCountingPredictionResult.Entity

The entity.

getEntityBuilder()

public OccupancyCountingPredictionResult.Entity.Builder getEntityBuilder()

Entity of this box.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;

Returns
Type Description
OccupancyCountingPredictionResult.Entity.Builder

getEntityOrBuilder()

public OccupancyCountingPredictionResult.EntityOrBuilder getEntityOrBuilder()

Entity of this box.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;

Returns
Type Description
OccupancyCountingPredictionResult.EntityOrBuilder

getNormalizedBoundingBox()

public OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox getNormalizedBoundingBox()

Bounding Box in the normalized coordinates.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox

The normalizedBoundingBox.

getNormalizedBoundingBoxBuilder()

public OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder getNormalizedBoundingBoxBuilder()

Bounding Box in the normalized coordinates.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder

getNormalizedBoundingBoxOrBuilder()

public OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder()

Bounding Box in the normalized coordinates.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBoxOrBuilder

getScore()

public float getScore()

Confidence score associated with this box.

float score = 3;

Returns
Type Description
float

The score.

getTrackId()

public long getTrackId()

An unique id to identify a track. It should be consistent across frames. It only exists if tracking is enabled.

int64 track_id = 5;

Returns
Type Description
long

The trackId.

hasEntity()

public boolean hasEntity()

Entity of this box.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;

Returns
Type Description
boolean

Whether the entity field is set.

hasNormalizedBoundingBox()

public boolean hasNormalizedBoundingBox()

Bounding Box in the normalized coordinates.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;

Returns
Type Description
boolean

Whether the normalizedBoundingBox field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEntity(OccupancyCountingPredictionResult.Entity value)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder mergeEntity(OccupancyCountingPredictionResult.Entity value)

Entity of this box.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;

Parameter
Name Description
value OccupancyCountingPredictionResult.Entity
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

mergeFrom(OccupancyCountingPredictionResult.IdentifiedBox other)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder mergeFrom(OccupancyCountingPredictionResult.IdentifiedBox other)
Parameter
Name Description
other OccupancyCountingPredictionResult.IdentifiedBox
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder
Overrides

mergeNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox value)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder mergeNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox value)

Bounding Box in the normalized coordinates.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;

Parameter
Name Description
value OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

setBoxId(long value)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder setBoxId(long value)

An unique id for this box.

int64 box_id = 1;

Parameter
Name Description
value long

The boxId to set.

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

This builder for chaining.

setEntity(OccupancyCountingPredictionResult.Entity value)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder setEntity(OccupancyCountingPredictionResult.Entity value)

Entity of this box.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;

Parameter
Name Description
value OccupancyCountingPredictionResult.Entity
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

setEntity(OccupancyCountingPredictionResult.Entity.Builder builderForValue)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder setEntity(OccupancyCountingPredictionResult.Entity.Builder builderForValue)

Entity of this box.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;

Parameter
Name Description
builderForValue OccupancyCountingPredictionResult.Entity.Builder
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

setNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox value)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder setNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox value)

Bounding Box in the normalized coordinates.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;

Parameter
Name Description
value OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

setNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder builderForValue)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder setNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder builderForValue)

Bounding Box in the normalized coordinates.

.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;

Parameter
Name Description
builderForValue OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

setScore(float value)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder setScore(float value)

Confidence score associated with this box.

float score = 3;

Parameter
Name Description
value float

The score to set.

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

This builder for chaining.

setTrackId(long value)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder setTrackId(long value)

An unique id to identify a track. It should be consistent across frames. It only exists if tracking is enabled.

int64 track_id = 5;

Parameter
Name Description
value long

The trackId to set.

Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder

This builder for chaining.