Class ObjectDetectionPredictionResult.Builder (0.9.0)

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

Prediction output format for Generic Object Detection.

Protobuf type google.cloud.visionai.v1.ObjectDetectionPredictionResult

Static Methods

getDescriptor()

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

Methods

addAllIdentifiedBoxes(Iterable<? extends ObjectDetectionPredictionResult.IdentifiedBox> values)

public ObjectDetectionPredictionResult.Builder addAllIdentifiedBoxes(Iterable<? extends ObjectDetectionPredictionResult.IdentifiedBox> values)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox>
Returns
Type Description
ObjectDetectionPredictionResult.Builder

addIdentifiedBoxes(ObjectDetectionPredictionResult.IdentifiedBox value)

public ObjectDetectionPredictionResult.Builder addIdentifiedBoxes(ObjectDetectionPredictionResult.IdentifiedBox value)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

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

addIdentifiedBoxes(ObjectDetectionPredictionResult.IdentifiedBox.Builder builderForValue)

public ObjectDetectionPredictionResult.Builder addIdentifiedBoxes(ObjectDetectionPredictionResult.IdentifiedBox.Builder builderForValue)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

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

addIdentifiedBoxes(int index, ObjectDetectionPredictionResult.IdentifiedBox value)

public ObjectDetectionPredictionResult.Builder addIdentifiedBoxes(int index, ObjectDetectionPredictionResult.IdentifiedBox value)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameters
Name Description
index int
value ObjectDetectionPredictionResult.IdentifiedBox
Returns
Type Description
ObjectDetectionPredictionResult.Builder

addIdentifiedBoxes(int index, ObjectDetectionPredictionResult.IdentifiedBox.Builder builderForValue)

public ObjectDetectionPredictionResult.Builder addIdentifiedBoxes(int index, ObjectDetectionPredictionResult.IdentifiedBox.Builder builderForValue)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameters
Name Description
index int
builderForValue ObjectDetectionPredictionResult.IdentifiedBox.Builder
Returns
Type Description
ObjectDetectionPredictionResult.Builder

addIdentifiedBoxesBuilder()

public ObjectDetectionPredictionResult.IdentifiedBox.Builder addIdentifiedBoxesBuilder()

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.Builder

addIdentifiedBoxesBuilder(int index)

public ObjectDetectionPredictionResult.IdentifiedBox.Builder addIdentifiedBoxesBuilder(int index)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameter
Name Description
index int
Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ObjectDetectionPredictionResult build()
Returns
Type Description
ObjectDetectionPredictionResult

buildPartial()

public ObjectDetectionPredictionResult buildPartial()
Returns
Type Description
ObjectDetectionPredictionResult

clear()

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

clearCurrentTime()

public ObjectDetectionPredictionResult.Builder clearCurrentTime()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
ObjectDetectionPredictionResult.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIdentifiedBoxes()

public ObjectDetectionPredictionResult.Builder clearIdentifiedBoxes()

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Returns
Type Description
ObjectDetectionPredictionResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCurrentTime()

public Timestamp getCurrentTime()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
Timestamp

The currentTime.

getCurrentTimeBuilder()

public Timestamp.Builder getCurrentTimeBuilder()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
Builder

getCurrentTimeOrBuilder()

public TimestampOrBuilder getCurrentTimeOrBuilder()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ObjectDetectionPredictionResult getDefaultInstanceForType()
Returns
Type Description
ObjectDetectionPredictionResult

getDescriptorForType()

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

getIdentifiedBoxes(int index)

public ObjectDetectionPredictionResult.IdentifiedBox getIdentifiedBoxes(int index)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameter
Name Description
index int
Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox

getIdentifiedBoxesBuilder(int index)

public ObjectDetectionPredictionResult.IdentifiedBox.Builder getIdentifiedBoxesBuilder(int index)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameter
Name Description
index int
Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBox.Builder

getIdentifiedBoxesBuilderList()

public List<ObjectDetectionPredictionResult.IdentifiedBox.Builder> getIdentifiedBoxesBuilderList()

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Returns
Type Description
List<Builder>

getIdentifiedBoxesCount()

public int getIdentifiedBoxesCount()

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Returns
Type Description
int

getIdentifiedBoxesList()

public List<ObjectDetectionPredictionResult.IdentifiedBox> getIdentifiedBoxesList()

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Returns
Type Description
List<IdentifiedBox>

getIdentifiedBoxesOrBuilder(int index)

public ObjectDetectionPredictionResult.IdentifiedBoxOrBuilder getIdentifiedBoxesOrBuilder(int index)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameter
Name Description
index int
Returns
Type Description
ObjectDetectionPredictionResult.IdentifiedBoxOrBuilder

getIdentifiedBoxesOrBuilderList()

public List<? extends ObjectDetectionPredictionResult.IdentifiedBoxOrBuilder> getIdentifiedBoxesOrBuilderList()

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBoxOrBuilder>

hasCurrentTime()

public boolean hasCurrentTime()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
boolean

Whether the currentTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCurrentTime(Timestamp value)

public ObjectDetectionPredictionResult.Builder mergeCurrentTime(Timestamp value)

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ObjectDetectionPredictionResult.Builder

mergeFrom(ObjectDetectionPredictionResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeIdentifiedBoxes(int index)

public ObjectDetectionPredictionResult.Builder removeIdentifiedBoxes(int index)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameter
Name Description
index int
Returns
Type Description
ObjectDetectionPredictionResult.Builder

setCurrentTime(Timestamp value)

public ObjectDetectionPredictionResult.Builder setCurrentTime(Timestamp value)

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ObjectDetectionPredictionResult.Builder

setCurrentTime(Timestamp.Builder builderForValue)

public ObjectDetectionPredictionResult.Builder setCurrentTime(Timestamp.Builder builderForValue)

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ObjectDetectionPredictionResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIdentifiedBoxes(int index, ObjectDetectionPredictionResult.IdentifiedBox value)

public ObjectDetectionPredictionResult.Builder setIdentifiedBoxes(int index, ObjectDetectionPredictionResult.IdentifiedBox value)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameters
Name Description
index int
value ObjectDetectionPredictionResult.IdentifiedBox
Returns
Type Description
ObjectDetectionPredictionResult.Builder

setIdentifiedBoxes(int index, ObjectDetectionPredictionResult.IdentifiedBox.Builder builderForValue)

public ObjectDetectionPredictionResult.Builder setIdentifiedBoxes(int index, ObjectDetectionPredictionResult.IdentifiedBox.Builder builderForValue)

A list of identified boxes.

repeated .google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox identified_boxes = 2;

Parameters
Name Description
index int
builderForValue ObjectDetectionPredictionResult.IdentifiedBox.Builder
Returns
Type Description
ObjectDetectionPredictionResult.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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