Package com.google.cloud.visionai.v1
Class OccupancyCountingPredictionResult.IdentifiedBox.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OccupancyCountingPredictionResult.IdentifiedBox.Builder>
com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.Builder
- All Implemented Interfaces:
OccupancyCountingPredictionResult.IdentifiedBoxOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OccupancyCountingPredictionResult.IdentifiedBox
public static final class OccupancyCountingPredictionResult.IdentifiedBox.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OccupancyCountingPredictionResult.IdentifiedBox.Builder>
implements OccupancyCountingPredictionResult.IdentifiedBoxOrBuilder
Identified box contains location and the entity of the object.Protobuf type
google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()An unique id for this box.Entity of this box.Bounding Box in the normalized coordinates.Confidence score associated with this box.An unique id to identify a track.longgetBoxId()An unique id for 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.floatgetScore()Confidence score associated with this box.longAn unique id to identify a track.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(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox value) Bounding Box in the normalized coordinates.setBoxId(long value) An unique id for this box.Entity of this box.setEntity(OccupancyCountingPredictionResult.Entity.Builder builderForValue) Entity of this box.setNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox value) Bounding Box in the normalized coordinates.setNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder builderForValue) Bounding Box in the normalized coordinates.setScore(float value) Confidence score associated with this box.setTrackId(long value) An unique id to identify a track.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<OccupancyCountingPredictionResult.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<OccupancyCountingPredictionResult.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<OccupancyCountingPredictionResult.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 OccupancyCountingPredictionResult.IdentifiedBox.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OccupancyCountingPredictionResult.IdentifiedBox.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OccupancyCountingPredictionResult.IdentifiedBox.Builder>
-
mergeFrom
public OccupancyCountingPredictionResult.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<OccupancyCountingPredictionResult.IdentifiedBox.Builder>- Throws:
IOException
-
getBoxId
public long getBoxId()An unique id for this box.
int64 box_id = 1;- Specified by:
getBoxIdin interfaceOccupancyCountingPredictionResult.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.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;- Specified by:
hasNormalizedBoundingBoxin interfaceOccupancyCountingPredictionResult.IdentifiedBoxOrBuilder- Returns:
- Whether the normalizedBoundingBox field is set.
-
getNormalizedBoundingBox
public OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox getNormalizedBoundingBox()Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;- Specified by:
getNormalizedBoundingBoxin interfaceOccupancyCountingPredictionResult.IdentifiedBoxOrBuilder- Returns:
- The normalizedBoundingBox.
-
setNormalizedBoundingBox
public OccupancyCountingPredictionResult.IdentifiedBox.Builder setNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox value) Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2; -
setNormalizedBoundingBox
public OccupancyCountingPredictionResult.IdentifiedBox.Builder setNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder builderForValue) Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2; -
mergeNormalizedBoundingBox
public OccupancyCountingPredictionResult.IdentifiedBox.Builder mergeNormalizedBoundingBox(OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox value) Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2; -
clearNormalizedBoundingBox
Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2; -
getNormalizedBoundingBoxBuilder
public OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox.Builder getNormalizedBoundingBoxBuilder()Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2; -
getNormalizedBoundingBoxOrBuilder
public OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder()Bounding Box in the normalized coordinates.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox normalized_bounding_box = 2;- Specified by:
getNormalizedBoundingBoxOrBuilderin interfaceOccupancyCountingPredictionResult.IdentifiedBoxOrBuilder
-
getScore
public float getScore()Confidence score associated with this box.
float score = 3;- Specified by:
getScorein interfaceOccupancyCountingPredictionResult.IdentifiedBoxOrBuilder- Returns:
- The score.
-
setScore
Confidence score associated with this box.
float score = 3;- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
clearScore
Confidence score associated with this box.
float score = 3;- Returns:
- This builder for chaining.
-
hasEntity
public boolean hasEntity()Entity of this box.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;- Specified by:
hasEntityin interfaceOccupancyCountingPredictionResult.IdentifiedBoxOrBuilder- Returns:
- Whether the entity field is set.
-
getEntity
Entity of this box.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;- Specified by:
getEntityin interfaceOccupancyCountingPredictionResult.IdentifiedBoxOrBuilder- Returns:
- The entity.
-
setEntity
public OccupancyCountingPredictionResult.IdentifiedBox.Builder setEntity(OccupancyCountingPredictionResult.Entity value) Entity of this box.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4; -
setEntity
public OccupancyCountingPredictionResult.IdentifiedBox.Builder setEntity(OccupancyCountingPredictionResult.Entity.Builder builderForValue) Entity of this box.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4; -
mergeEntity
public OccupancyCountingPredictionResult.IdentifiedBox.Builder mergeEntity(OccupancyCountingPredictionResult.Entity value) Entity of this box.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4; -
clearEntity
Entity of this box.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4; -
getEntityBuilder
Entity of this box.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4; -
getEntityOrBuilder
Entity of this box.
.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity entity = 4;- Specified by:
getEntityOrBuilderin interfaceOccupancyCountingPredictionResult.IdentifiedBoxOrBuilder
-
getTrackId
public long getTrackId()An unique id to identify a track. It should be consistent across frames. It only exists if tracking is enabled.
int64 track_id = 5;- Specified by:
getTrackIdin interfaceOccupancyCountingPredictionResult.IdentifiedBoxOrBuilder- Returns:
- The trackId.
-
setTrackId
An unique id to identify a track. It should be consistent across frames. It only exists if tracking is enabled.
int64 track_id = 5;- Parameters:
value- The trackId to set.- Returns:
- This builder for chaining.
-
clearTrackId
An unique id to identify a track. It should be consistent across frames. It only exists if tracking is enabled.
int64 track_id = 5;- Returns:
- This builder for chaining.
-