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

      if (dataType_ != other.dataType_) return false;
      if (!getConsumerNode().equals(other.getConsumerNode())) return false;
      if (!getInputResourceBinding().equals(other.getInputResourceBinding())) return false;
      if (hasAnnotations() != other.hasAnnotations()) return false;
      if (hasAnnotations()) {
        if (!getAnnotations().equals(other.getAnnotations())) return false;
      }
      if (!getInputResourceInformationCase().equals(other.getInputResourceInformationCase()))
        return false;
      switch (inputResourceInformationCase_) {
        case 1:
          if (!getInputResource().equals(other.getInputResource())) return false;
          break;
        case 4:
          if (!getAnnotatedStream().equals(other.getAnnotatedStream())) return false;
          break;
        case 0:
        default:
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
Contains resource annotations.
</pre>

<code>.google.cloud.visionai.v1.ResourceAnnotations annotations = 5;</code>
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/Instance.java