Class OccupancyCountingPredictionResult.IdentifiedBox.Builder (0.6.0)

public static final class OccupancyCountingPredictionResult.IdentifiedBox.Builder extends GeneratedMessageV3.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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OccupancyCountingPredictionResult.IdentifiedBox.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder
Overrides

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

clearOneof(Descriptors.OneofDescriptor oneof)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OccupancyCountingPredictionResult.IdentifiedBox.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder
Overrides

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OccupancyCountingPredictionResult.IdentifiedBox.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final OccupancyCountingPredictionResult.IdentifiedBox.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OccupancyCountingPredictionResult.IdentifiedBox.Builder
Overrides