public java.lang.String getAsset() {
    java.lang.Object ref = "";
    if (imageCase_ == 2) {
      ref = image_;
    }
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (imageCase_ == 2) {
        image_ = s;
      }
      return s;
    }
  }
<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 asset.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ImageQuery.java