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

    if (!getName().equals(other.getName())) return false;
    if (hasUserSpecifiedAnnotation() != other.hasUserSpecifiedAnnotation()) return false;
    if (hasUserSpecifiedAnnotation()) {
      if (!getUserSpecifiedAnnotation().equals(other.getUserSpecifiedAnnotation())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
User provided annotation.
</pre>

<code>.google.cloud.visionai.v1.UserSpecifiedAnnotation user_specified_annotation = 2;</code>
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/Annotation.java