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

    if (!getField().equals(other.getField())) return false;
    if (getFetchMatchedAnnotations() != other.getFetchMatchedAnnotations()) return false;
    if (!getValueCase().equals(other.getValueCase())) return false;
    switch (valueCase_) {
      case 2:
        if (!getTextArray().equals(other.getTextArray())) return false;
        break;
      case 3:
        if (!getIntRangeArray().equals(other.getIntRangeArray())) return false;
        break;
      case 4:
        if (!getFloatRangeArray().equals(other.getFloatRangeArray())) return false;
        break;
      case 5:
        if (!getDateTimeRangeArray().equals(other.getDateTimeRangeArray())) return false;
        break;
      case 6:
        if (!getGeoLocationArray().equals(other.getGeoLocationArray())) return false;
        break;
      case 7:
        if (!getBoolValue().equals(other.getBoolValue())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
If true, return query matched annotations for this criteria.
This option is only applicable for inclusion criteria, i.e., not exclusion
criteria, with partition level annotations.  It supports the following data
types:
 - INTEGER
 - FLOAT
 - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)
 - BOOLEAN
</pre>

<code>bool fetch_matched_annotations = 8;</code>

@return The fetchMatchedAnnotations.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/Criteria.java