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

    size = 0;
    if (imageCase_ == 1) {
      size +=
          com.google.protobuf.CodedOutputStream.computeBytesSize(
              1, (com.google.protobuf.ByteString) image_);
    }
    if (imageCase_ == 2) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Resource name of the asset. Only supported in IMAGE corpus type.
Format:
`projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
</pre>

<code>string asset = 2 [(.google.api.resource_reference) = { ... }</code>

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