@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.vision.v1.FaceAnnotation)) {
      return super.equals(obj);
    }
    com.google.cloud.vision.v1.FaceAnnotation other =
        (com.google.cloud.vision.v1.FaceAnnotation) obj;

    if (hasBoundingPoly() != other.hasBoundingPoly()) return false;
    if (hasBoundingPoly()) {
      if (!getBoundingPoly().equals(other.getBoundingPoly())) return false;
    }
    if (hasFdBoundingPoly() != other.hasFdBoundingPoly()) return false;
    if (hasFdBoundingPoly()) {
      if (!getFdBoundingPoly().equals(other.getFdBoundingPoly())) return false;
    }
    if (!getLandmarksList().equals(other.getLandmarksList())) return false;
    if (java.lang.Float.floatToIntBits(getRollAngle())
        != java.lang.Float.floatToIntBits(other.getRollAngle())) return false;
    if (java.lang.Float.floatToIntBits(getPanAngle())
        != java.lang.Float.floatToIntBits(other.getPanAngle())) return false;
    if (java.lang.Float.floatToIntBits(getTiltAngle())
        != java.lang.Float.floatToIntBits(other.getTiltAngle())) return false;
    if (java.lang.Float.floatToIntBits(getDetectionConfidence())
        != java.lang.Float.floatToIntBits(other.getDetectionConfidence())) return false;
    if (java.lang.Float.floatToIntBits(getLandmarkingConfidence())
        != java.lang.Float.floatToIntBits(other.getLandmarkingConfidence())) return false;
    if (joyLikelihood_ != other.joyLikelihood_) return false;
    if (sorrowLikelihood_ != other.sorrowLikelihood_) return false;
    if (angerLikelihood_ != other.angerLikelihood_) return false;
    if (surpriseLikelihood_ != other.surpriseLikelihood_) return false;
    if (underExposedLikelihood_ != other.underExposedLikelihood_) return false;
    if (blurredLikelihood_ != other.blurredLikelihood_) return false;
    if (headwearLikelihood_ != other.headwearLikelihood_) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Headwear likelihood.
</pre>

<code>.google.cloud.vision.v1.Likelihood headwear_likelihood = 15;</code>

@return The headwearLikelihood.
java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FaceAnnotation.java