Class ImageObjectDetectionAnnotation.Builder (2.18.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class ImageObjectDetectionAnnotation.Builder extends GeneratedMessageV3.Builder<ImageObjectDetectionAnnotation.Builder> implements ImageObjectDetectionAnnotationOrBuilder
Annotation details for image object detection.
Protobuf type google.cloud.automl.v1.ImageObjectDetectionAnnotation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageObjectDetectionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ImageObjectDetectionAnnotation build()
buildPartial()
public ImageObjectDetectionAnnotation buildPartial()
clear()
public ImageObjectDetectionAnnotation.Builder clear()
Overrides
clearBoundingBox()
public ImageObjectDetectionAnnotation.Builder clearBoundingBox()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
clearField(Descriptors.FieldDescriptor field)
public ImageObjectDetectionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ImageObjectDetectionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearScore()
public ImageObjectDetectionAnnotation.Builder clearScore()
Output only. The confidence that this annotation is positive for the parent example,
value in [0, 1], higher means higher positivity confidence.
float score = 2;
clone()
public ImageObjectDetectionAnnotation.Builder clone()
Overrides
getBoundingBox()
public BoundingPoly getBoundingBox()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
getBoundingBoxBuilder()
public BoundingPoly.Builder getBoundingBoxBuilder()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
getBoundingBoxOrBuilder()
public BoundingPolyOrBuilder getBoundingBoxOrBuilder()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
getDefaultInstanceForType()
public ImageObjectDetectionAnnotation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getScore()
Output only. The confidence that this annotation is positive for the parent example,
value in [0, 1], higher means higher positivity confidence.
float score = 2;
Returns |
---|
Type | Description |
float | The score.
|
hasBoundingBox()
public boolean hasBoundingBox()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
Returns |
---|
Type | Description |
boolean | Whether the boundingBox field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeBoundingBox(BoundingPoly value)
public ImageObjectDetectionAnnotation.Builder mergeBoundingBox(BoundingPoly value)
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
mergeFrom(ImageObjectDetectionAnnotation other)
public ImageObjectDetectionAnnotation.Builder mergeFrom(ImageObjectDetectionAnnotation other)
public ImageObjectDetectionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ImageObjectDetectionAnnotation.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageObjectDetectionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setBoundingBox(BoundingPoly value)
public ImageObjectDetectionAnnotation.Builder setBoundingBox(BoundingPoly value)
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
setBoundingBox(BoundingPoly.Builder builderForValue)
public ImageObjectDetectionAnnotation.Builder setBoundingBox(BoundingPoly.Builder builderForValue)
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public ImageObjectDetectionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImageObjectDetectionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setScore(float value)
public ImageObjectDetectionAnnotation.Builder setScore(float value)
Output only. The confidence that this annotation is positive for the parent example,
value in [0, 1], higher means higher positivity confidence.
float score = 2;
Parameter |
---|
Name | Description |
value | float
The score to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ImageObjectDetectionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."]]