Class ObjectDetectionPredictionResult.IdentifiedBox.Builder (0.5.0)

public static final class ObjectDetectionPredictionResult.IdentifiedBox.Builder extends GeneratedMessageV3.Builder<ObjectDetectionPredictionResult.IdentifiedBox.Builder> implements ObjectDetectionPredictionResult.IdentifiedBoxOrBuilder

Identified box contains location and the entity of the object.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearBoxId()

public ObjectDetectionPredictionResult.IdentifiedBox.Builder clearBoxId()

An unique id for this box.

int64 box_id = 1;

Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.Builder

This builder for chaining.

clearConfidenceScore()

public ObjectDetectionPredictionResult.IdentifiedBox.Builder clearConfidenceScore()

Confidence score associated with this box.

float confidence_score = 3;

Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.Builder

This builder for chaining.

clearEntity()

public ObjectDetectionPredictionResult.IdentifiedBox.Builder clearEntity()

Entity of this box.

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

Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNormalizedBoundingBox()

public ObjectDetectionPredictionResult.IdentifiedBox.Builder clearNormalizedBoundingBox()

Bounding Box in the normalized coordinates.

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

Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBoxId()

public long getBoxId()

An unique id for this box.

int64 box_id = 1;

Returns
Type Description
long

The boxId.

getConfidenceScore()

public float getConfidenceScore()

Confidence score associated with this box.

float confidence_score = 3;

Returns
Type Description
float

The confidenceScore.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getEntity()

public ObjectDetectionPredictionResult.Entity getEntity()

Entity of this box.

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

Returns
Type Description
ObjectDetectionPredictionResult.Entity

The entity.

getEntityBuilder()

public ObjectDetectionPredictionResult.Entity.Builder getEntityBuilder()

Entity of this box.

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

Returns
Type Description
ObjectDetectionPredictionResult.Entity.Builder

getEntityOrBuilder()

public ObjectDetectionPredictionResult.EntityOrBuilder getEntityOrBuilder()

Entity of this box.

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

Returns
Type Description
ObjectDetectionPredictionResult.EntityOrBuilder

getNormalizedBoundingBox()

public ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox getNormalizedBoundingBox()

Bounding Box in the normalized coordinates.

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

Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox

The normalizedBoundingBox.

getNormalizedBoundingBoxBuilder()

public ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder getNormalizedBoundingBoxBuilder()

Bounding Box in the normalized coordinates.

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

Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder

getNormalizedBoundingBoxOrBuilder()

public ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder()

Bounding Box in the normalized coordinates.

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

Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBoxOrBuilder

hasEntity()

public boolean hasEntity()

Entity of this box.

.google.cloud.visionai.v1.ObjectDetectionPredictionResult.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.ObjectDetectionPredictionResult.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(ObjectDetectionPredictionResult.Entity value)

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

Entity of this box.

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

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

mergeFrom(ObjectDetectionPredictionResult.IdentifiedBox other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNormalizedBoundingBox(ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox value)

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

Bounding Box in the normalized coordinates.

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBoxId(long value)

public ObjectDetectionPredictionResult.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
ObjectDetectionPredictionResult.IdentifiedBox.Builder

This builder for chaining.

setConfidenceScore(float value)

public ObjectDetectionPredictionResult.IdentifiedBox.Builder setConfidenceScore(float value)

Confidence score associated with this box.

float confidence_score = 3;

Parameter
Name Description
value float

The confidenceScore to set.

Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.Builder

This builder for chaining.

setEntity(ObjectDetectionPredictionResult.Entity value)

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

Entity of this box.

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

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

setEntity(ObjectDetectionPredictionResult.Entity.Builder builderForValue)

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

Entity of this box.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNormalizedBoundingBox(ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox value)

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

Bounding Box in the normalized coordinates.

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

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

setNormalizedBoundingBox(ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder builderForValue)

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

Bounding Box in the normalized coordinates.

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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