@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_);
    }
    if (valueCase_ == 2) {
      output.writeMessage(2, (com.google.cloud.visionai.v1.StringArray) value_);
    }
    if (valueCase_ == 3) {
      output.writeMessage(3, (com.google.cloud.visionai.v1.IntRangeArray) value_);
    }
    if (valueCase_ == 4) {
      output.writeMessage(4, (com.google.cloud.visionai.v1.FloatRangeArray) value_);
    }
    if (valueCase_ == 5) {
      output.writeMessage(5, (com.google.cloud.visionai.v1.DateTimeRangeArray) value_);
    }
    if (valueCase_ == 6) {
      output.writeMessage(6, (com.google.cloud.visionai.v1.GeoLocationArray) value_);
    }
    if (valueCase_ == 7) {
      output.writeMessage(7, (com.google.cloud.visionai.v1.BoolValue) value_);
    }
    if (fetchMatchedAnnotations_ != false) {
      output.writeBool(8, fetchMatchedAnnotations_);
    }
    getUnknownFields().writeTo(output);
  }
<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