Package com.google.cloud.visionai.v1
Class ObjectDetectionPredictionResult.IdentifiedBox.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ObjectDetectionPredictionResult.IdentifiedBox.Builder>
com.google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox.Builder
- All Implemented Interfaces:
ObjectDetectionPredictionResult.IdentifiedBoxOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ObjectDetectionPredictionResult.IdentifiedBox
public static final class ObjectDetectionPredictionResult.IdentifiedBox.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()An unique id for this box.Confidence score associated with this box.Entity of this box.Bounding Box in the normalized coordinates.longgetBoxId()An unique id for this box.floatConfidence score associated with this box.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEntity of this box.Entity of this box.Entity of this box.Bounding Box in the normalized coordinates.Bounding Box in the normalized coordinates.Bounding Box in the normalized coordinates.booleanEntity of this box.booleanBounding Box in the normalized coordinates.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanEntity of this box.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeNormalizedBoundingBox(ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox value) Bounding Box in the normalized coordinates.setBoxId(long value) An unique id for this box.setConfidenceScore(float value) Confidence score associated with this box.Entity of this box.setEntity(ObjectDetectionPredictionResult.Entity.Builder builderForValue) Entity of this box.Bounding Box in the normalized coordinates.setNormalizedBoundingBox(ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder builderForValue) Bounding Box in the normalized coordinates.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ObjectDetectionPredictionResult.IdentifiedBox.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ObjectDetectionPredictionResult.IdentifiedBox.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ObjectDetectionPredictionResult.IdentifiedBox.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ObjectDetectionPredictionResult.IdentifiedBox.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ObjectDetectionPredictionResult.IdentifiedBox.Builder>
-
mergeFrom
public ObjectDetectionPredictionResult.IdentifiedBox.Builder mergeFrom(ObjectDetectionPredictionResult.IdentifiedBox other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ObjectDetectionPredictionResult.IdentifiedBox.Builder>
-
mergeFrom
public ObjectDetectionPredictionResult.IdentifiedBox.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ObjectDetectionPredictionResult.IdentifiedBox.Builder>- Throws:
IOException
-
getBoxId
public long getBoxId()An unique id for this box.
int64 box_id = 1;- Specified by:
getBoxIdin interfaceObjectDetectionPredictionResult.IdentifiedBoxOrBuilder- Returns:
- The boxId.
-
setBoxId
An unique id for this box.
int64 box_id = 1;- Parameters:
value- The boxId to set.- Returns:
- This builder for chaining.
-
clearBoxId
An unique id for this box.
int64 box_id = 1;- Returns:
- This builder for chaining.
-
hasNormalizedBoundingBox
public boolean hasNormalizedBoundingBox()Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;- Specified by:
hasNormalizedBoundingBoxin interfaceObjectDetectionPredictionResult.IdentifiedBoxOrBuilder- Returns:
- Whether the normalizedBoundingBox field is set.
-
getNormalizedBoundingBox
public ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox getNormalizedBoundingBox()Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;- Specified by:
getNormalizedBoundingBoxin interfaceObjectDetectionPredictionResult.IdentifiedBoxOrBuilder- Returns:
- The normalizedBoundingBox.
-
setNormalizedBoundingBox
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; -
setNormalizedBoundingBox
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; -
mergeNormalizedBoundingBox
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; -
clearNormalizedBoundingBox
Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2; -
getNormalizedBoundingBoxBuilder
public ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder getNormalizedBoundingBoxBuilder()Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2; -
getNormalizedBoundingBoxOrBuilder
public ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder()Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;- Specified by:
getNormalizedBoundingBoxOrBuilderin interfaceObjectDetectionPredictionResult.IdentifiedBoxOrBuilder
-
getConfidenceScore
public float getConfidenceScore()Confidence score associated with this box.
float confidence_score = 3;- Specified by:
getConfidenceScorein interfaceObjectDetectionPredictionResult.IdentifiedBoxOrBuilder- Returns:
- The confidenceScore.
-
setConfidenceScore
Confidence score associated with this box.
float confidence_score = 3;- Parameters:
value- The confidenceScore to set.- Returns:
- This builder for chaining.
-
clearConfidenceScore
Confidence score associated with this box.
float confidence_score = 3;- Returns:
- This builder for chaining.
-
hasEntity
public boolean hasEntity()Entity of this box.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity entity = 4;- Specified by:
hasEntityin interfaceObjectDetectionPredictionResult.IdentifiedBoxOrBuilder- Returns:
- Whether the entity field is set.
-
getEntity
Entity of this box.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity entity = 4;- Specified by:
getEntityin interfaceObjectDetectionPredictionResult.IdentifiedBoxOrBuilder- Returns:
- The entity.
-
setEntity
public ObjectDetectionPredictionResult.IdentifiedBox.Builder setEntity(ObjectDetectionPredictionResult.Entity value) Entity of this box.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity entity = 4; -
setEntity
public ObjectDetectionPredictionResult.IdentifiedBox.Builder setEntity(ObjectDetectionPredictionResult.Entity.Builder builderForValue) Entity of this box.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity entity = 4; -
mergeEntity
public ObjectDetectionPredictionResult.IdentifiedBox.Builder mergeEntity(ObjectDetectionPredictionResult.Entity value) Entity of this box.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity entity = 4; -
clearEntity
Entity of this box.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity entity = 4; -
getEntityBuilder
Entity of this box.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity entity = 4; -
getEntityOrBuilder
Entity of this box.
.google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity entity = 4;- Specified by:
getEntityOrBuilderin interfaceObjectDetectionPredictionResult.IdentifiedBoxOrBuilder
-