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

yandex.cloud.api.ai.vision.v1.FaceDetection Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/ai/vision/v1/face_detection.proto

package yandex.cloud.api.ai.vision.v1;

public final class FaceDetection {
  private FaceDetection() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface FaceAnnotationOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.ai.vision.v1.FaceAnnotation)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * An array of detected faces for the specified image.
     * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ java.util.List getFacesList(); /** *
     * An array of detected faces for the specified image.
     * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ yandex.cloud.api.ai.vision.v1.FaceDetection.Face getFaces(int index); /** *
     * An array of detected faces for the specified image.
     * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ int getFacesCount(); /** *
     * An array of detected faces for the specified image.
     * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ java.util.List getFacesOrBuilderList(); /** *
     * An array of detected faces for the specified image.
     * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ yandex.cloud.api.ai.vision.v1.FaceDetection.FaceOrBuilder getFacesOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.ai.vision.v1.FaceAnnotation} */ public static final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ai.vision.v1.FaceAnnotation) FaceAnnotationOrBuilder { private static final long serialVersionUID = 0L; // Use FaceAnnotation.newBuilder() to construct. private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FaceAnnotation() { faces_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FaceAnnotation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FaceAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { faces_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } faces_.add( input.readMessage(yandex.cloud.api.ai.vision.v1.FaceDetection.Face.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { faces_ = java.util.Collections.unmodifiableList(faces_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.vision.v1.FaceDetection.internal_static_yandex_cloud_ai_vision_v1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.vision.v1.FaceDetection.internal_static_yandex_cloud_ai_vision_v1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation.class, yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation.Builder.class); } public static final int FACES_FIELD_NUMBER = 1; private java.util.List faces_; /** *
     * An array of detected faces for the specified image.
     * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ @java.lang.Override public java.util.List getFacesList() { return faces_; } /** *
     * An array of detected faces for the specified image.
     * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ @java.lang.Override public java.util.List getFacesOrBuilderList() { return faces_; } /** *
     * An array of detected faces for the specified image.
     * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ @java.lang.Override public int getFacesCount() { return faces_.size(); } /** *
     * An array of detected faces for the specified image.
     * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ @java.lang.Override public yandex.cloud.api.ai.vision.v1.FaceDetection.Face getFaces(int index) { return faces_.get(index); } /** *
     * An array of detected faces for the specified image.
     * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ @java.lang.Override public yandex.cloud.api.ai.vision.v1.FaceDetection.FaceOrBuilder getFacesOrBuilder( int index) { return faces_.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 { for (int i = 0; i < faces_.size(); i++) { output.writeMessage(1, faces_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < faces_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, faces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation)) { return super.equals(obj); } yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation other = (yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation) obj; if (!getFacesList() .equals(other.getFacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFacesCount() > 0) { hash = (37 * hash) + FACES_FIELD_NUMBER; hash = (53 * hash) + getFacesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation 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 yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation 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 yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation 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(yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation 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; } /** * Protobuf type {@code yandex.cloud.ai.vision.v1.FaceAnnotation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ai.vision.v1.FaceAnnotation) yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.vision.v1.FaceDetection.internal_static_yandex_cloud_ai_vision_v1_FaceAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.vision.v1.FaceDetection.internal_static_yandex_cloud_ai_vision_v1_FaceAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation.class, yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation.Builder.class); } // Construct using yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFacesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (facesBuilder_ == null) { faces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { facesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.vision.v1.FaceDetection.internal_static_yandex_cloud_ai_vision_v1_FaceAnnotation_descriptor; } @java.lang.Override public yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation getDefaultInstanceForType() { return yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation build() { yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation buildPartial() { yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation result = new yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation(this); int from_bitField0_ = bitField0_; if (facesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { faces_ = java.util.Collections.unmodifiableList(faces_); bitField0_ = (bitField0_ & ~0x00000001); } result.faces_ = faces_; } else { result.faces_ = facesBuilder_.build(); } onBuilt(); return result; } @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 yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation) { return mergeFrom((yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation other) { if (other == yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation.getDefaultInstance()) return this; if (facesBuilder_ == null) { if (!other.faces_.isEmpty()) { if (faces_.isEmpty()) { faces_ = other.faces_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFacesIsMutable(); faces_.addAll(other.faces_); } onChanged(); } } else { if (!other.faces_.isEmpty()) { if (facesBuilder_.isEmpty()) { facesBuilder_.dispose(); facesBuilder_ = null; faces_ = other.faces_; bitField0_ = (bitField0_ & ~0x00000001); facesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFacesFieldBuilder() : null; } else { facesBuilder_.addAllMessages(other.faces_); } } } this.mergeUnknownFields(other.unknownFields); 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 { yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List faces_ = java.util.Collections.emptyList(); private void ensureFacesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { faces_ = new java.util.ArrayList(faces_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.vision.v1.FaceDetection.Face, yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder, yandex.cloud.api.ai.vision.v1.FaceDetection.FaceOrBuilder> facesBuilder_; /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public java.util.List getFacesList() { if (facesBuilder_ == null) { return java.util.Collections.unmodifiableList(faces_); } else { return facesBuilder_.getMessageList(); } } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public int getFacesCount() { if (facesBuilder_ == null) { return faces_.size(); } else { return facesBuilder_.getCount(); } } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public yandex.cloud.api.ai.vision.v1.FaceDetection.Face getFaces(int index) { if (facesBuilder_ == null) { return faces_.get(index); } else { return facesBuilder_.getMessage(index); } } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public Builder setFaces( int index, yandex.cloud.api.ai.vision.v1.FaceDetection.Face value) { if (facesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacesIsMutable(); faces_.set(index, value); onChanged(); } else { facesBuilder_.setMessage(index, value); } return this; } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public Builder setFaces( int index, yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder builderForValue) { if (facesBuilder_ == null) { ensureFacesIsMutable(); faces_.set(index, builderForValue.build()); onChanged(); } else { facesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public Builder addFaces(yandex.cloud.api.ai.vision.v1.FaceDetection.Face value) { if (facesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacesIsMutable(); faces_.add(value); onChanged(); } else { facesBuilder_.addMessage(value); } return this; } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public Builder addFaces( int index, yandex.cloud.api.ai.vision.v1.FaceDetection.Face value) { if (facesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacesIsMutable(); faces_.add(index, value); onChanged(); } else { facesBuilder_.addMessage(index, value); } return this; } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public Builder addFaces( yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder builderForValue) { if (facesBuilder_ == null) { ensureFacesIsMutable(); faces_.add(builderForValue.build()); onChanged(); } else { facesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public Builder addFaces( int index, yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder builderForValue) { if (facesBuilder_ == null) { ensureFacesIsMutable(); faces_.add(index, builderForValue.build()); onChanged(); } else { facesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public Builder addAllFaces( java.lang.Iterable values) { if (facesBuilder_ == null) { ensureFacesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, faces_); onChanged(); } else { facesBuilder_.addAllMessages(values); } return this; } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public Builder clearFaces() { if (facesBuilder_ == null) { faces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { facesBuilder_.clear(); } return this; } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public Builder removeFaces(int index) { if (facesBuilder_ == null) { ensureFacesIsMutable(); faces_.remove(index); onChanged(); } else { facesBuilder_.remove(index); } return this; } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder getFacesBuilder( int index) { return getFacesFieldBuilder().getBuilder(index); } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public yandex.cloud.api.ai.vision.v1.FaceDetection.FaceOrBuilder getFacesOrBuilder( int index) { if (facesBuilder_ == null) { return faces_.get(index); } else { return facesBuilder_.getMessageOrBuilder(index); } } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public java.util.List getFacesOrBuilderList() { if (facesBuilder_ != null) { return facesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(faces_); } } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder addFacesBuilder() { return getFacesFieldBuilder().addBuilder( yandex.cloud.api.ai.vision.v1.FaceDetection.Face.getDefaultInstance()); } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder addFacesBuilder( int index) { return getFacesFieldBuilder().addBuilder( index, yandex.cloud.api.ai.vision.v1.FaceDetection.Face.getDefaultInstance()); } /** *
       * An array of detected faces for the specified image.
       * 
* * repeated .yandex.cloud.ai.vision.v1.Face faces = 1; */ public java.util.List getFacesBuilderList() { return getFacesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.vision.v1.FaceDetection.Face, yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder, yandex.cloud.api.ai.vision.v1.FaceDetection.FaceOrBuilder> getFacesFieldBuilder() { if (facesBuilder_ == null) { facesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.vision.v1.FaceDetection.Face, yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder, yandex.cloud.api.ai.vision.v1.FaceDetection.FaceOrBuilder>( faces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); faces_ = null; } return facesBuilder_; } @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:yandex.cloud.ai.vision.v1.FaceAnnotation) } // @@protoc_insertion_point(class_scope:yandex.cloud.ai.vision.v1.FaceAnnotation) private static final yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation(); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FaceAnnotation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FaceAnnotation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ai.vision.v1.FaceDetection.FaceAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FaceOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ai.vision.v1.Face) com.google.protobuf.MessageOrBuilder { /** *
     * Area on the image where the face is located.
     * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** *
     * Area on the image where the face is located.
     * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; * @return The boundingBox. */ yandex.cloud.api.ai.vision.v1.Primitives.Polygon getBoundingBox(); /** *
     * Area on the image where the face is located.
     * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; */ yandex.cloud.api.ai.vision.v1.Primitives.PolygonOrBuilder getBoundingBoxOrBuilder(); } /** * Protobuf type {@code yandex.cloud.ai.vision.v1.Face} */ public static final class Face extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ai.vision.v1.Face) FaceOrBuilder { private static final long serialVersionUID = 0L; // Use Face.newBuilder() to construct. private Face(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Face() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Face(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Face( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { yandex.cloud.api.ai.vision.v1.Primitives.Polygon.Builder subBuilder = null; if (boundingBox_ != null) { subBuilder = boundingBox_.toBuilder(); } boundingBox_ = input.readMessage(yandex.cloud.api.ai.vision.v1.Primitives.Polygon.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(boundingBox_); boundingBox_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.vision.v1.FaceDetection.internal_static_yandex_cloud_ai_vision_v1_Face_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.vision.v1.FaceDetection.internal_static_yandex_cloud_ai_vision_v1_Face_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.vision.v1.FaceDetection.Face.class, yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder.class); } public static final int BOUNDING_BOX_FIELD_NUMBER = 1; private yandex.cloud.api.ai.vision.v1.Primitives.Polygon boundingBox_; /** *
     * Area on the image where the face is located.
     * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; * @return Whether the boundingBox field is set. */ @java.lang.Override public boolean hasBoundingBox() { return boundingBox_ != null; } /** *
     * Area on the image where the face is located.
     * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; * @return The boundingBox. */ @java.lang.Override public yandex.cloud.api.ai.vision.v1.Primitives.Polygon getBoundingBox() { return boundingBox_ == null ? yandex.cloud.api.ai.vision.v1.Primitives.Polygon.getDefaultInstance() : boundingBox_; } /** *
     * Area on the image where the face is located.
     * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; */ @java.lang.Override public yandex.cloud.api.ai.vision.v1.Primitives.PolygonOrBuilder getBoundingBoxOrBuilder() { return getBoundingBox(); } 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 (boundingBox_ != null) { output.writeMessage(1, getBoundingBox()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (boundingBox_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBoundingBox()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ai.vision.v1.FaceDetection.Face)) { return super.equals(obj); } yandex.cloud.api.ai.vision.v1.FaceDetection.Face other = (yandex.cloud.api.ai.vision.v1.FaceDetection.Face) obj; if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { if (!getBoundingBox() .equals(other.getBoundingBox())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBoundingBox()) { hash = (37 * hash) + BOUNDING_BOX_FIELD_NUMBER; hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face 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 yandex.cloud.api.ai.vision.v1.FaceDetection.Face parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face 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 yandex.cloud.api.ai.vision.v1.FaceDetection.Face parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face 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(yandex.cloud.api.ai.vision.v1.FaceDetection.Face 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; } /** * Protobuf type {@code yandex.cloud.ai.vision.v1.Face} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ai.vision.v1.Face) yandex.cloud.api.ai.vision.v1.FaceDetection.FaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.vision.v1.FaceDetection.internal_static_yandex_cloud_ai_vision_v1_Face_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.vision.v1.FaceDetection.internal_static_yandex_cloud_ai_vision_v1_Face_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.vision.v1.FaceDetection.Face.class, yandex.cloud.api.ai.vision.v1.FaceDetection.Face.Builder.class); } // Construct using yandex.cloud.api.ai.vision.v1.FaceDetection.Face.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (boundingBoxBuilder_ == null) { boundingBox_ = null; } else { boundingBox_ = null; boundingBoxBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.vision.v1.FaceDetection.internal_static_yandex_cloud_ai_vision_v1_Face_descriptor; } @java.lang.Override public yandex.cloud.api.ai.vision.v1.FaceDetection.Face getDefaultInstanceForType() { return yandex.cloud.api.ai.vision.v1.FaceDetection.Face.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.vision.v1.FaceDetection.Face build() { yandex.cloud.api.ai.vision.v1.FaceDetection.Face result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.vision.v1.FaceDetection.Face buildPartial() { yandex.cloud.api.ai.vision.v1.FaceDetection.Face result = new yandex.cloud.api.ai.vision.v1.FaceDetection.Face(this); if (boundingBoxBuilder_ == null) { result.boundingBox_ = boundingBox_; } else { result.boundingBox_ = boundingBoxBuilder_.build(); } onBuilt(); return result; } @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 yandex.cloud.api.ai.vision.v1.FaceDetection.Face) { return mergeFrom((yandex.cloud.api.ai.vision.v1.FaceDetection.Face)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.vision.v1.FaceDetection.Face other) { if (other == yandex.cloud.api.ai.vision.v1.FaceDetection.Face.getDefaultInstance()) return this; if (other.hasBoundingBox()) { mergeBoundingBox(other.getBoundingBox()); } this.mergeUnknownFields(other.unknownFields); 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 { yandex.cloud.api.ai.vision.v1.FaceDetection.Face parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.vision.v1.FaceDetection.Face) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private yandex.cloud.api.ai.vision.v1.Primitives.Polygon boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.vision.v1.Primitives.Polygon, yandex.cloud.api.ai.vision.v1.Primitives.Polygon.Builder, yandex.cloud.api.ai.vision.v1.Primitives.PolygonOrBuilder> boundingBoxBuilder_; /** *
       * Area on the image where the face is located.
       * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return boundingBoxBuilder_ != null || boundingBox_ != null; } /** *
       * Area on the image where the face is located.
       * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; * @return The boundingBox. */ public yandex.cloud.api.ai.vision.v1.Primitives.Polygon getBoundingBox() { if (boundingBoxBuilder_ == null) { return boundingBox_ == null ? yandex.cloud.api.ai.vision.v1.Primitives.Polygon.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** *
       * Area on the image where the face is located.
       * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; */ public Builder setBoundingBox(yandex.cloud.api.ai.vision.v1.Primitives.Polygon value) { if (boundingBoxBuilder_ == null) { if (value == null) { throw new NullPointerException(); } boundingBox_ = value; onChanged(); } else { boundingBoxBuilder_.setMessage(value); } return this; } /** *
       * Area on the image where the face is located.
       * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; */ public Builder setBoundingBox( yandex.cloud.api.ai.vision.v1.Primitives.Polygon.Builder builderForValue) { if (boundingBoxBuilder_ == null) { boundingBox_ = builderForValue.build(); onChanged(); } else { boundingBoxBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Area on the image where the face is located.
       * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; */ public Builder mergeBoundingBox(yandex.cloud.api.ai.vision.v1.Primitives.Polygon value) { if (boundingBoxBuilder_ == null) { if (boundingBox_ != null) { boundingBox_ = yandex.cloud.api.ai.vision.v1.Primitives.Polygon.newBuilder(boundingBox_).mergeFrom(value).buildPartial(); } else { boundingBox_ = value; } onChanged(); } else { boundingBoxBuilder_.mergeFrom(value); } return this; } /** *
       * Area on the image where the face is located.
       * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; */ public Builder clearBoundingBox() { if (boundingBoxBuilder_ == null) { boundingBox_ = null; onChanged(); } else { boundingBox_ = null; boundingBoxBuilder_ = null; } return this; } /** *
       * Area on the image where the face is located.
       * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; */ public yandex.cloud.api.ai.vision.v1.Primitives.Polygon.Builder getBoundingBoxBuilder() { onChanged(); return getBoundingBoxFieldBuilder().getBuilder(); } /** *
       * Area on the image where the face is located.
       * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; */ public yandex.cloud.api.ai.vision.v1.Primitives.PolygonOrBuilder getBoundingBoxOrBuilder() { if (boundingBoxBuilder_ != null) { return boundingBoxBuilder_.getMessageOrBuilder(); } else { return boundingBox_ == null ? yandex.cloud.api.ai.vision.v1.Primitives.Polygon.getDefaultInstance() : boundingBox_; } } /** *
       * Area on the image where the face is located.
       * 
* * .yandex.cloud.ai.vision.v1.Polygon bounding_box = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.vision.v1.Primitives.Polygon, yandex.cloud.api.ai.vision.v1.Primitives.Polygon.Builder, yandex.cloud.api.ai.vision.v1.Primitives.PolygonOrBuilder> getBoundingBoxFieldBuilder() { if (boundingBoxBuilder_ == null) { boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ai.vision.v1.Primitives.Polygon, yandex.cloud.api.ai.vision.v1.Primitives.Polygon.Builder, yandex.cloud.api.ai.vision.v1.Primitives.PolygonOrBuilder>( getBoundingBox(), getParentForChildren(), isClean()); boundingBox_ = null; } return boundingBoxBuilder_; } @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:yandex.cloud.ai.vision.v1.Face) } // @@protoc_insertion_point(class_scope:yandex.cloud.ai.vision.v1.Face) private static final yandex.cloud.api.ai.vision.v1.FaceDetection.Face DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.vision.v1.FaceDetection.Face(); } public static yandex.cloud.api.ai.vision.v1.FaceDetection.Face getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Face parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Face(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ai.vision.v1.FaceDetection.Face getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ai_vision_v1_FaceAnnotation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ai_vision_v1_FaceAnnotation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ai_vision_v1_Face_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ai_vision_v1_Face_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n.yandex/cloud/ai/vision/v1/face_detecti" + "on.proto\022\031yandex.cloud.ai.vision.v1\032*yan" + "dex/cloud/ai/vision/v1/primitives.proto\"" + "@\n\016FaceAnnotation\022.\n\005faces\030\001 \003(\0132\037.yande" + "x.cloud.ai.vision.v1.Face\"@\n\004Face\0228\n\014bou" + "nding_box\030\001 \001(\0132\".yandex.cloud.ai.vision" + ".v1.PolygonBe\n\035yandex.cloud.api.ai.visio" + "n.v1ZDgithub.com/yandex-cloud/go-genprot" + "o/yandex/cloud/ai/vision/v1;visionb\006prot" + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { yandex.cloud.api.ai.vision.v1.Primitives.getDescriptor(), }); internal_static_yandex_cloud_ai_vision_v1_FaceAnnotation_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_ai_vision_v1_FaceAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ai_vision_v1_FaceAnnotation_descriptor, new java.lang.String[] { "Faces", }); internal_static_yandex_cloud_ai_vision_v1_Face_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_ai_vision_v1_Face_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ai_vision_v1_Face_descriptor, new java.lang.String[] { "BoundingBox", }); yandex.cloud.api.ai.vision.v1.Primitives.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy