@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(corpus_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, corpus_);
    }
    if (pageSize_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
    }
    for (int i = 0; i < criteria_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, criteria_.get(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getContentTimeRanges());
    }
    for (int i = 0; i < facetSelections_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, facetSelections_.get(i));
    }
    {
      int dataSize = 0;
      for (int i = 0; i < resultAnnotationKeys_.size(); i++) {
        dataSize += computeStringSizeNoTag(resultAnnotationKeys_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getResultAnnotationKeysList().size();
    }
    if (sortSpecCase_ == 9) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              9, (com.google.cloud.visionai.v1.SchemaKeySortingStrategy) sortSpec_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchQuery_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, searchQuery_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<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