Class PersonalProtectiveEquipmentDetectionOutput.DetectedPerson (0.6.0)

public static final class PersonalProtectiveEquipmentDetectionOutput.DetectedPerson extends GeneratedMessageV3 implements PersonalProtectiveEquipmentDetectionOutput.DetectedPersonOrBuilder

Detected Person contains the detected person and their associated ppes and their protecting information.

Protobuf type google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PersonalProtectiveEquipmentDetectionOutput.DetectedPerson

Static Fields

BODY_COVERAGE_SCORE_FIELD_NUMBER

public static final int BODY_COVERAGE_SCORE_FIELD_NUMBER
Field Value
Type Description
int

DETECTED_PERSON_IDENTIFIED_BOX_FIELD_NUMBER

public static final int DETECTED_PERSON_IDENTIFIED_BOX_FIELD_NUMBER
Field Value
Type Description
int

DETECTED_PPE_IDENTIFIED_BOXES_FIELD_NUMBER

public static final int DETECTED_PPE_IDENTIFIED_BOXES_FIELD_NUMBER
Field Value
Type Description
int

EYES_COVERAGE_SCORE_FIELD_NUMBER

public static final int EYES_COVERAGE_SCORE_FIELD_NUMBER
Field Value
Type Description
int

FACE_COVERAGE_SCORE_FIELD_NUMBER

public static final int FACE_COVERAGE_SCORE_FIELD_NUMBER
Field Value
Type Description
int

FEET_COVERAGE_SCORE_FIELD_NUMBER

public static final int FEET_COVERAGE_SCORE_FIELD_NUMBER
Field Value
Type Description
int

HANDS_COVERAGE_SCORE_FIELD_NUMBER

public static final int HANDS_COVERAGE_SCORE_FIELD_NUMBER
Field Value
Type Description
int

HEAD_COVERAGE_SCORE_FIELD_NUMBER

public static final int HEAD_COVERAGE_SCORE_FIELD_NUMBER
Field Value
Type Description
int

PERSON_ID_FIELD_NUMBER

public static final int PERSON_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson getDefaultInstance()
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder newBuilder()
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder

newBuilder(PersonalProtectiveEquipmentDetectionOutput.DetectedPerson prototype)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder newBuilder(PersonalProtectiveEquipmentDetectionOutput.DetectedPerson prototype)
Parameter
Name Description
prototype PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder

parseDelimitedFrom(InputStream input)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PersonalProtectiveEquipmentDetectionOutput.DetectedPerson parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PersonalProtectiveEquipmentDetectionOutput.DetectedPerson> parser()
Returns
Type Description
Parser<DetectedPerson>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBodyCoverageScore()

public float getBodyCoverageScore()

Coverage score for body.

optional float body_coverage_score = 8;

Returns
Type Description
float

The bodyCoverageScore.

getDefaultInstanceForType()

public PersonalProtectiveEquipmentDetectionOutput.DetectedPerson getDefaultInstanceForType()
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson

getDetectedPersonIdentifiedBox()

public PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox getDetectedPersonIdentifiedBox()

The info of detected person identified box.

.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2;

Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox

The detectedPersonIdentifiedBox.

getDetectedPersonIdentifiedBoxOrBuilder()

public PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBoxOrBuilder getDetectedPersonIdentifiedBoxOrBuilder()

The info of detected person identified box.

.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2;

Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBoxOrBuilder

getDetectedPpeIdentifiedBoxes(int index)

public PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox getDetectedPpeIdentifiedBoxes(int index)

The info of detected person associated ppe identified boxes.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3;

Parameter
Name Description
index int
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox

getDetectedPpeIdentifiedBoxesCount()

public int getDetectedPpeIdentifiedBoxesCount()

The info of detected person associated ppe identified boxes.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3;

Returns
Type Description
int

getDetectedPpeIdentifiedBoxesList()

public List<PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox> getDetectedPpeIdentifiedBoxesList()

The info of detected person associated ppe identified boxes.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3;

Returns
Type Description
List<PPEIdentifiedBox>

getDetectedPpeIdentifiedBoxesOrBuilder(int index)

public PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBoxOrBuilder getDetectedPpeIdentifiedBoxesOrBuilder(int index)

The info of detected person associated ppe identified boxes.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3;

Parameter
Name Description
index int
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBoxOrBuilder

getDetectedPpeIdentifiedBoxesOrBuilderList()

public List<? extends PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBoxOrBuilder> getDetectedPpeIdentifiedBoxesOrBuilderList()

The info of detected person associated ppe identified boxes.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBoxOrBuilder>

getEyesCoverageScore()

public float getEyesCoverageScore()

Coverage score for eyes.

optional float eyes_coverage_score = 5;

Returns
Type Description
float

The eyesCoverageScore.

getFaceCoverageScore()

public float getFaceCoverageScore()

Coverage score for each body part. Coverage score for face.

optional float face_coverage_score = 4;

Returns
Type Description
float

The faceCoverageScore.

getFeetCoverageScore()

public float getFeetCoverageScore()

Coverage score for feet.

optional float feet_coverage_score = 9;

Returns
Type Description
float

The feetCoverageScore.

getHandsCoverageScore()

public float getHandsCoverageScore()

Coverage score for hands.

optional float hands_coverage_score = 7;

Returns
Type Description
float

The handsCoverageScore.

getHeadCoverageScore()

public float getHeadCoverageScore()

Coverage score for head.

optional float head_coverage_score = 6;

Returns
Type Description
float

The headCoverageScore.

getParserForType()

public Parser<PersonalProtectiveEquipmentDetectionOutput.DetectedPerson> getParserForType()
Returns
Type Description
Parser<DetectedPerson>
Overrides

getPersonId()

public long getPersonId()

The id of detected person.

int64 person_id = 1;

Returns
Type Description
long

The personId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBodyCoverageScore()

public boolean hasBodyCoverageScore()

Coverage score for body.

optional float body_coverage_score = 8;

Returns
Type Description
boolean

Whether the bodyCoverageScore field is set.

hasDetectedPersonIdentifiedBox()

public boolean hasDetectedPersonIdentifiedBox()

The info of detected person identified box.

.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2;

Returns
Type Description
boolean

Whether the detectedPersonIdentifiedBox field is set.

hasEyesCoverageScore()

public boolean hasEyesCoverageScore()

Coverage score for eyes.

optional float eyes_coverage_score = 5;

Returns
Type Description
boolean

Whether the eyesCoverageScore field is set.

hasFaceCoverageScore()

public boolean hasFaceCoverageScore()

Coverage score for each body part. Coverage score for face.

optional float face_coverage_score = 4;

Returns
Type Description
boolean

Whether the faceCoverageScore field is set.

hasFeetCoverageScore()

public boolean hasFeetCoverageScore()

Coverage score for feet.

optional float feet_coverage_score = 9;

Returns
Type Description
boolean

Whether the feetCoverageScore field is set.

hasHandsCoverageScore()

public boolean hasHandsCoverageScore()

Coverage score for hands.

optional float hands_coverage_score = 7;

Returns
Type Description
boolean

Whether the handsCoverageScore field is set.

hasHeadCoverageScore()

public boolean hasHeadCoverageScore()

Coverage score for head.

optional float head_coverage_score = 6;

Returns
Type Description
boolean

Whether the headCoverageScore field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder newBuilderForType()
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder toBuilder()
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException