Class ImageObjectDetectionPredictionResult.Builder (3.2.0)

public static final class ImageObjectDetectionPredictionResult.Builder extends GeneratedMessageV3.Builder<ImageObjectDetectionPredictionResult.Builder> implements ImageObjectDetectionPredictionResultOrBuilder

Prediction output format for Image Object Detection.

Protobuf type google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllBboxes(Iterable<? extends ListValue> values)

public ImageObjectDetectionPredictionResult.Builder addAllBboxes(Iterable<? extends ListValue> values)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.ListValue>
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

addAllConfidences(Iterable<? extends Float> values)

public ImageObjectDetectionPredictionResult.Builder addAllConfidences(Iterable<? extends Float> values)

The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

repeated float confidences = 3;

Parameter
NameDescription
valuesIterable<? extends java.lang.Float>

The confidences to add.

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

addAllDisplayNames(Iterable<String> values)

public ImageObjectDetectionPredictionResult.Builder addAllDisplayNames(Iterable<String> values)

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

repeated string display_names = 2;

Parameter
NameDescription
valuesIterable<String>

The displayNames to add.

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

addAllIds(Iterable<? extends Long> values)

public ImageObjectDetectionPredictionResult.Builder addAllIds(Iterable<? extends Long> values)

The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.

repeated int64 ids = 1;

Parameter
NameDescription
valuesIterable<? extends java.lang.Long>

The ids to add.

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

addBboxes(ListValue value)

public ImageObjectDetectionPredictionResult.Builder addBboxes(ListValue value)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameter
NameDescription
valueListValue
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

addBboxes(ListValue.Builder builderForValue)

public ImageObjectDetectionPredictionResult.Builder addBboxes(ListValue.Builder builderForValue)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

addBboxes(int index, ListValue value)

public ImageObjectDetectionPredictionResult.Builder addBboxes(int index, ListValue value)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameters
NameDescription
indexint
valueListValue
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

addBboxes(int index, ListValue.Builder builderForValue)

public ImageObjectDetectionPredictionResult.Builder addBboxes(int index, ListValue.Builder builderForValue)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

addBboxesBuilder()

public ListValue.Builder addBboxesBuilder()

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Returns
TypeDescription
Builder

addBboxesBuilder(int index)

public ListValue.Builder addBboxesBuilder(int index)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

addConfidences(float value)

public ImageObjectDetectionPredictionResult.Builder addConfidences(float value)

The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

repeated float confidences = 3;

Parameter
NameDescription
valuefloat

The confidences to add.

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

addDisplayNames(String value)

public ImageObjectDetectionPredictionResult.Builder addDisplayNames(String value)

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

repeated string display_names = 2;

Parameter
NameDescription
valueString

The displayNames to add.

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

addDisplayNamesBytes(ByteString value)

public ImageObjectDetectionPredictionResult.Builder addDisplayNamesBytes(ByteString value)

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

repeated string display_names = 2;

Parameter
NameDescription
valueByteString

The bytes of the displayNames to add.

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

addIds(long value)

public ImageObjectDetectionPredictionResult.Builder addIds(long value)

The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.

repeated int64 ids = 1;

Parameter
NameDescription
valuelong

The ids to add.

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImageObjectDetectionPredictionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides

build()

public ImageObjectDetectionPredictionResult build()
Returns
TypeDescription
ImageObjectDetectionPredictionResult

buildPartial()

public ImageObjectDetectionPredictionResult buildPartial()
Returns
TypeDescription
ImageObjectDetectionPredictionResult

clear()

public ImageObjectDetectionPredictionResult.Builder clear()
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides

clearBboxes()

public ImageObjectDetectionPredictionResult.Builder clearBboxes()

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

clearConfidences()

public ImageObjectDetectionPredictionResult.Builder clearConfidences()

The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

repeated float confidences = 3;

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

clearDisplayNames()

public ImageObjectDetectionPredictionResult.Builder clearDisplayNames()

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

repeated string display_names = 2;

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImageObjectDetectionPredictionResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides

clearIds()

public ImageObjectDetectionPredictionResult.Builder clearIds()

The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.

repeated int64 ids = 1;

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageObjectDetectionPredictionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides

clone()

public ImageObjectDetectionPredictionResult.Builder clone()
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides

getBboxes(int index)

public ListValue getBboxes(int index)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListValue

getBboxesBuilder(int index)

public ListValue.Builder getBboxesBuilder(int index)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

getBboxesBuilderList()

public List<ListValue.Builder> getBboxesBuilderList()

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Returns
TypeDescription
List<Builder>

getBboxesCount()

public int getBboxesCount()

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Returns
TypeDescription
int

getBboxesList()

public List<ListValue> getBboxesList()

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Returns
TypeDescription
List<ListValue>

getBboxesOrBuilder(int index)

public ListValueOrBuilder getBboxesOrBuilder(int index)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListValueOrBuilder

getBboxesOrBuilderList()

public List<? extends ListValueOrBuilder> getBboxesOrBuilderList()

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Returns
TypeDescription
List<? extends com.google.protobuf.ListValueOrBuilder>

getConfidences(int index)

public float getConfidences(int index)

The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

repeated float confidences = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
float

The confidences at the given index.

getConfidencesCount()

public int getConfidencesCount()

The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

repeated float confidences = 3;

Returns
TypeDescription
int

The count of confidences.

getConfidencesList()

public List<Float> getConfidencesList()

The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

repeated float confidences = 3;

Returns
TypeDescription
List<Float>

A list containing the confidences.

getDefaultInstanceForType()

public ImageObjectDetectionPredictionResult getDefaultInstanceForType()
Returns
TypeDescription
ImageObjectDetectionPredictionResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayNames(int index)

public String getDisplayNames(int index)

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

repeated string display_names = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The displayNames at the given index.

getDisplayNamesBytes(int index)

public ByteString getDisplayNamesBytes(int index)

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

repeated string display_names = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the displayNames at the given index.

getDisplayNamesCount()

public int getDisplayNamesCount()

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

repeated string display_names = 2;

Returns
TypeDescription
int

The count of displayNames.

getDisplayNamesList()

public ProtocolStringList getDisplayNamesList()

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

repeated string display_names = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the displayNames.

getIds(int index)

public long getIds(int index)

The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.

repeated int64 ids = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
long

The ids at the given index.

getIdsCount()

public int getIdsCount()

The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.

repeated int64 ids = 1;

Returns
TypeDescription
int

The count of ids.

getIdsList()

public List<Long> getIdsList()

The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.

repeated int64 ids = 1;

Returns
TypeDescription
List<Long>

A list containing the ids.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImageObjectDetectionPredictionResult other)

public ImageObjectDetectionPredictionResult.Builder mergeFrom(ImageObjectDetectionPredictionResult other)
Parameter
NameDescription
otherImageObjectDetectionPredictionResult
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImageObjectDetectionPredictionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImageObjectDetectionPredictionResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageObjectDetectionPredictionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides

removeBboxes(int index)

public ImageObjectDetectionPredictionResult.Builder removeBboxes(int index)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

setBboxes(int index, ListValue value)

public ImageObjectDetectionPredictionResult.Builder setBboxes(int index, ListValue value)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameters
NameDescription
indexint
valueListValue
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

setBboxes(int index, ListValue.Builder builderForValue)

public ImageObjectDetectionPredictionResult.Builder setBboxes(int index, ListValue.Builder builderForValue)

Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

repeated .google.protobuf.ListValue bboxes = 4;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

setConfidences(int index, float value)

public ImageObjectDetectionPredictionResult.Builder setConfidences(int index, float value)

The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

repeated float confidences = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valuefloat

The confidences to set.

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

setDisplayNames(int index, String value)

public ImageObjectDetectionPredictionResult.Builder setDisplayNames(int index, String value)

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

repeated string display_names = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The displayNames to set.

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImageObjectDetectionPredictionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides

setIds(int index, long value)

public ImageObjectDetectionPredictionResult.Builder setIds(int index, long value)

The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.

repeated int64 ids = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valuelong

The ids to set.

Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder

This builder for chaining.

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

public ImageObjectDetectionPredictionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImageObjectDetectionPredictionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageObjectDetectionPredictionResult.Builder
Overrides