@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.visionai.v1.ImageQuery)) {
      return super.equals(obj);
    }
    com.google.cloud.visionai.v1.ImageQuery other = (com.google.cloud.visionai.v1.ImageQuery) obj;

    if (!getImageCase().equals(other.getImageCase())) return false;
    switch (imageCase_) {
      case 1:
        if (!getInputImage().equals(other.getInputImage())) return false;
        break;
      case 2:
        if (!getAsset().equals(other.getAsset())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<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