Package com.google.cloud.visionai.v1
Class PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder>
com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder
- All Implemented Interfaces:
PersonalProtectiveEquipmentDetectionOutput.PPEEntityOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PersonalProtectiveEquipmentDetectionOutput.PPEEntity
public static final class PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder>
implements PersonalProtectiveEquipmentDetectionOutput.PPEEntityOrBuilder
The entity info for annotations from PPE detection prediction result.Protobuf type
google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Entity id.Label id.Human readable string of the label (Examples: helmet, glove, mask).Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongEntity id.longLabel id.Human readable string of the label (Examples: helmet, glove, mask).com.google.protobuf.ByteStringHuman readable string of the label (Examples: helmet, glove, mask).Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).com.google.protobuf.ByteStringHuman readable string of the super category label (Examples: head_cover, hands_cover, face_cover).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setPpeEntityId(long value) Entity id.setPpeLabelId(long value) Label id.setPpeLabelString(String value) Human readable string of the label (Examples: helmet, glove, mask).setPpeLabelStringBytes(com.google.protobuf.ByteString value) Human readable string of the label (Examples: helmet, glove, mask).Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).setPpeSupercategoryLabelStringBytes(com.google.protobuf.ByteString value) Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).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<PersonalProtectiveEquipmentDetectionOutput.PPEEntity.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<PersonalProtectiveEquipmentDetectionOutput.PPEEntity.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<PersonalProtectiveEquipmentDetectionOutput.PPEEntity.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 PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder>
-
mergeFrom
public PersonalProtectiveEquipmentDetectionOutput.PPEEntity.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<PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder>- Throws:
IOException
-
getPpeLabelId
public long getPpeLabelId()Label id.
int64 ppe_label_id = 1;- Specified by:
getPpeLabelIdin interfacePersonalProtectiveEquipmentDetectionOutput.PPEEntityOrBuilder- Returns:
- The ppeLabelId.
-
setPpeLabelId
Label id.
int64 ppe_label_id = 1;- Parameters:
value- The ppeLabelId to set.- Returns:
- This builder for chaining.
-
clearPpeLabelId
Label id.
int64 ppe_label_id = 1;- Returns:
- This builder for chaining.
-
getPpeLabelString
Human readable string of the label (Examples: helmet, glove, mask).
string ppe_label_string = 2;- Specified by:
getPpeLabelStringin interfacePersonalProtectiveEquipmentDetectionOutput.PPEEntityOrBuilder- Returns:
- The ppeLabelString.
-
getPpeLabelStringBytes
public com.google.protobuf.ByteString getPpeLabelStringBytes()Human readable string of the label (Examples: helmet, glove, mask).
string ppe_label_string = 2;- Specified by:
getPpeLabelStringBytesin interfacePersonalProtectiveEquipmentDetectionOutput.PPEEntityOrBuilder- Returns:
- The bytes for ppeLabelString.
-
setPpeLabelString
Human readable string of the label (Examples: helmet, glove, mask).
string ppe_label_string = 2;- Parameters:
value- The ppeLabelString to set.- Returns:
- This builder for chaining.
-
clearPpeLabelString
Human readable string of the label (Examples: helmet, glove, mask).
string ppe_label_string = 2;- Returns:
- This builder for chaining.
-
setPpeLabelStringBytes
public PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder setPpeLabelStringBytes(com.google.protobuf.ByteString value) Human readable string of the label (Examples: helmet, glove, mask).
string ppe_label_string = 2;- Parameters:
value- The bytes for ppeLabelString to set.- Returns:
- This builder for chaining.
-
getPpeSupercategoryLabelString
Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).
string ppe_supercategory_label_string = 3;- Specified by:
getPpeSupercategoryLabelStringin interfacePersonalProtectiveEquipmentDetectionOutput.PPEEntityOrBuilder- Returns:
- The ppeSupercategoryLabelString.
-
getPpeSupercategoryLabelStringBytes
public com.google.protobuf.ByteString getPpeSupercategoryLabelStringBytes()Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).
string ppe_supercategory_label_string = 3;- Specified by:
getPpeSupercategoryLabelStringBytesin interfacePersonalProtectiveEquipmentDetectionOutput.PPEEntityOrBuilder- Returns:
- The bytes for ppeSupercategoryLabelString.
-
setPpeSupercategoryLabelString
public PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder setPpeSupercategoryLabelString(String value) Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).
string ppe_supercategory_label_string = 3;- Parameters:
value- The ppeSupercategoryLabelString to set.- Returns:
- This builder for chaining.
-
clearPpeSupercategoryLabelString
public PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder clearPpeSupercategoryLabelString()Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).
string ppe_supercategory_label_string = 3;- Returns:
- This builder for chaining.
-
setPpeSupercategoryLabelStringBytes
public PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder setPpeSupercategoryLabelStringBytes(com.google.protobuf.ByteString value) Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).
string ppe_supercategory_label_string = 3;- Parameters:
value- The bytes for ppeSupercategoryLabelString to set.- Returns:
- This builder for chaining.
-
getPpeEntityId
public long getPpeEntityId()Entity id.
int64 ppe_entity_id = 4;- Specified by:
getPpeEntityIdin interfacePersonalProtectiveEquipmentDetectionOutput.PPEEntityOrBuilder- Returns:
- The ppeEntityId.
-
setPpeEntityId
Entity id.
int64 ppe_entity_id = 4;- Parameters:
value- The ppeEntityId to set.- Returns:
- This builder for chaining.
-
clearPpeEntityId
Entity id.
int64 ppe_entity_id = 4;- Returns:
- This builder for chaining.
-