@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(corpus_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, corpus_);
    }
    if (pageSize_ != 0) {
      output.writeInt32(2, pageSize_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
    }
    for (int i = 0; i < criteria_.size(); i++) {
      output.writeMessage(4, criteria_.get(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(5, getContentTimeRanges());
    }
    for (int i = 0; i < facetSelections_.size(); i++) {
      output.writeMessage(6, facetSelections_.get(i));
    }
    for (int i = 0; i < resultAnnotationKeys_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(
          output, 8, resultAnnotationKeys_.getRaw(i));
    }
    if (sortSpecCase_ == 9) {
      output.writeMessage(9, (com.google.cloud.visionai.v1.SchemaKeySortingStrategy) sortSpec_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchQuery_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, searchQuery_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Global search query. Allows user to search assets without needing to
specify which field the value belongs to.
</pre>

<code>string search_query = 10;</code>

@return The bytes for searchQuery.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchAssetsRequest.java