All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/visionai/v1/annotations.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;

/**
 *
 *
 * 
 * Output format for Personal Protective Equipment Detection Operator.
 * 
* * Protobuf type {@code google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput} */ public final class PersonalProtectiveEquipmentDetectionOutput extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput) PersonalProtectiveEquipmentDetectionOutputOrBuilder { private static final long serialVersionUID = 0L; // Use PersonalProtectiveEquipmentDetectionOutput.newBuilder() to construct. private PersonalProtectiveEquipmentDetectionOutput( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersonalProtectiveEquipmentDetectionOutput() { detectedPersons_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PersonalProtectiveEquipmentDetectionOutput(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.Builder.class); } public interface PersonEntityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity) com.google.protobuf.MessageOrBuilder { /** * * *
     * Entity id.
     * 
* * int64 person_entity_id = 1; * * @return The personEntityId. */ long getPersonEntityId(); } /** * * *
   * The entity info for annotations from person detection prediction result.
   * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity} */ public static final class PersonEntity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity) PersonEntityOrBuilder { private static final long serialVersionUID = 0L; // Use PersonEntity.newBuilder() to construct. private PersonEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersonEntity() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PersonEntity(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PersonEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PersonEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .Builder.class); } public static final int PERSON_ENTITY_ID_FIELD_NUMBER = 1; private long personEntityId_ = 0L; /** * * *
     * Entity id.
     * 
* * int64 person_entity_id = 1; * * @return The personEntityId. */ @java.lang.Override public long getPersonEntityId() { return personEntityId_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (personEntityId_ != 0L) { output.writeInt64(1, personEntityId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (personEntityId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, personEntityId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity)) { return super.equals(obj); } com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity other = (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity) obj; if (getPersonEntityId() != other.getPersonEntityId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PERSON_ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPersonEntityId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * The entity info for annotations from person detection prediction result.
     * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity) com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PersonEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PersonEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .Builder.class); } // Construct using // com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; personEntityId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PersonEntity_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity getDefaultInstanceForType() { return com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity build() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity buildPartial() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity result = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.personEntityId_ = personEntityId_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity) { return mergeFrom( (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity other) { if (other == com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .getDefaultInstance()) return this; if (other.getPersonEntityId() != 0L) { setPersonEntityId(other.getPersonEntityId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { personEntityId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long personEntityId_; /** * * *
       * Entity id.
       * 
* * int64 person_entity_id = 1; * * @return The personEntityId. */ @java.lang.Override public long getPersonEntityId() { return personEntityId_; } /** * * *
       * Entity id.
       * 
* * int64 person_entity_id = 1; * * @param value The personEntityId to set. * @return This builder for chaining. */ public Builder setPersonEntityId(long value) { personEntityId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Entity id.
       * 
* * int64 person_entity_id = 1; * * @return This builder for chaining. */ public Builder clearPersonEntityId() { bitField0_ = (bitField0_ & ~0x00000001); personEntityId_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity) private static final com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity(); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersonEntity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PPEEntityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity) com.google.protobuf.MessageOrBuilder { /** * * *
     * Label id.
     * 
* * int64 ppe_label_id = 1; * * @return The ppeLabelId. */ long getPpeLabelId(); /** * * *
     * Human readable string of the label (Examples: helmet, glove, mask).
     * 
* * string ppe_label_string = 2; * * @return The ppeLabelString. */ java.lang.String getPpeLabelString(); /** * * *
     * Human readable string of the label (Examples: helmet, glove, mask).
     * 
* * string ppe_label_string = 2; * * @return The bytes for ppeLabelString. */ com.google.protobuf.ByteString getPpeLabelStringBytes(); /** * * *
     * Human readable string of the super category label (Examples: head_cover,
     * hands_cover, face_cover).
     * 
* * string ppe_supercategory_label_string = 3; * * @return The ppeSupercategoryLabelString. */ java.lang.String getPpeSupercategoryLabelString(); /** * * *
     * Human readable string of the super category label (Examples: head_cover,
     * hands_cover, face_cover).
     * 
* * string ppe_supercategory_label_string = 3; * * @return The bytes for ppeSupercategoryLabelString. */ com.google.protobuf.ByteString getPpeSupercategoryLabelStringBytes(); /** * * *
     * Entity id.
     * 
* * int64 ppe_entity_id = 4; * * @return The ppeEntityId. */ long getPpeEntityId(); } /** * * *
   * The entity info for annotations from PPE detection prediction result.
   * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity} */ public static final class PPEEntity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity) PPEEntityOrBuilder { private static final long serialVersionUID = 0L; // Use PPEEntity.newBuilder() to construct. private PPEEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PPEEntity() { ppeLabelString_ = ""; ppeSupercategoryLabelString_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PPEEntity(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PPEEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PPEEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .Builder.class); } public static final int PPE_LABEL_ID_FIELD_NUMBER = 1; private long ppeLabelId_ = 0L; /** * * *
     * Label id.
     * 
* * int64 ppe_label_id = 1; * * @return The ppeLabelId. */ @java.lang.Override public long getPpeLabelId() { return ppeLabelId_; } public static final int PPE_LABEL_STRING_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object ppeLabelString_ = ""; /** * * *
     * Human readable string of the label (Examples: helmet, glove, mask).
     * 
* * string ppe_label_string = 2; * * @return The ppeLabelString. */ @java.lang.Override public java.lang.String getPpeLabelString() { java.lang.Object ref = ppeLabelString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ppeLabelString_ = s; return s; } } /** * * *
     * Human readable string of the label (Examples: helmet, glove, mask).
     * 
* * string ppe_label_string = 2; * * @return The bytes for ppeLabelString. */ @java.lang.Override public com.google.protobuf.ByteString getPpeLabelStringBytes() { java.lang.Object ref = ppeLabelString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ppeLabelString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PPE_SUPERCATEGORY_LABEL_STRING_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object ppeSupercategoryLabelString_ = ""; /** * * *
     * Human readable string of the super category label (Examples: head_cover,
     * hands_cover, face_cover).
     * 
* * string ppe_supercategory_label_string = 3; * * @return The ppeSupercategoryLabelString. */ @java.lang.Override public java.lang.String getPpeSupercategoryLabelString() { java.lang.Object ref = ppeSupercategoryLabelString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ppeSupercategoryLabelString_ = s; return s; } } /** * * *
     * Human readable string of the super category label (Examples: head_cover,
     * hands_cover, face_cover).
     * 
* * string ppe_supercategory_label_string = 3; * * @return The bytes for ppeSupercategoryLabelString. */ @java.lang.Override public com.google.protobuf.ByteString getPpeSupercategoryLabelStringBytes() { java.lang.Object ref = ppeSupercategoryLabelString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ppeSupercategoryLabelString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PPE_ENTITY_ID_FIELD_NUMBER = 4; private long ppeEntityId_ = 0L; /** * * *
     * Entity id.
     * 
* * int64 ppe_entity_id = 4; * * @return The ppeEntityId. */ @java.lang.Override public long getPpeEntityId() { return ppeEntityId_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (ppeLabelId_ != 0L) { output.writeInt64(1, ppeLabelId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ppeLabelString_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ppeLabelString_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ppeSupercategoryLabelString_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ppeSupercategoryLabelString_); } if (ppeEntityId_ != 0L) { output.writeInt64(4, ppeEntityId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ppeLabelId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, ppeLabelId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ppeLabelString_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ppeLabelString_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ppeSupercategoryLabelString_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize( 3, ppeSupercategoryLabelString_); } if (ppeEntityId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ppeEntityId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity)) { return super.equals(obj); } com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity other = (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity) obj; if (getPpeLabelId() != other.getPpeLabelId()) return false; if (!getPpeLabelString().equals(other.getPpeLabelString())) return false; if (!getPpeSupercategoryLabelString().equals(other.getPpeSupercategoryLabelString())) return false; if (getPpeEntityId() != other.getPpeEntityId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PPE_LABEL_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPpeLabelId()); hash = (37 * hash) + PPE_LABEL_STRING_FIELD_NUMBER; hash = (53 * hash) + getPpeLabelString().hashCode(); hash = (37 * hash) + PPE_SUPERCATEGORY_LABEL_STRING_FIELD_NUMBER; hash = (53 * hash) + getPpeSupercategoryLabelString().hashCode(); hash = (37 * hash) + PPE_ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPpeEntityId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * The entity info for annotations from PPE detection prediction result.
     * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity) com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PPEEntity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PPEEntity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .Builder.class); } // Construct using // com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ppeLabelId_ = 0L; ppeLabelString_ = ""; ppeSupercategoryLabelString_ = ""; ppeEntityId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PPEEntity_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity getDefaultInstanceForType() { return com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity build() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity buildPartial() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity result = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity( this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ppeLabelId_ = ppeLabelId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ppeLabelString_ = ppeLabelString_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ppeSupercategoryLabelString_ = ppeSupercategoryLabelString_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.ppeEntityId_ = ppeEntityId_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity) { return mergeFrom( (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity other) { if (other == com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .getDefaultInstance()) return this; if (other.getPpeLabelId() != 0L) { setPpeLabelId(other.getPpeLabelId()); } if (!other.getPpeLabelString().isEmpty()) { ppeLabelString_ = other.ppeLabelString_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getPpeSupercategoryLabelString().isEmpty()) { ppeSupercategoryLabelString_ = other.ppeSupercategoryLabelString_; bitField0_ |= 0x00000004; onChanged(); } if (other.getPpeEntityId() != 0L) { setPpeEntityId(other.getPpeEntityId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { ppeLabelId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { ppeLabelString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { ppeSupercategoryLabelString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { ppeEntityId_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long ppeLabelId_; /** * * *
       * Label id.
       * 
* * int64 ppe_label_id = 1; * * @return The ppeLabelId. */ @java.lang.Override public long getPpeLabelId() { return ppeLabelId_; } /** * * *
       * Label id.
       * 
* * int64 ppe_label_id = 1; * * @param value The ppeLabelId to set. * @return This builder for chaining. */ public Builder setPpeLabelId(long value) { ppeLabelId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Label id.
       * 
* * int64 ppe_label_id = 1; * * @return This builder for chaining. */ public Builder clearPpeLabelId() { bitField0_ = (bitField0_ & ~0x00000001); ppeLabelId_ = 0L; onChanged(); return this; } private java.lang.Object ppeLabelString_ = ""; /** * * *
       * Human readable string of the label (Examples: helmet, glove, mask).
       * 
* * string ppe_label_string = 2; * * @return The ppeLabelString. */ public java.lang.String getPpeLabelString() { java.lang.Object ref = ppeLabelString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ppeLabelString_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Human readable string of the label (Examples: helmet, glove, mask).
       * 
* * string ppe_label_string = 2; * * @return The bytes for ppeLabelString. */ public com.google.protobuf.ByteString getPpeLabelStringBytes() { java.lang.Object ref = ppeLabelString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ppeLabelString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Human readable string of the label (Examples: helmet, glove, mask).
       * 
* * string ppe_label_string = 2; * * @param value The ppeLabelString to set. * @return This builder for chaining. */ public Builder setPpeLabelString(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ppeLabelString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Human readable string of the label (Examples: helmet, glove, mask).
       * 
* * string ppe_label_string = 2; * * @return This builder for chaining. */ public Builder clearPpeLabelString() { ppeLabelString_ = getDefaultInstance().getPpeLabelString(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Human readable string of the label (Examples: helmet, glove, mask).
       * 
* * string ppe_label_string = 2; * * @param value The bytes for ppeLabelString to set. * @return This builder for chaining. */ public Builder setPpeLabelStringBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ppeLabelString_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object ppeSupercategoryLabelString_ = ""; /** * * *
       * Human readable string of the super category label (Examples: head_cover,
       * hands_cover, face_cover).
       * 
* * string ppe_supercategory_label_string = 3; * * @return The ppeSupercategoryLabelString. */ public java.lang.String getPpeSupercategoryLabelString() { java.lang.Object ref = ppeSupercategoryLabelString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ppeSupercategoryLabelString_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Human readable string of the super category label (Examples: head_cover,
       * hands_cover, face_cover).
       * 
* * string ppe_supercategory_label_string = 3; * * @return The bytes for ppeSupercategoryLabelString. */ public com.google.protobuf.ByteString getPpeSupercategoryLabelStringBytes() { java.lang.Object ref = ppeSupercategoryLabelString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ppeSupercategoryLabelString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Human readable string of the super category label (Examples: head_cover,
       * hands_cover, face_cover).
       * 
* * string ppe_supercategory_label_string = 3; * * @param value The ppeSupercategoryLabelString to set. * @return This builder for chaining. */ public Builder setPpeSupercategoryLabelString(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ppeSupercategoryLabelString_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Human readable string of the super category label (Examples: head_cover,
       * hands_cover, face_cover).
       * 
* * string ppe_supercategory_label_string = 3; * * @return This builder for chaining. */ public Builder clearPpeSupercategoryLabelString() { ppeSupercategoryLabelString_ = getDefaultInstance().getPpeSupercategoryLabelString(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * Human readable string of the super category label (Examples: head_cover,
       * hands_cover, face_cover).
       * 
* * string ppe_supercategory_label_string = 3; * * @param value The bytes for ppeSupercategoryLabelString to set. * @return This builder for chaining. */ public Builder setPpeSupercategoryLabelStringBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ppeSupercategoryLabelString_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private long ppeEntityId_; /** * * *
       * Entity id.
       * 
* * int64 ppe_entity_id = 4; * * @return The ppeEntityId. */ @java.lang.Override public long getPpeEntityId() { return ppeEntityId_; } /** * * *
       * Entity id.
       * 
* * int64 ppe_entity_id = 4; * * @param value The ppeEntityId to set. * @return This builder for chaining. */ public Builder setPpeEntityId(long value) { ppeEntityId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Entity id.
       * 
* * int64 ppe_entity_id = 4; * * @return This builder for chaining. */ public Builder clearPpeEntityId() { bitField0_ = (bitField0_ & ~0x00000008); ppeEntityId_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity) private static final com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEEntity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity(); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PPEEntity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NormalizedBoundingBoxOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox) com.google.protobuf.MessageOrBuilder { /** * * *
     * Min in x coordinate.
     * 
* * float xmin = 1; * * @return The xmin. */ float getXmin(); /** * * *
     * Min in y coordinate.
     * 
* * float ymin = 2; * * @return The ymin. */ float getYmin(); /** * * *
     * Width of the bounding box.
     * 
* * float width = 3; * * @return The width. */ float getWidth(); /** * * *
     * Height of the bounding box.
     * 
* * float height = 4; * * @return The height. */ float getHeight(); } /** * * *
   * Bounding Box in the normalized coordinates.
   * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox} */ public static final class NormalizedBoundingBox extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox) NormalizedBoundingBoxOrBuilder { private static final long serialVersionUID = 0L; // Use NormalizedBoundingBox.newBuilder() to construct. private NormalizedBoundingBox(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NormalizedBoundingBox() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NormalizedBoundingBox(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_NormalizedBoundingBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_NormalizedBoundingBox_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder.class); } public static final int XMIN_FIELD_NUMBER = 1; private float xmin_ = 0F; /** * * *
     * Min in x coordinate.
     * 
* * float xmin = 1; * * @return The xmin. */ @java.lang.Override public float getXmin() { return xmin_; } public static final int YMIN_FIELD_NUMBER = 2; private float ymin_ = 0F; /** * * *
     * Min in y coordinate.
     * 
* * float ymin = 2; * * @return The ymin. */ @java.lang.Override public float getYmin() { return ymin_; } public static final int WIDTH_FIELD_NUMBER = 3; private float width_ = 0F; /** * * *
     * Width of the bounding box.
     * 
* * float width = 3; * * @return The width. */ @java.lang.Override public float getWidth() { return width_; } public static final int HEIGHT_FIELD_NUMBER = 4; private float height_ = 0F; /** * * *
     * Height of the bounding box.
     * 
* * float height = 4; * * @return The height. */ @java.lang.Override public float getHeight() { return height_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(xmin_) != 0) { output.writeFloat(1, xmin_); } if (java.lang.Float.floatToRawIntBits(ymin_) != 0) { output.writeFloat(2, ymin_); } if (java.lang.Float.floatToRawIntBits(width_) != 0) { output.writeFloat(3, width_); } if (java.lang.Float.floatToRawIntBits(height_) != 0) { output.writeFloat(4, height_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Float.floatToRawIntBits(xmin_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, xmin_); } if (java.lang.Float.floatToRawIntBits(ymin_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, ymin_); } if (java.lang.Float.floatToRawIntBits(width_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, width_); } if (java.lang.Float.floatToRawIntBits(height_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, height_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox)) { return super.equals(obj); } com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox other = (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox) obj; if (java.lang.Float.floatToIntBits(getXmin()) != java.lang.Float.floatToIntBits(other.getXmin())) return false; if (java.lang.Float.floatToIntBits(getYmin()) != java.lang.Float.floatToIntBits(other.getYmin())) return false; if (java.lang.Float.floatToIntBits(getWidth()) != java.lang.Float.floatToIntBits(other.getWidth())) return false; if (java.lang.Float.floatToIntBits(getHeight()) != java.lang.Float.floatToIntBits(other.getHeight())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + XMIN_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getXmin()); hash = (37 * hash) + YMIN_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getYmin()); hash = (37 * hash) + WIDTH_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getWidth()); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getHeight()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox) com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_NormalizedBoundingBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_NormalizedBoundingBox_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder.class); } // Construct using // com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; xmin_ = 0F; ymin_ = 0F; width_ = 0F; height_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_NormalizedBoundingBox_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox getDefaultInstanceForType() { return com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox build() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox buildPartial() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox result = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.xmin_ = xmin_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ymin_ = ymin_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.width_ = width_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.height_ = height_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox) { return mergeFrom( (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox other) { if (other == com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance()) return this; if (other.getXmin() != 0F) { setXmin(other.getXmin()); } if (other.getYmin() != 0F) { setYmin(other.getYmin()); } if (other.getWidth() != 0F) { setWidth(other.getWidth()); } if (other.getHeight() != 0F) { setHeight(other.getHeight()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 13: { xmin_ = input.readFloat(); bitField0_ |= 0x00000001; break; } // case 13 case 21: { ymin_ = input.readFloat(); bitField0_ |= 0x00000002; break; } // case 21 case 29: { width_ = input.readFloat(); bitField0_ |= 0x00000004; break; } // case 29 case 37: { height_ = input.readFloat(); bitField0_ |= 0x00000008; break; } // case 37 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private float xmin_; /** * * *
       * Min in x coordinate.
       * 
* * float xmin = 1; * * @return The xmin. */ @java.lang.Override public float getXmin() { return xmin_; } /** * * *
       * Min in x coordinate.
       * 
* * float xmin = 1; * * @param value The xmin to set. * @return This builder for chaining. */ public Builder setXmin(float value) { xmin_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Min in x coordinate.
       * 
* * float xmin = 1; * * @return This builder for chaining. */ public Builder clearXmin() { bitField0_ = (bitField0_ & ~0x00000001); xmin_ = 0F; onChanged(); return this; } private float ymin_; /** * * *
       * Min in y coordinate.
       * 
* * float ymin = 2; * * @return The ymin. */ @java.lang.Override public float getYmin() { return ymin_; } /** * * *
       * Min in y coordinate.
       * 
* * float ymin = 2; * * @param value The ymin to set. * @return This builder for chaining. */ public Builder setYmin(float value) { ymin_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Min in y coordinate.
       * 
* * float ymin = 2; * * @return This builder for chaining. */ public Builder clearYmin() { bitField0_ = (bitField0_ & ~0x00000002); ymin_ = 0F; onChanged(); return this; } private float width_; /** * * *
       * Width of the bounding box.
       * 
* * float width = 3; * * @return The width. */ @java.lang.Override public float getWidth() { return width_; } /** * * *
       * Width of the bounding box.
       * 
* * float width = 3; * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(float value) { width_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Width of the bounding box.
       * 
* * float width = 3; * * @return This builder for chaining. */ public Builder clearWidth() { bitField0_ = (bitField0_ & ~0x00000004); width_ = 0F; onChanged(); return this; } private float height_; /** * * *
       * Height of the bounding box.
       * 
* * float height = 4; * * @return The height. */ @java.lang.Override public float getHeight() { return height_; } /** * * *
       * Height of the bounding box.
       * 
* * float height = 4; * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(float value) { height_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Height of the bounding box.
       * 
* * float height = 4; * * @return This builder for chaining. */ public Builder clearHeight() { bitField0_ = (bitField0_ & ~0x00000008); height_ = 0F; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox) private static final com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox(); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NormalizedBoundingBox parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersonIdentifiedBoxOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox) com.google.protobuf.MessageOrBuilder { /** * * *
     * An unique id for this box.
     * 
* * int64 box_id = 1; * * @return The boxId. */ long getBoxId(); /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return Whether the normalizedBoundingBox field is set. */ boolean hasNormalizedBoundingBox(); /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return The normalizedBoundingBox. */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox getNormalizedBoundingBox(); /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder(); /** * * *
     * Confidence score associated with this box.
     * 
* * float confidence_score = 3; * * @return The confidenceScore. */ float getConfidenceScore(); /** * * *
     * Person entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * * * @return Whether the personEntity field is set. */ boolean hasPersonEntity(); /** * * *
     * Person entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * * * @return The personEntity. */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity getPersonEntity(); /** * * *
     * Person entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntityOrBuilder getPersonEntityOrBuilder(); } /** * * *
   * PersonIdentified box contains the location and the entity info of the
   * person.
   * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox} */ public static final class PersonIdentifiedBox extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox) PersonIdentifiedBoxOrBuilder { private static final long serialVersionUID = 0L; // Use PersonIdentifiedBox.newBuilder() to construct. private PersonIdentifiedBox(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersonIdentifiedBox() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PersonIdentifiedBox(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PersonIdentifiedBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PersonIdentifiedBox_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.Builder.class); } private int bitField0_; public static final int BOX_ID_FIELD_NUMBER = 1; private long boxId_ = 0L; /** * * *
     * An unique id for this box.
     * 
* * int64 box_id = 1; * * @return The boxId. */ @java.lang.Override public long getBoxId() { return boxId_; } public static final int NORMALIZED_BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox normalizedBoundingBox_; /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return Whether the normalizedBoundingBox field is set. */ @java.lang.Override public boolean hasNormalizedBoundingBox() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return The normalizedBoundingBox. */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox getNormalizedBoundingBox() { return normalizedBoundingBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; } /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder() { return normalizedBoundingBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; } public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 3; private float confidenceScore_ = 0F; /** * * *
     * Confidence score associated with this box.
     * 
* * float confidence_score = 3; * * @return The confidenceScore. */ @java.lang.Override public float getConfidenceScore() { return confidenceScore_; } public static final int PERSON_ENTITY_FIELD_NUMBER = 4; private com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity personEntity_; /** * * *
     * Person entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * * * @return Whether the personEntity field is set. */ @java.lang.Override public boolean hasPersonEntity() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Person entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * * * @return The personEntity. */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity getPersonEntity() { return personEntity_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .getDefaultInstance() : personEntity_; } /** * * *
     * Person entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntityOrBuilder getPersonEntityOrBuilder() { return personEntity_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .getDefaultInstance() : personEntity_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boxId_ != 0L) { output.writeInt64(1, boxId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getNormalizedBoundingBox()); } if (java.lang.Float.floatToRawIntBits(confidenceScore_) != 0) { output.writeFloat(3, confidenceScore_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getPersonEntity()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (boxId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, boxId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNormalizedBoundingBox()); } if (java.lang.Float.floatToRawIntBits(confidenceScore_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, confidenceScore_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPersonEntity()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox)) { return super.equals(obj); } com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox other = (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox) obj; if (getBoxId() != other.getBoxId()) return false; if (hasNormalizedBoundingBox() != other.hasNormalizedBoundingBox()) return false; if (hasNormalizedBoundingBox()) { if (!getNormalizedBoundingBox().equals(other.getNormalizedBoundingBox())) return false; } if (java.lang.Float.floatToIntBits(getConfidenceScore()) != java.lang.Float.floatToIntBits(other.getConfidenceScore())) return false; if (hasPersonEntity() != other.hasPersonEntity()) return false; if (hasPersonEntity()) { if (!getPersonEntity().equals(other.getPersonEntity())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BOX_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBoxId()); if (hasNormalizedBoundingBox()) { hash = (37 * hash) + NORMALIZED_BOUNDING_BOX_FIELD_NUMBER; hash = (53 * hash) + getNormalizedBoundingBox().hashCode(); } hash = (37 * hash) + CONFIDENCE_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceScore()); if (hasPersonEntity()) { hash = (37 * hash) + PERSON_ENTITY_FIELD_NUMBER; hash = (53 * hash) + getPersonEntity().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * PersonIdentified box contains the location and the entity info of the
     * person.
     * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox) com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBoxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PersonIdentifiedBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PersonIdentifiedBox_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.Builder.class); } // Construct using // com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNormalizedBoundingBoxFieldBuilder(); getPersonEntityFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; boxId_ = 0L; normalizedBoundingBox_ = null; if (normalizedBoundingBoxBuilder_ != null) { normalizedBoundingBoxBuilder_.dispose(); normalizedBoundingBoxBuilder_ = null; } confidenceScore_ = 0F; personEntity_ = null; if (personEntityBuilder_ != null) { personEntityBuilder_.dispose(); personEntityBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PersonIdentifiedBox_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox getDefaultInstanceForType() { return com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox build() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox buildPartial() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox result = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.boxId_ = boxId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.normalizedBoundingBox_ = normalizedBoundingBoxBuilder_ == null ? normalizedBoundingBox_ : normalizedBoundingBoxBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.confidenceScore_ = confidenceScore_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.personEntity_ = personEntityBuilder_ == null ? personEntity_ : personEntityBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox) { return mergeFrom( (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox other) { if (other == com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.getDefaultInstance()) return this; if (other.getBoxId() != 0L) { setBoxId(other.getBoxId()); } if (other.hasNormalizedBoundingBox()) { mergeNormalizedBoundingBox(other.getNormalizedBoundingBox()); } if (other.getConfidenceScore() != 0F) { setConfidenceScore(other.getConfidenceScore()); } if (other.hasPersonEntity()) { mergePersonEntity(other.getPersonEntity()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { boxId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getNormalizedBoundingBoxFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 29: { confidenceScore_ = input.readFloat(); bitField0_ |= 0x00000004; break; } // case 29 case 34: { input.readMessage(getPersonEntityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long boxId_; /** * * *
       * An unique id for this box.
       * 
* * int64 box_id = 1; * * @return The boxId. */ @java.lang.Override public long getBoxId() { return boxId_; } /** * * *
       * An unique id for this box.
       * 
* * int64 box_id = 1; * * @param value The boxId to set. * @return This builder for chaining. */ public Builder setBoxId(long value) { boxId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * An unique id for this box.
       * 
* * int64 box_id = 1; * * @return This builder for chaining. */ public Builder clearBoxId() { bitField0_ = (bitField0_ & ~0x00000001); boxId_ = 0L; onChanged(); return this; } private com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox normalizedBoundingBox_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder> normalizedBoundingBoxBuilder_; /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return Whether the normalizedBoundingBox field is set. */ public boolean hasNormalizedBoundingBox() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return The normalizedBoundingBox. */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox getNormalizedBoundingBox() { if (normalizedBoundingBoxBuilder_ == null) { return normalizedBoundingBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; } else { return normalizedBoundingBoxBuilder_.getMessage(); } } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public Builder setNormalizedBoundingBox( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox value) { if (normalizedBoundingBoxBuilder_ == null) { if (value == null) { throw new NullPointerException(); } normalizedBoundingBox_ = value; } else { normalizedBoundingBoxBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public Builder setNormalizedBoundingBox( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder builderForValue) { if (normalizedBoundingBoxBuilder_ == null) { normalizedBoundingBox_ = builderForValue.build(); } else { normalizedBoundingBoxBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public Builder mergeNormalizedBoundingBox( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox value) { if (normalizedBoundingBoxBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && normalizedBoundingBox_ != null && normalizedBoundingBox_ != com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance()) { getNormalizedBoundingBoxBuilder().mergeFrom(value); } else { normalizedBoundingBox_ = value; } } else { normalizedBoundingBoxBuilder_.mergeFrom(value); } if (normalizedBoundingBox_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public Builder clearNormalizedBoundingBox() { bitField0_ = (bitField0_ & ~0x00000002); normalizedBoundingBox_ = null; if (normalizedBoundingBoxBuilder_ != null) { normalizedBoundingBoxBuilder_.dispose(); normalizedBoundingBoxBuilder_ = null; } onChanged(); return this; } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder getNormalizedBoundingBoxBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNormalizedBoundingBoxFieldBuilder().getBuilder(); } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder() { if (normalizedBoundingBoxBuilder_ != null) { return normalizedBoundingBoxBuilder_.getMessageOrBuilder(); } else { return normalizedBoundingBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; } } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder> getNormalizedBoundingBoxFieldBuilder() { if (normalizedBoundingBoxBuilder_ == null) { normalizedBoundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder>( getNormalizedBoundingBox(), getParentForChildren(), isClean()); normalizedBoundingBox_ = null; } return normalizedBoundingBoxBuilder_; } private float confidenceScore_; /** * * *
       * Confidence score associated with this box.
       * 
* * float confidence_score = 3; * * @return The confidenceScore. */ @java.lang.Override public float getConfidenceScore() { return confidenceScore_; } /** * * *
       * Confidence score associated with this box.
       * 
* * float confidence_score = 3; * * @param value The confidenceScore to set. * @return This builder for chaining. */ public Builder setConfidenceScore(float value) { confidenceScore_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Confidence score associated with this box.
       * 
* * float confidence_score = 3; * * @return This builder for chaining. */ public Builder clearConfidenceScore() { bitField0_ = (bitField0_ & ~0x00000004); confidenceScore_ = 0F; onChanged(); return this; } private com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity personEntity_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntityOrBuilder> personEntityBuilder_; /** * * *
       * Person entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * * * @return Whether the personEntity field is set. */ public boolean hasPersonEntity() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
       * Person entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * * * @return The personEntity. */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity getPersonEntity() { if (personEntityBuilder_ == null) { return personEntity_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .getDefaultInstance() : personEntity_; } else { return personEntityBuilder_.getMessage(); } } /** * * *
       * Person entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * */ public Builder setPersonEntity( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity value) { if (personEntityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } personEntity_ = value; } else { personEntityBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Person entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * */ public Builder setPersonEntity( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .Builder builderForValue) { if (personEntityBuilder_ == null) { personEntity_ = builderForValue.build(); } else { personEntityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Person entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * */ public Builder mergePersonEntity( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity value) { if (personEntityBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && personEntity_ != null && personEntity_ != com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity.getDefaultInstance()) { getPersonEntityBuilder().mergeFrom(value); } else { personEntity_ = value; } } else { personEntityBuilder_.mergeFrom(value); } if (personEntity_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
       * Person entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * */ public Builder clearPersonEntity() { bitField0_ = (bitField0_ & ~0x00000008); personEntity_ = null; if (personEntityBuilder_ != null) { personEntityBuilder_.dispose(); personEntityBuilder_ = null; } onChanged(); return this; } /** * * *
       * Person entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .Builder getPersonEntityBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPersonEntityFieldBuilder().getBuilder(); } /** * * *
       * Person entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntityOrBuilder getPersonEntityOrBuilder() { if (personEntityBuilder_ != null) { return personEntityBuilder_.getMessageOrBuilder(); } else { return personEntity_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .getDefaultInstance() : personEntity_; } } /** * * *
       * Person entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity person_entity = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity .Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntityOrBuilder> getPersonEntityFieldBuilder() { if (personEntityBuilder_ == null) { personEntityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntity.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonEntityOrBuilder>(getPersonEntity(), getParentForChildren(), isClean()); personEntity_ = null; } return personEntityBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox) private static final com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox(); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersonIdentifiedBox parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PPEIdentifiedBoxOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox) com.google.protobuf.MessageOrBuilder { /** * * *
     * An unique id for this box.
     * 
* * int64 box_id = 1; * * @return The boxId. */ long getBoxId(); /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return Whether the normalizedBoundingBox field is set. */ boolean hasNormalizedBoundingBox(); /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return The normalizedBoundingBox. */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox getNormalizedBoundingBox(); /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder(); /** * * *
     * Confidence score associated with this box.
     * 
* * float confidence_score = 3; * * @return The confidenceScore. */ float getConfidenceScore(); /** * * *
     * PPE entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * * * @return Whether the ppeEntity field is set. */ boolean hasPpeEntity(); /** * * *
     * PPE entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * * * @return The ppeEntity. */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity getPpeEntity(); /** * * *
     * PPE entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntityOrBuilder getPpeEntityOrBuilder(); } /** * * *
   * PPEIdentified box contains the location and the entity info of the PPE.
   * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox} */ public static final class PPEIdentifiedBox extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox) PPEIdentifiedBoxOrBuilder { private static final long serialVersionUID = 0L; // Use PPEIdentifiedBox.newBuilder() to construct. private PPEIdentifiedBox(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PPEIdentifiedBox() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PPEIdentifiedBox(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PPEIdentifiedBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PPEIdentifiedBox_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.Builder.class); } private int bitField0_; public static final int BOX_ID_FIELD_NUMBER = 1; private long boxId_ = 0L; /** * * *
     * An unique id for this box.
     * 
* * int64 box_id = 1; * * @return The boxId. */ @java.lang.Override public long getBoxId() { return boxId_; } public static final int NORMALIZED_BOUNDING_BOX_FIELD_NUMBER = 2; private com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox normalizedBoundingBox_; /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return Whether the normalizedBoundingBox field is set. */ @java.lang.Override public boolean hasNormalizedBoundingBox() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return The normalizedBoundingBox. */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox getNormalizedBoundingBox() { return normalizedBoundingBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; } /** * * *
     * Bounding Box in the normalized coordinates.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder() { return normalizedBoundingBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; } public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 3; private float confidenceScore_ = 0F; /** * * *
     * Confidence score associated with this box.
     * 
* * float confidence_score = 3; * * @return The confidenceScore. */ @java.lang.Override public float getConfidenceScore() { return confidenceScore_; } public static final int PPE_ENTITY_FIELD_NUMBER = 4; private com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppeEntity_; /** * * *
     * PPE entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * * * @return Whether the ppeEntity field is set. */ @java.lang.Override public boolean hasPpeEntity() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * PPE entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * * * @return The ppeEntity. */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity getPpeEntity() { return ppeEntity_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .getDefaultInstance() : ppeEntity_; } /** * * *
     * PPE entity info.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEEntityOrBuilder getPpeEntityOrBuilder() { return ppeEntity_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .getDefaultInstance() : ppeEntity_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boxId_ != 0L) { output.writeInt64(1, boxId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getNormalizedBoundingBox()); } if (java.lang.Float.floatToRawIntBits(confidenceScore_) != 0) { output.writeFloat(3, confidenceScore_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getPpeEntity()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (boxId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, boxId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNormalizedBoundingBox()); } if (java.lang.Float.floatToRawIntBits(confidenceScore_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, confidenceScore_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPpeEntity()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox)) { return super.equals(obj); } com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox other = (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox) obj; if (getBoxId() != other.getBoxId()) return false; if (hasNormalizedBoundingBox() != other.hasNormalizedBoundingBox()) return false; if (hasNormalizedBoundingBox()) { if (!getNormalizedBoundingBox().equals(other.getNormalizedBoundingBox())) return false; } if (java.lang.Float.floatToIntBits(getConfidenceScore()) != java.lang.Float.floatToIntBits(other.getConfidenceScore())) return false; if (hasPpeEntity() != other.hasPpeEntity()) return false; if (hasPpeEntity()) { if (!getPpeEntity().equals(other.getPpeEntity())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BOX_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBoxId()); if (hasNormalizedBoundingBox()) { hash = (37 * hash) + NORMALIZED_BOUNDING_BOX_FIELD_NUMBER; hash = (53 * hash) + getNormalizedBoundingBox().hashCode(); } hash = (37 * hash) + CONFIDENCE_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceScore()); if (hasPpeEntity()) { hash = (37 * hash) + PPE_ENTITY_FIELD_NUMBER; hash = (53 * hash) + getPpeEntity().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * PPEIdentified box contains the location and the entity info of the PPE.
     * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox) com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBoxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PPEIdentifiedBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PPEIdentifiedBox_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.Builder.class); } // Construct using // com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNormalizedBoundingBoxFieldBuilder(); getPpeEntityFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; boxId_ = 0L; normalizedBoundingBox_ = null; if (normalizedBoundingBoxBuilder_ != null) { normalizedBoundingBoxBuilder_.dispose(); normalizedBoundingBoxBuilder_ = null; } confidenceScore_ = 0F; ppeEntity_ = null; if (ppeEntityBuilder_ != null) { ppeEntityBuilder_.dispose(); ppeEntityBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_PPEIdentifiedBox_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox getDefaultInstanceForType() { return com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox build() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox buildPartial() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox result = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.boxId_ = boxId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.normalizedBoundingBox_ = normalizedBoundingBoxBuilder_ == null ? normalizedBoundingBox_ : normalizedBoundingBoxBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.confidenceScore_ = confidenceScore_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.ppeEntity_ = ppeEntityBuilder_ == null ? ppeEntity_ : ppeEntityBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox) { return mergeFrom( (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox other) { if (other == com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.getDefaultInstance()) return this; if (other.getBoxId() != 0L) { setBoxId(other.getBoxId()); } if (other.hasNormalizedBoundingBox()) { mergeNormalizedBoundingBox(other.getNormalizedBoundingBox()); } if (other.getConfidenceScore() != 0F) { setConfidenceScore(other.getConfidenceScore()); } if (other.hasPpeEntity()) { mergePpeEntity(other.getPpeEntity()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { boxId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getNormalizedBoundingBoxFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 29: { confidenceScore_ = input.readFloat(); bitField0_ |= 0x00000004; break; } // case 29 case 34: { input.readMessage(getPpeEntityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long boxId_; /** * * *
       * An unique id for this box.
       * 
* * int64 box_id = 1; * * @return The boxId. */ @java.lang.Override public long getBoxId() { return boxId_; } /** * * *
       * An unique id for this box.
       * 
* * int64 box_id = 1; * * @param value The boxId to set. * @return This builder for chaining. */ public Builder setBoxId(long value) { boxId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * An unique id for this box.
       * 
* * int64 box_id = 1; * * @return This builder for chaining. */ public Builder clearBoxId() { bitField0_ = (bitField0_ & ~0x00000001); boxId_ = 0L; onChanged(); return this; } private com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox normalizedBoundingBox_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder> normalizedBoundingBoxBuilder_; /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return Whether the normalizedBoundingBox field is set. */ public boolean hasNormalizedBoundingBox() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * * * @return The normalizedBoundingBox. */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox getNormalizedBoundingBox() { if (normalizedBoundingBoxBuilder_ == null) { return normalizedBoundingBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; } else { return normalizedBoundingBoxBuilder_.getMessage(); } } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public Builder setNormalizedBoundingBox( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox value) { if (normalizedBoundingBoxBuilder_ == null) { if (value == null) { throw new NullPointerException(); } normalizedBoundingBox_ = value; } else { normalizedBoundingBoxBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public Builder setNormalizedBoundingBox( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder builderForValue) { if (normalizedBoundingBoxBuilder_ == null) { normalizedBoundingBox_ = builderForValue.build(); } else { normalizedBoundingBoxBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public Builder mergeNormalizedBoundingBox( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox value) { if (normalizedBoundingBoxBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && normalizedBoundingBox_ != null && normalizedBoundingBox_ != com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance()) { getNormalizedBoundingBoxBuilder().mergeFrom(value); } else { normalizedBoundingBox_ = value; } } else { normalizedBoundingBoxBuilder_.mergeFrom(value); } if (normalizedBoundingBox_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public Builder clearNormalizedBoundingBox() { bitField0_ = (bitField0_ & ~0x00000002); normalizedBoundingBox_ = null; if (normalizedBoundingBoxBuilder_ != null) { normalizedBoundingBoxBuilder_.dispose(); normalizedBoundingBoxBuilder_ = null; } onChanged(); return this; } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder getNormalizedBoundingBoxBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNormalizedBoundingBoxFieldBuilder().getBuilder(); } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder() { if (normalizedBoundingBoxBuilder_ != null) { return normalizedBoundingBoxBuilder_.getMessageOrBuilder(); } else { return normalizedBoundingBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; } } /** * * *
       * Bounding Box in the normalized coordinates.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox normalized_bounding_box = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder> getNormalizedBoundingBoxFieldBuilder() { if (normalizedBoundingBoxBuilder_ == null) { normalizedBoundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .NormalizedBoundingBoxOrBuilder>( getNormalizedBoundingBox(), getParentForChildren(), isClean()); normalizedBoundingBox_ = null; } return normalizedBoundingBoxBuilder_; } private float confidenceScore_; /** * * *
       * Confidence score associated with this box.
       * 
* * float confidence_score = 3; * * @return The confidenceScore. */ @java.lang.Override public float getConfidenceScore() { return confidenceScore_; } /** * * *
       * Confidence score associated with this box.
       * 
* * float confidence_score = 3; * * @param value The confidenceScore to set. * @return This builder for chaining. */ public Builder setConfidenceScore(float value) { confidenceScore_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Confidence score associated with this box.
       * 
* * float confidence_score = 3; * * @return This builder for chaining. */ public Builder clearConfidenceScore() { bitField0_ = (bitField0_ & ~0x00000004); confidenceScore_ = 0F; onChanged(); return this; } private com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppeEntity_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEEntityOrBuilder> ppeEntityBuilder_; /** * * *
       * PPE entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * * * @return Whether the ppeEntity field is set. */ public boolean hasPpeEntity() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
       * PPE entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * * * @return The ppeEntity. */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity getPpeEntity() { if (ppeEntityBuilder_ == null) { return ppeEntity_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .getDefaultInstance() : ppeEntity_; } else { return ppeEntityBuilder_.getMessage(); } } /** * * *
       * PPE entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * */ public Builder setPpeEntity( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity value) { if (ppeEntityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ppeEntity_ = value; } else { ppeEntityBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * PPE entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * */ public Builder setPpeEntity( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity.Builder builderForValue) { if (ppeEntityBuilder_ == null) { ppeEntity_ = builderForValue.build(); } else { ppeEntityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * PPE entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * */ public Builder mergePpeEntity( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity value) { if (ppeEntityBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && ppeEntity_ != null && ppeEntity_ != com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEEntity.getDefaultInstance()) { getPpeEntityBuilder().mergeFrom(value); } else { ppeEntity_ = value; } } else { ppeEntityBuilder_.mergeFrom(value); } if (ppeEntity_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
       * PPE entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * */ public Builder clearPpeEntity() { bitField0_ = (bitField0_ & ~0x00000008); ppeEntity_ = null; if (ppeEntityBuilder_ != null) { ppeEntityBuilder_.dispose(); ppeEntityBuilder_ = null; } onChanged(); return this; } /** * * *
       * PPE entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .Builder getPpeEntityBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPpeEntityFieldBuilder().getBuilder(); } /** * * *
       * PPE entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEEntityOrBuilder getPpeEntityOrBuilder() { if (ppeEntityBuilder_ != null) { return ppeEntityBuilder_.getMessageOrBuilder(); } else { return ppeEntity_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .getDefaultInstance() : ppeEntity_; } } /** * * *
       * PPE entity info.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity ppe_entity = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEEntityOrBuilder> getPpeEntityFieldBuilder() { if (ppeEntityBuilder_ == null) { ppeEntityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity .Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEEntityOrBuilder>(getPpeEntity(), getParentForChildren(), isClean()); ppeEntity_ = null; } return ppeEntityBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox) private static final com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox(); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PPEIdentifiedBox parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DetectedPersonOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson) com.google.protobuf.MessageOrBuilder { /** * * *
     * The id of detected person.
     * 
* * int64 person_id = 1; * * @return The personId. */ long getPersonId(); /** * * *
     * The info of detected person identified box.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * * * @return Whether the detectedPersonIdentifiedBox field is set. */ boolean hasDetectedPersonIdentifiedBox(); /** * * *
     * The info of detected person identified box.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * * * @return The detectedPersonIdentifiedBox. */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox getDetectedPersonIdentifiedBox(); /** * * *
     * The info of detected person identified box.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBoxOrBuilder getDetectedPersonIdentifiedBoxOrBuilder(); /** * * *
     * The info of detected person associated ppe identified boxes.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox> getDetectedPpeIdentifiedBoxesList(); /** * * *
     * The info of detected person associated ppe identified boxes.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ com.google.cloud.visionai.v1.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; * */ int getDetectedPpeIdentifiedBoxesCount(); /** * * *
     * The info of detected person associated ppe identified boxes.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ java.util.List< ? extends com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBoxOrBuilder> getDetectedPpeIdentifiedBoxesOrBuilderList(); /** * * *
     * The info of detected person associated ppe identified boxes.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBoxOrBuilder getDetectedPpeIdentifiedBoxesOrBuilder(int index); /** * * *
     * Coverage score for each body part.
     * Coverage score for face.
     * 
* * optional float face_coverage_score = 4; * * @return Whether the faceCoverageScore field is set. */ boolean hasFaceCoverageScore(); /** * * *
     * Coverage score for each body part.
     * Coverage score for face.
     * 
* * optional float face_coverage_score = 4; * * @return The faceCoverageScore. */ float getFaceCoverageScore(); /** * * *
     * Coverage score for eyes.
     * 
* * optional float eyes_coverage_score = 5; * * @return Whether the eyesCoverageScore field is set. */ boolean hasEyesCoverageScore(); /** * * *
     * Coverage score for eyes.
     * 
* * optional float eyes_coverage_score = 5; * * @return The eyesCoverageScore. */ float getEyesCoverageScore(); /** * * *
     * Coverage score for head.
     * 
* * optional float head_coverage_score = 6; * * @return Whether the headCoverageScore field is set. */ boolean hasHeadCoverageScore(); /** * * *
     * Coverage score for head.
     * 
* * optional float head_coverage_score = 6; * * @return The headCoverageScore. */ float getHeadCoverageScore(); /** * * *
     * Coverage score for hands.
     * 
* * optional float hands_coverage_score = 7; * * @return Whether the handsCoverageScore field is set. */ boolean hasHandsCoverageScore(); /** * * *
     * Coverage score for hands.
     * 
* * optional float hands_coverage_score = 7; * * @return The handsCoverageScore. */ float getHandsCoverageScore(); /** * * *
     * Coverage score for body.
     * 
* * optional float body_coverage_score = 8; * * @return Whether the bodyCoverageScore field is set. */ boolean hasBodyCoverageScore(); /** * * *
     * Coverage score for body.
     * 
* * optional float body_coverage_score = 8; * * @return The bodyCoverageScore. */ float getBodyCoverageScore(); /** * * *
     * Coverage score for feet.
     * 
* * optional float feet_coverage_score = 9; * * @return Whether the feetCoverageScore field is set. */ boolean hasFeetCoverageScore(); /** * * *
     * Coverage score for feet.
     * 
* * optional float feet_coverage_score = 9; * * @return The feetCoverageScore. */ float getFeetCoverageScore(); } /** * * *
   * Detected Person contains the detected person and their associated
   * ppes and their protecting information.
   * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson} */ public static final class DetectedPerson extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson) DetectedPersonOrBuilder { private static final long serialVersionUID = 0L; // Use DetectedPerson.newBuilder() to construct. private DetectedPerson(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DetectedPerson() { detectedPpeIdentifiedBoxes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedPerson(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_DetectedPerson_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_DetectedPerson_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .Builder.class); } private int bitField0_; public static final int PERSON_ID_FIELD_NUMBER = 1; private long personId_ = 0L; /** * * *
     * The id of detected person.
     * 
* * int64 person_id = 1; * * @return The personId. */ @java.lang.Override public long getPersonId() { return personId_; } public static final int DETECTED_PERSON_IDENTIFIED_BOX_FIELD_NUMBER = 2; private com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox detectedPersonIdentifiedBox_; /** * * *
     * The info of detected person identified box.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * * * @return Whether the detectedPersonIdentifiedBox field is set. */ @java.lang.Override public boolean hasDetectedPersonIdentifiedBox() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The info of detected person identified box.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * * * @return The detectedPersonIdentifiedBox. */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox getDetectedPersonIdentifiedBox() { return detectedPersonIdentifiedBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.getDefaultInstance() : detectedPersonIdentifiedBox_; } /** * * *
     * The info of detected person identified box.
     * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBoxOrBuilder getDetectedPersonIdentifiedBoxOrBuilder() { return detectedPersonIdentifiedBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.getDefaultInstance() : detectedPersonIdentifiedBox_; } public static final int DETECTED_PPE_IDENTIFIED_BOXES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox> detectedPpeIdentifiedBoxes_; /** * * *
     * The info of detected person associated ppe identified boxes.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ @java.lang.Override public java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox> getDetectedPpeIdentifiedBoxesList() { return detectedPpeIdentifiedBoxes_; } /** * * *
     * The info of detected person associated ppe identified boxes.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBoxOrBuilder> getDetectedPpeIdentifiedBoxesOrBuilderList() { return detectedPpeIdentifiedBoxes_; } /** * * *
     * The info of detected person associated ppe identified boxes.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ @java.lang.Override public int getDetectedPpeIdentifiedBoxesCount() { return detectedPpeIdentifiedBoxes_.size(); } /** * * *
     * The info of detected person associated ppe identified boxes.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox getDetectedPpeIdentifiedBoxes(int index) { return detectedPpeIdentifiedBoxes_.get(index); } /** * * *
     * The info of detected person associated ppe identified boxes.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBoxOrBuilder getDetectedPpeIdentifiedBoxesOrBuilder(int index) { return detectedPpeIdentifiedBoxes_.get(index); } public static final int FACE_COVERAGE_SCORE_FIELD_NUMBER = 4; private float faceCoverageScore_ = 0F; /** * * *
     * Coverage score for each body part.
     * Coverage score for face.
     * 
* * optional float face_coverage_score = 4; * * @return Whether the faceCoverageScore field is set. */ @java.lang.Override public boolean hasFaceCoverageScore() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Coverage score for each body part.
     * Coverage score for face.
     * 
* * optional float face_coverage_score = 4; * * @return The faceCoverageScore. */ @java.lang.Override public float getFaceCoverageScore() { return faceCoverageScore_; } public static final int EYES_COVERAGE_SCORE_FIELD_NUMBER = 5; private float eyesCoverageScore_ = 0F; /** * * *
     * Coverage score for eyes.
     * 
* * optional float eyes_coverage_score = 5; * * @return Whether the eyesCoverageScore field is set. */ @java.lang.Override public boolean hasEyesCoverageScore() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Coverage score for eyes.
     * 
* * optional float eyes_coverage_score = 5; * * @return The eyesCoverageScore. */ @java.lang.Override public float getEyesCoverageScore() { return eyesCoverageScore_; } public static final int HEAD_COVERAGE_SCORE_FIELD_NUMBER = 6; private float headCoverageScore_ = 0F; /** * * *
     * Coverage score for head.
     * 
* * optional float head_coverage_score = 6; * * @return Whether the headCoverageScore field is set. */ @java.lang.Override public boolean hasHeadCoverageScore() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Coverage score for head.
     * 
* * optional float head_coverage_score = 6; * * @return The headCoverageScore. */ @java.lang.Override public float getHeadCoverageScore() { return headCoverageScore_; } public static final int HANDS_COVERAGE_SCORE_FIELD_NUMBER = 7; private float handsCoverageScore_ = 0F; /** * * *
     * Coverage score for hands.
     * 
* * optional float hands_coverage_score = 7; * * @return Whether the handsCoverageScore field is set. */ @java.lang.Override public boolean hasHandsCoverageScore() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Coverage score for hands.
     * 
* * optional float hands_coverage_score = 7; * * @return The handsCoverageScore. */ @java.lang.Override public float getHandsCoverageScore() { return handsCoverageScore_; } public static final int BODY_COVERAGE_SCORE_FIELD_NUMBER = 8; private float bodyCoverageScore_ = 0F; /** * * *
     * Coverage score for body.
     * 
* * optional float body_coverage_score = 8; * * @return Whether the bodyCoverageScore field is set. */ @java.lang.Override public boolean hasBodyCoverageScore() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * Coverage score for body.
     * 
* * optional float body_coverage_score = 8; * * @return The bodyCoverageScore. */ @java.lang.Override public float getBodyCoverageScore() { return bodyCoverageScore_; } public static final int FEET_COVERAGE_SCORE_FIELD_NUMBER = 9; private float feetCoverageScore_ = 0F; /** * * *
     * Coverage score for feet.
     * 
* * optional float feet_coverage_score = 9; * * @return Whether the feetCoverageScore field is set. */ @java.lang.Override public boolean hasFeetCoverageScore() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * Coverage score for feet.
     * 
* * optional float feet_coverage_score = 9; * * @return The feetCoverageScore. */ @java.lang.Override public float getFeetCoverageScore() { return feetCoverageScore_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (personId_ != 0L) { output.writeInt64(1, personId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getDetectedPersonIdentifiedBox()); } for (int i = 0; i < detectedPpeIdentifiedBoxes_.size(); i++) { output.writeMessage(3, detectedPpeIdentifiedBoxes_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeFloat(4, faceCoverageScore_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeFloat(5, eyesCoverageScore_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeFloat(6, headCoverageScore_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeFloat(7, handsCoverageScore_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeFloat(8, bodyCoverageScore_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeFloat(9, feetCoverageScore_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (personId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, personId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getDetectedPersonIdentifiedBox()); } for (int i = 0; i < detectedPpeIdentifiedBoxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, detectedPpeIdentifiedBoxes_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, faceCoverageScore_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, eyesCoverageScore_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, headCoverageScore_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, handsCoverageScore_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, bodyCoverageScore_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, feetCoverageScore_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson)) { return super.equals(obj); } com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson other = (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson) obj; if (getPersonId() != other.getPersonId()) return false; if (hasDetectedPersonIdentifiedBox() != other.hasDetectedPersonIdentifiedBox()) return false; if (hasDetectedPersonIdentifiedBox()) { if (!getDetectedPersonIdentifiedBox().equals(other.getDetectedPersonIdentifiedBox())) return false; } if (!getDetectedPpeIdentifiedBoxesList().equals(other.getDetectedPpeIdentifiedBoxesList())) return false; if (hasFaceCoverageScore() != other.hasFaceCoverageScore()) return false; if (hasFaceCoverageScore()) { if (java.lang.Float.floatToIntBits(getFaceCoverageScore()) != java.lang.Float.floatToIntBits(other.getFaceCoverageScore())) return false; } if (hasEyesCoverageScore() != other.hasEyesCoverageScore()) return false; if (hasEyesCoverageScore()) { if (java.lang.Float.floatToIntBits(getEyesCoverageScore()) != java.lang.Float.floatToIntBits(other.getEyesCoverageScore())) return false; } if (hasHeadCoverageScore() != other.hasHeadCoverageScore()) return false; if (hasHeadCoverageScore()) { if (java.lang.Float.floatToIntBits(getHeadCoverageScore()) != java.lang.Float.floatToIntBits(other.getHeadCoverageScore())) return false; } if (hasHandsCoverageScore() != other.hasHandsCoverageScore()) return false; if (hasHandsCoverageScore()) { if (java.lang.Float.floatToIntBits(getHandsCoverageScore()) != java.lang.Float.floatToIntBits(other.getHandsCoverageScore())) return false; } if (hasBodyCoverageScore() != other.hasBodyCoverageScore()) return false; if (hasBodyCoverageScore()) { if (java.lang.Float.floatToIntBits(getBodyCoverageScore()) != java.lang.Float.floatToIntBits(other.getBodyCoverageScore())) return false; } if (hasFeetCoverageScore() != other.hasFeetCoverageScore()) return false; if (hasFeetCoverageScore()) { if (java.lang.Float.floatToIntBits(getFeetCoverageScore()) != java.lang.Float.floatToIntBits(other.getFeetCoverageScore())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PERSON_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPersonId()); if (hasDetectedPersonIdentifiedBox()) { hash = (37 * hash) + DETECTED_PERSON_IDENTIFIED_BOX_FIELD_NUMBER; hash = (53 * hash) + getDetectedPersonIdentifiedBox().hashCode(); } if (getDetectedPpeIdentifiedBoxesCount() > 0) { hash = (37 * hash) + DETECTED_PPE_IDENTIFIED_BOXES_FIELD_NUMBER; hash = (53 * hash) + getDetectedPpeIdentifiedBoxesList().hashCode(); } if (hasFaceCoverageScore()) { hash = (37 * hash) + FACE_COVERAGE_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getFaceCoverageScore()); } if (hasEyesCoverageScore()) { hash = (37 * hash) + EYES_COVERAGE_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getEyesCoverageScore()); } if (hasHeadCoverageScore()) { hash = (37 * hash) + HEAD_COVERAGE_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getHeadCoverageScore()); } if (hasHandsCoverageScore()) { hash = (37 * hash) + HANDS_COVERAGE_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getHandsCoverageScore()); } if (hasBodyCoverageScore()) { hash = (37 * hash) + BODY_COVERAGE_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getBodyCoverageScore()); } if (hasFeetCoverageScore()) { hash = (37 * hash) + FEET_COVERAGE_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getFeetCoverageScore()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Detected Person contains the detected person and their associated
     * ppes and their protecting information.
     * 
* * Protobuf type {@code * google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson) com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPersonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_DetectedPerson_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_DetectedPerson_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson.class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson.Builder.class); } // Construct using // com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDetectedPersonIdentifiedBoxFieldBuilder(); getDetectedPpeIdentifiedBoxesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; personId_ = 0L; detectedPersonIdentifiedBox_ = null; if (detectedPersonIdentifiedBoxBuilder_ != null) { detectedPersonIdentifiedBoxBuilder_.dispose(); detectedPersonIdentifiedBoxBuilder_ = null; } if (detectedPpeIdentifiedBoxesBuilder_ == null) { detectedPpeIdentifiedBoxes_ = java.util.Collections.emptyList(); } else { detectedPpeIdentifiedBoxes_ = null; detectedPpeIdentifiedBoxesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); faceCoverageScore_ = 0F; eyesCoverageScore_ = 0F; headCoverageScore_ = 0F; handsCoverageScore_ = 0F; bodyCoverageScore_ = 0F; feetCoverageScore_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_DetectedPerson_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson getDefaultInstanceForType() { return com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson build() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson buildPartial() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson result = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson result) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { detectedPpeIdentifiedBoxes_ = java.util.Collections.unmodifiableList(detectedPpeIdentifiedBoxes_); bitField0_ = (bitField0_ & ~0x00000004); } result.detectedPpeIdentifiedBoxes_ = detectedPpeIdentifiedBoxes_; } else { result.detectedPpeIdentifiedBoxes_ = detectedPpeIdentifiedBoxesBuilder_.build(); } } private void buildPartial0( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.personId_ = personId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.detectedPersonIdentifiedBox_ = detectedPersonIdentifiedBoxBuilder_ == null ? detectedPersonIdentifiedBox_ : detectedPersonIdentifiedBoxBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.faceCoverageScore_ = faceCoverageScore_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.eyesCoverageScore_ = eyesCoverageScore_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.headCoverageScore_ = headCoverageScore_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.handsCoverageScore_ = handsCoverageScore_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { result.bodyCoverageScore_ = bodyCoverageScore_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { result.feetCoverageScore_ = feetCoverageScore_; to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson) { return mergeFrom( (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson other) { if (other == com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson.getDefaultInstance()) return this; if (other.getPersonId() != 0L) { setPersonId(other.getPersonId()); } if (other.hasDetectedPersonIdentifiedBox()) { mergeDetectedPersonIdentifiedBox(other.getDetectedPersonIdentifiedBox()); } if (detectedPpeIdentifiedBoxesBuilder_ == null) { if (!other.detectedPpeIdentifiedBoxes_.isEmpty()) { if (detectedPpeIdentifiedBoxes_.isEmpty()) { detectedPpeIdentifiedBoxes_ = other.detectedPpeIdentifiedBoxes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDetectedPpeIdentifiedBoxesIsMutable(); detectedPpeIdentifiedBoxes_.addAll(other.detectedPpeIdentifiedBoxes_); } onChanged(); } } else { if (!other.detectedPpeIdentifiedBoxes_.isEmpty()) { if (detectedPpeIdentifiedBoxesBuilder_.isEmpty()) { detectedPpeIdentifiedBoxesBuilder_.dispose(); detectedPpeIdentifiedBoxesBuilder_ = null; detectedPpeIdentifiedBoxes_ = other.detectedPpeIdentifiedBoxes_; bitField0_ = (bitField0_ & ~0x00000004); detectedPpeIdentifiedBoxesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDetectedPpeIdentifiedBoxesFieldBuilder() : null; } else { detectedPpeIdentifiedBoxesBuilder_.addAllMessages(other.detectedPpeIdentifiedBoxes_); } } } if (other.hasFaceCoverageScore()) { setFaceCoverageScore(other.getFaceCoverageScore()); } if (other.hasEyesCoverageScore()) { setEyesCoverageScore(other.getEyesCoverageScore()); } if (other.hasHeadCoverageScore()) { setHeadCoverageScore(other.getHeadCoverageScore()); } if (other.hasHandsCoverageScore()) { setHandsCoverageScore(other.getHandsCoverageScore()); } if (other.hasBodyCoverageScore()) { setBodyCoverageScore(other.getBodyCoverageScore()); } if (other.hasFeetCoverageScore()) { setFeetCoverageScore(other.getFeetCoverageScore()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { personId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getDetectedPersonIdentifiedBoxFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox m = input.readMessage( com.google.cloud.visionai.v1 .PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox .parser(), extensionRegistry); if (detectedPpeIdentifiedBoxesBuilder_ == null) { ensureDetectedPpeIdentifiedBoxesIsMutable(); detectedPpeIdentifiedBoxes_.add(m); } else { detectedPpeIdentifiedBoxesBuilder_.addMessage(m); } break; } // case 26 case 37: { faceCoverageScore_ = input.readFloat(); bitField0_ |= 0x00000008; break; } // case 37 case 45: { eyesCoverageScore_ = input.readFloat(); bitField0_ |= 0x00000010; break; } // case 45 case 53: { headCoverageScore_ = input.readFloat(); bitField0_ |= 0x00000020; break; } // case 53 case 61: { handsCoverageScore_ = input.readFloat(); bitField0_ |= 0x00000040; break; } // case 61 case 69: { bodyCoverageScore_ = input.readFloat(); bitField0_ |= 0x00000080; break; } // case 69 case 77: { feetCoverageScore_ = input.readFloat(); bitField0_ |= 0x00000100; break; } // case 77 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long personId_; /** * * *
       * The id of detected person.
       * 
* * int64 person_id = 1; * * @return The personId. */ @java.lang.Override public long getPersonId() { return personId_; } /** * * *
       * The id of detected person.
       * 
* * int64 person_id = 1; * * @param value The personId to set. * @return This builder for chaining. */ public Builder setPersonId(long value) { personId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The id of detected person.
       * 
* * int64 person_id = 1; * * @return This builder for chaining. */ public Builder clearPersonId() { bitField0_ = (bitField0_ & ~0x00000001); personId_ = 0L; onChanged(); return this; } private com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox detectedPersonIdentifiedBox_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBoxOrBuilder> detectedPersonIdentifiedBoxBuilder_; /** * * *
       * The info of detected person identified box.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * * * @return Whether the detectedPersonIdentifiedBox field is set. */ public boolean hasDetectedPersonIdentifiedBox() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * The info of detected person identified box.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * * * @return The detectedPersonIdentifiedBox. */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox getDetectedPersonIdentifiedBox() { if (detectedPersonIdentifiedBoxBuilder_ == null) { return detectedPersonIdentifiedBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.getDefaultInstance() : detectedPersonIdentifiedBox_; } else { return detectedPersonIdentifiedBoxBuilder_.getMessage(); } } /** * * *
       * The info of detected person identified box.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * */ public Builder setDetectedPersonIdentifiedBox( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox value) { if (detectedPersonIdentifiedBoxBuilder_ == null) { if (value == null) { throw new NullPointerException(); } detectedPersonIdentifiedBox_ = value; } else { detectedPersonIdentifiedBoxBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The info of detected person identified box.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * */ public Builder setDetectedPersonIdentifiedBox( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.Builder builderForValue) { if (detectedPersonIdentifiedBoxBuilder_ == null) { detectedPersonIdentifiedBox_ = builderForValue.build(); } else { detectedPersonIdentifiedBoxBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The info of detected person identified box.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * */ public Builder mergeDetectedPersonIdentifiedBox( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox value) { if (detectedPersonIdentifiedBoxBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && detectedPersonIdentifiedBox_ != null && detectedPersonIdentifiedBox_ != com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.getDefaultInstance()) { getDetectedPersonIdentifiedBoxBuilder().mergeFrom(value); } else { detectedPersonIdentifiedBox_ = value; } } else { detectedPersonIdentifiedBoxBuilder_.mergeFrom(value); } if (detectedPersonIdentifiedBox_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * The info of detected person identified box.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * */ public Builder clearDetectedPersonIdentifiedBox() { bitField0_ = (bitField0_ & ~0x00000002); detectedPersonIdentifiedBox_ = null; if (detectedPersonIdentifiedBoxBuilder_ != null) { detectedPersonIdentifiedBoxBuilder_.dispose(); detectedPersonIdentifiedBoxBuilder_ = null; } onChanged(); return this; } /** * * *
       * The info of detected person identified box.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.Builder getDetectedPersonIdentifiedBoxBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDetectedPersonIdentifiedBoxFieldBuilder().getBuilder(); } /** * * *
       * The info of detected person identified box.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBoxOrBuilder getDetectedPersonIdentifiedBoxOrBuilder() { if (detectedPersonIdentifiedBoxBuilder_ != null) { return detectedPersonIdentifiedBoxBuilder_.getMessageOrBuilder(); } else { return detectedPersonIdentifiedBox_ == null ? com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.getDefaultInstance() : detectedPersonIdentifiedBox_; } } /** * * *
       * The info of detected person identified box.
       * 
* * * .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox detected_person_identified_box = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBoxOrBuilder> getDetectedPersonIdentifiedBoxFieldBuilder() { if (detectedPersonIdentifiedBoxBuilder_ == null) { detectedPersonIdentifiedBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PersonIdentifiedBoxOrBuilder>( getDetectedPersonIdentifiedBox(), getParentForChildren(), isClean()); detectedPersonIdentifiedBox_ = null; } return detectedPersonIdentifiedBoxBuilder_; } private java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox> detectedPpeIdentifiedBoxes_ = java.util.Collections.emptyList(); private void ensureDetectedPpeIdentifiedBoxesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { detectedPpeIdentifiedBoxes_ = new java.util.ArrayList< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox>(detectedPpeIdentifiedBoxes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBoxOrBuilder> detectedPpeIdentifiedBoxesBuilder_; /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox> getDetectedPpeIdentifiedBoxesList() { if (detectedPpeIdentifiedBoxesBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedPpeIdentifiedBoxes_); } else { return detectedPpeIdentifiedBoxesBuilder_.getMessageList(); } } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public int getDetectedPpeIdentifiedBoxesCount() { if (detectedPpeIdentifiedBoxesBuilder_ == null) { return detectedPpeIdentifiedBoxes_.size(); } else { return detectedPpeIdentifiedBoxesBuilder_.getCount(); } } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox getDetectedPpeIdentifiedBoxes(int index) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { return detectedPpeIdentifiedBoxes_.get(index); } else { return detectedPpeIdentifiedBoxesBuilder_.getMessage(index); } } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public Builder setDetectedPpeIdentifiedBoxes( int index, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox value) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetectedPpeIdentifiedBoxesIsMutable(); detectedPpeIdentifiedBoxes_.set(index, value); onChanged(); } else { detectedPpeIdentifiedBoxesBuilder_.setMessage(index, value); } return this; } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public Builder setDetectedPpeIdentifiedBoxes( int index, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox .Builder builderForValue) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { ensureDetectedPpeIdentifiedBoxesIsMutable(); detectedPpeIdentifiedBoxes_.set(index, builderForValue.build()); onChanged(); } else { detectedPpeIdentifiedBoxesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public Builder addDetectedPpeIdentifiedBoxes( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox value) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetectedPpeIdentifiedBoxesIsMutable(); detectedPpeIdentifiedBoxes_.add(value); onChanged(); } else { detectedPpeIdentifiedBoxesBuilder_.addMessage(value); } return this; } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public Builder addDetectedPpeIdentifiedBoxes( int index, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox value) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetectedPpeIdentifiedBoxesIsMutable(); detectedPpeIdentifiedBoxes_.add(index, value); onChanged(); } else { detectedPpeIdentifiedBoxesBuilder_.addMessage(index, value); } return this; } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public Builder addDetectedPpeIdentifiedBoxes( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox .Builder builderForValue) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { ensureDetectedPpeIdentifiedBoxesIsMutable(); detectedPpeIdentifiedBoxes_.add(builderForValue.build()); onChanged(); } else { detectedPpeIdentifiedBoxesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public Builder addDetectedPpeIdentifiedBoxes( int index, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox .Builder builderForValue) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { ensureDetectedPpeIdentifiedBoxesIsMutable(); detectedPpeIdentifiedBoxes_.add(index, builderForValue.build()); onChanged(); } else { detectedPpeIdentifiedBoxesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public Builder addAllDetectedPpeIdentifiedBoxes( java.lang.Iterable< ? extends com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox> values) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { ensureDetectedPpeIdentifiedBoxesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, detectedPpeIdentifiedBoxes_); onChanged(); } else { detectedPpeIdentifiedBoxesBuilder_.addAllMessages(values); } return this; } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public Builder clearDetectedPpeIdentifiedBoxes() { if (detectedPpeIdentifiedBoxesBuilder_ == null) { detectedPpeIdentifiedBoxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { detectedPpeIdentifiedBoxesBuilder_.clear(); } return this; } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public Builder removeDetectedPpeIdentifiedBoxes(int index) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { ensureDetectedPpeIdentifiedBoxesIsMutable(); detectedPpeIdentifiedBoxes_.remove(index); onChanged(); } else { detectedPpeIdentifiedBoxesBuilder_.remove(index); } return this; } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.Builder getDetectedPpeIdentifiedBoxesBuilder(int index) { return getDetectedPpeIdentifiedBoxesFieldBuilder().getBuilder(index); } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBoxOrBuilder getDetectedPpeIdentifiedBoxesOrBuilder(int index) { if (detectedPpeIdentifiedBoxesBuilder_ == null) { return detectedPpeIdentifiedBoxes_.get(index); } else { return detectedPpeIdentifiedBoxesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public java.util.List< ? extends com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBoxOrBuilder> getDetectedPpeIdentifiedBoxesOrBuilderList() { if (detectedPpeIdentifiedBoxesBuilder_ != null) { return detectedPpeIdentifiedBoxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(detectedPpeIdentifiedBoxes_); } } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.Builder addDetectedPpeIdentifiedBoxesBuilder() { return getDetectedPpeIdentifiedBoxesFieldBuilder() .addBuilder( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.getDefaultInstance()); } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.Builder addDetectedPpeIdentifiedBoxesBuilder(int index) { return getDetectedPpeIdentifiedBoxesFieldBuilder() .addBuilder( index, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.getDefaultInstance()); } /** * * *
       * The info of detected person associated ppe identified boxes.
       * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox detected_ppe_identified_boxes = 3; * */ public java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.Builder> getDetectedPpeIdentifiedBoxesBuilderList() { return getDetectedPpeIdentifiedBoxesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBoxOrBuilder> getDetectedPpeIdentifiedBoxesFieldBuilder() { if (detectedPpeIdentifiedBoxesBuilder_ == null) { detectedPpeIdentifiedBoxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBox.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .PPEIdentifiedBoxOrBuilder>( detectedPpeIdentifiedBoxes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); detectedPpeIdentifiedBoxes_ = null; } return detectedPpeIdentifiedBoxesBuilder_; } private float faceCoverageScore_; /** * * *
       * Coverage score for each body part.
       * Coverage score for face.
       * 
* * optional float face_coverage_score = 4; * * @return Whether the faceCoverageScore field is set. */ @java.lang.Override public boolean hasFaceCoverageScore() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
       * Coverage score for each body part.
       * Coverage score for face.
       * 
* * optional float face_coverage_score = 4; * * @return The faceCoverageScore. */ @java.lang.Override public float getFaceCoverageScore() { return faceCoverageScore_; } /** * * *
       * Coverage score for each body part.
       * Coverage score for face.
       * 
* * optional float face_coverage_score = 4; * * @param value The faceCoverageScore to set. * @return This builder for chaining. */ public Builder setFaceCoverageScore(float value) { faceCoverageScore_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Coverage score for each body part.
       * Coverage score for face.
       * 
* * optional float face_coverage_score = 4; * * @return This builder for chaining. */ public Builder clearFaceCoverageScore() { bitField0_ = (bitField0_ & ~0x00000008); faceCoverageScore_ = 0F; onChanged(); return this; } private float eyesCoverageScore_; /** * * *
       * Coverage score for eyes.
       * 
* * optional float eyes_coverage_score = 5; * * @return Whether the eyesCoverageScore field is set. */ @java.lang.Override public boolean hasEyesCoverageScore() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
       * Coverage score for eyes.
       * 
* * optional float eyes_coverage_score = 5; * * @return The eyesCoverageScore. */ @java.lang.Override public float getEyesCoverageScore() { return eyesCoverageScore_; } /** * * *
       * Coverage score for eyes.
       * 
* * optional float eyes_coverage_score = 5; * * @param value The eyesCoverageScore to set. * @return This builder for chaining. */ public Builder setEyesCoverageScore(float value) { eyesCoverageScore_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * Coverage score for eyes.
       * 
* * optional float eyes_coverage_score = 5; * * @return This builder for chaining. */ public Builder clearEyesCoverageScore() { bitField0_ = (bitField0_ & ~0x00000010); eyesCoverageScore_ = 0F; onChanged(); return this; } private float headCoverageScore_; /** * * *
       * Coverage score for head.
       * 
* * optional float head_coverage_score = 6; * * @return Whether the headCoverageScore field is set. */ @java.lang.Override public boolean hasHeadCoverageScore() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
       * Coverage score for head.
       * 
* * optional float head_coverage_score = 6; * * @return The headCoverageScore. */ @java.lang.Override public float getHeadCoverageScore() { return headCoverageScore_; } /** * * *
       * Coverage score for head.
       * 
* * optional float head_coverage_score = 6; * * @param value The headCoverageScore to set. * @return This builder for chaining. */ public Builder setHeadCoverageScore(float value) { headCoverageScore_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * Coverage score for head.
       * 
* * optional float head_coverage_score = 6; * * @return This builder for chaining. */ public Builder clearHeadCoverageScore() { bitField0_ = (bitField0_ & ~0x00000020); headCoverageScore_ = 0F; onChanged(); return this; } private float handsCoverageScore_; /** * * *
       * Coverage score for hands.
       * 
* * optional float hands_coverage_score = 7; * * @return Whether the handsCoverageScore field is set. */ @java.lang.Override public boolean hasHandsCoverageScore() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
       * Coverage score for hands.
       * 
* * optional float hands_coverage_score = 7; * * @return The handsCoverageScore. */ @java.lang.Override public float getHandsCoverageScore() { return handsCoverageScore_; } /** * * *
       * Coverage score for hands.
       * 
* * optional float hands_coverage_score = 7; * * @param value The handsCoverageScore to set. * @return This builder for chaining. */ public Builder setHandsCoverageScore(float value) { handsCoverageScore_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
       * Coverage score for hands.
       * 
* * optional float hands_coverage_score = 7; * * @return This builder for chaining. */ public Builder clearHandsCoverageScore() { bitField0_ = (bitField0_ & ~0x00000040); handsCoverageScore_ = 0F; onChanged(); return this; } private float bodyCoverageScore_; /** * * *
       * Coverage score for body.
       * 
* * optional float body_coverage_score = 8; * * @return Whether the bodyCoverageScore field is set. */ @java.lang.Override public boolean hasBodyCoverageScore() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
       * Coverage score for body.
       * 
* * optional float body_coverage_score = 8; * * @return The bodyCoverageScore. */ @java.lang.Override public float getBodyCoverageScore() { return bodyCoverageScore_; } /** * * *
       * Coverage score for body.
       * 
* * optional float body_coverage_score = 8; * * @param value The bodyCoverageScore to set. * @return This builder for chaining. */ public Builder setBodyCoverageScore(float value) { bodyCoverageScore_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
       * Coverage score for body.
       * 
* * optional float body_coverage_score = 8; * * @return This builder for chaining. */ public Builder clearBodyCoverageScore() { bitField0_ = (bitField0_ & ~0x00000080); bodyCoverageScore_ = 0F; onChanged(); return this; } private float feetCoverageScore_; /** * * *
       * Coverage score for feet.
       * 
* * optional float feet_coverage_score = 9; * * @return Whether the feetCoverageScore field is set. */ @java.lang.Override public boolean hasFeetCoverageScore() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
       * Coverage score for feet.
       * 
* * optional float feet_coverage_score = 9; * * @return The feetCoverageScore. */ @java.lang.Override public float getFeetCoverageScore() { return feetCoverageScore_; } /** * * *
       * Coverage score for feet.
       * 
* * optional float feet_coverage_score = 9; * * @param value The feetCoverageScore to set. * @return This builder for chaining. */ public Builder setFeetCoverageScore(float value) { feetCoverageScore_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
       * Coverage score for feet.
       * 
* * optional float feet_coverage_score = 9; * * @return This builder for chaining. */ public Builder clearFeetCoverageScore() { bitField0_ = (bitField0_ & ~0x00000100); feetCoverageScore_ = 0F; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson) private static final com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson(); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DetectedPerson parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int CURRENT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp currentTime_; /** * * *
   * Current timestamp.
   * 
* * .google.protobuf.Timestamp current_time = 1; * * @return Whether the currentTime field is set. */ @java.lang.Override public boolean hasCurrentTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Current timestamp.
   * 
* * .google.protobuf.Timestamp current_time = 1; * * @return The currentTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCurrentTime() { return currentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : currentTime_; } /** * * *
   * Current timestamp.
   * 
* * .google.protobuf.Timestamp current_time = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCurrentTimeOrBuilder() { return currentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : currentTime_; } public static final int DETECTED_PERSONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson> detectedPersons_; /** * * *
   * A list of DetectedPersons.
   * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ @java.lang.Override public java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson> getDetectedPersonsList() { return detectedPersons_; } /** * * *
   * A list of DetectedPersons.
   * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPersonOrBuilder> getDetectedPersonsOrBuilderList() { return detectedPersons_; } /** * * *
   * A list of DetectedPersons.
   * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ @java.lang.Override public int getDetectedPersonsCount() { return detectedPersons_.size(); } /** * * *
   * A list of DetectedPersons.
   * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson getDetectedPersons(int index) { return detectedPersons_.get(index); } /** * * *
   * A list of DetectedPersons.
   * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPersonOrBuilder getDetectedPersonsOrBuilder(int index) { return detectedPersons_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCurrentTime()); } for (int i = 0; i < detectedPersons_.size(); i++) { output.writeMessage(2, detectedPersons_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCurrentTime()); } for (int i = 0; i < detectedPersons_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, detectedPersons_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput)) { return super.equals(obj); } com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput other = (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput) obj; if (hasCurrentTime() != other.hasCurrentTime()) return false; if (hasCurrentTime()) { if (!getCurrentTime().equals(other.getCurrentTime())) return false; } if (!getDetectedPersonsList().equals(other.getDetectedPersonsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCurrentTime()) { hash = (37 * hash) + CURRENT_TIME_FIELD_NUMBER; hash = (53 * hash) + getCurrentTime().hashCode(); } if (getDetectedPersonsCount() > 0) { hash = (37 * hash) + DETECTED_PERSONS_FIELD_NUMBER; hash = (53 * hash) + getDetectedPersonsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Output format for Personal Protective Equipment Detection Operator.
   * 
* * Protobuf type {@code google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput) com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.class, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.Builder .class); } // Construct using // com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCurrentTimeFieldBuilder(); getDetectedPersonsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; currentTime_ = null; if (currentTimeBuilder_ != null) { currentTimeBuilder_.dispose(); currentTimeBuilder_ = null; } if (detectedPersonsBuilder_ == null) { detectedPersons_ = java.util.Collections.emptyList(); } else { detectedPersons_ = null; detectedPersonsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_PersonalProtectiveEquipmentDetectionOutput_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput getDefaultInstanceForType() { return com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput build() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput buildPartial() { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput result = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput result) { if (detectedPersonsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { detectedPersons_ = java.util.Collections.unmodifiableList(detectedPersons_); bitField0_ = (bitField0_ & ~0x00000002); } result.detectedPersons_ = detectedPersons_; } else { result.detectedPersons_ = detectedPersonsBuilder_.build(); } } private void buildPartial0( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.currentTime_ = currentTimeBuilder_ == null ? currentTime_ : currentTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput) { return mergeFrom( (com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput other) { if (other == com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .getDefaultInstance()) return this; if (other.hasCurrentTime()) { mergeCurrentTime(other.getCurrentTime()); } if (detectedPersonsBuilder_ == null) { if (!other.detectedPersons_.isEmpty()) { if (detectedPersons_.isEmpty()) { detectedPersons_ = other.detectedPersons_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDetectedPersonsIsMutable(); detectedPersons_.addAll(other.detectedPersons_); } onChanged(); } } else { if (!other.detectedPersons_.isEmpty()) { if (detectedPersonsBuilder_.isEmpty()) { detectedPersonsBuilder_.dispose(); detectedPersonsBuilder_ = null; detectedPersons_ = other.detectedPersons_; bitField0_ = (bitField0_ & ~0x00000002); detectedPersonsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDetectedPersonsFieldBuilder() : null; } else { detectedPersonsBuilder_.addAllMessages(other.detectedPersons_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getCurrentTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson m = input.readMessage( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson.parser(), extensionRegistry); if (detectedPersonsBuilder_ == null) { ensureDetectedPersonsIsMutable(); detectedPersons_.add(m); } else { detectedPersonsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Timestamp currentTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> currentTimeBuilder_; /** * * *
     * Current timestamp.
     * 
* * .google.protobuf.Timestamp current_time = 1; * * @return Whether the currentTime field is set. */ public boolean hasCurrentTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Current timestamp.
     * 
* * .google.protobuf.Timestamp current_time = 1; * * @return The currentTime. */ public com.google.protobuf.Timestamp getCurrentTime() { if (currentTimeBuilder_ == null) { return currentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : currentTime_; } else { return currentTimeBuilder_.getMessage(); } } /** * * *
     * Current timestamp.
     * 
* * .google.protobuf.Timestamp current_time = 1; */ public Builder setCurrentTime(com.google.protobuf.Timestamp value) { if (currentTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentTime_ = value; } else { currentTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Current timestamp.
     * 
* * .google.protobuf.Timestamp current_time = 1; */ public Builder setCurrentTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (currentTimeBuilder_ == null) { currentTime_ = builderForValue.build(); } else { currentTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Current timestamp.
     * 
* * .google.protobuf.Timestamp current_time = 1; */ public Builder mergeCurrentTime(com.google.protobuf.Timestamp value) { if (currentTimeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && currentTime_ != null && currentTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCurrentTimeBuilder().mergeFrom(value); } else { currentTime_ = value; } } else { currentTimeBuilder_.mergeFrom(value); } if (currentTime_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
     * Current timestamp.
     * 
* * .google.protobuf.Timestamp current_time = 1; */ public Builder clearCurrentTime() { bitField0_ = (bitField0_ & ~0x00000001); currentTime_ = null; if (currentTimeBuilder_ != null) { currentTimeBuilder_.dispose(); currentTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Current timestamp.
     * 
* * .google.protobuf.Timestamp current_time = 1; */ public com.google.protobuf.Timestamp.Builder getCurrentTimeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCurrentTimeFieldBuilder().getBuilder(); } /** * * *
     * Current timestamp.
     * 
* * .google.protobuf.Timestamp current_time = 1; */ public com.google.protobuf.TimestampOrBuilder getCurrentTimeOrBuilder() { if (currentTimeBuilder_ != null) { return currentTimeBuilder_.getMessageOrBuilder(); } else { return currentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : currentTime_; } } /** * * *
     * Current timestamp.
     * 
* * .google.protobuf.Timestamp current_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCurrentTimeFieldBuilder() { if (currentTimeBuilder_ == null) { currentTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCurrentTime(), getParentForChildren(), isClean()); currentTime_ = null; } return currentTimeBuilder_; } private java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson> detectedPersons_ = java.util.Collections.emptyList(); private void ensureDetectedPersonsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { detectedPersons_ = new java.util.ArrayList< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson>(detectedPersons_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPersonOrBuilder> detectedPersonsBuilder_; /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson> getDetectedPersonsList() { if (detectedPersonsBuilder_ == null) { return java.util.Collections.unmodifiableList(detectedPersons_); } else { return detectedPersonsBuilder_.getMessageList(); } } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public int getDetectedPersonsCount() { if (detectedPersonsBuilder_ == null) { return detectedPersons_.size(); } else { return detectedPersonsBuilder_.getCount(); } } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson getDetectedPersons(int index) { if (detectedPersonsBuilder_ == null) { return detectedPersons_.get(index); } else { return detectedPersonsBuilder_.getMessage(index); } } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public Builder setDetectedPersons( int index, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson value) { if (detectedPersonsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetectedPersonsIsMutable(); detectedPersons_.set(index, value); onChanged(); } else { detectedPersonsBuilder_.setMessage(index, value); } return this; } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public Builder setDetectedPersons( int index, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .Builder builderForValue) { if (detectedPersonsBuilder_ == null) { ensureDetectedPersonsIsMutable(); detectedPersons_.set(index, builderForValue.build()); onChanged(); } else { detectedPersonsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public Builder addDetectedPersons( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson value) { if (detectedPersonsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetectedPersonsIsMutable(); detectedPersons_.add(value); onChanged(); } else { detectedPersonsBuilder_.addMessage(value); } return this; } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public Builder addDetectedPersons( int index, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson value) { if (detectedPersonsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetectedPersonsIsMutable(); detectedPersons_.add(index, value); onChanged(); } else { detectedPersonsBuilder_.addMessage(index, value); } return this; } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public Builder addDetectedPersons( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .Builder builderForValue) { if (detectedPersonsBuilder_ == null) { ensureDetectedPersonsIsMutable(); detectedPersons_.add(builderForValue.build()); onChanged(); } else { detectedPersonsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public Builder addDetectedPersons( int index, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .Builder builderForValue) { if (detectedPersonsBuilder_ == null) { ensureDetectedPersonsIsMutable(); detectedPersons_.add(index, builderForValue.build()); onChanged(); } else { detectedPersonsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public Builder addAllDetectedPersons( java.lang.Iterable< ? extends com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson> values) { if (detectedPersonsBuilder_ == null) { ensureDetectedPersonsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectedPersons_); onChanged(); } else { detectedPersonsBuilder_.addAllMessages(values); } return this; } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public Builder clearDetectedPersons() { if (detectedPersonsBuilder_ == null) { detectedPersons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { detectedPersonsBuilder_.clear(); } return this; } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public Builder removeDetectedPersons(int index) { if (detectedPersonsBuilder_ == null) { ensureDetectedPersonsIsMutable(); detectedPersons_.remove(index); onChanged(); } else { detectedPersonsBuilder_.remove(index); } return this; } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .Builder getDetectedPersonsBuilder(int index) { return getDetectedPersonsFieldBuilder().getBuilder(index); } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPersonOrBuilder getDetectedPersonsOrBuilder(int index) { if (detectedPersonsBuilder_ == null) { return detectedPersons_.get(index); } else { return detectedPersonsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public java.util.List< ? extends com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPersonOrBuilder> getDetectedPersonsOrBuilderList() { if (detectedPersonsBuilder_ != null) { return detectedPersonsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(detectedPersons_); } } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .Builder addDetectedPersonsBuilder() { return getDetectedPersonsFieldBuilder() .addBuilder( com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .getDefaultInstance()); } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .Builder addDetectedPersonsBuilder(int index) { return getDetectedPersonsFieldBuilder() .addBuilder( index, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .getDefaultInstance()); } /** * * *
     * A list of DetectedPersons.
     * 
* * * repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2; * */ public java.util.List< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .Builder> getDetectedPersonsBuilderList() { return getDetectedPersonsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson .Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPersonOrBuilder> getDetectedPersonsFieldBuilder() { if (detectedPersonsBuilder_ == null) { detectedPersonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPerson.Builder, com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput .DetectedPersonOrBuilder>( detectedPersons_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); detectedPersons_ = null; } return detectedPersonsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput) private static final com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput(); } public static com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersonalProtectiveEquipmentDetectionOutput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy