@java.lang.Override
    public com.google.cloud.visionai.v1.ImageQueryOrBuilder getImageQueryOrBuilder() {
      if ((queryCase_ == 2) && (imageQueryBuilder_ != null)) {
        return imageQueryBuilder_.getMessageOrBuilder();
      } else {
        if (queryCase_ == 2) {
          return (com.google.cloud.visionai.v1.ImageQuery) query_;
        }
        return com.google.cloud.visionai.v1.ImageQuery.getDefaultInstance();
      }
    }
<pre>
An image-only query.
</pre>

<code>.google.cloud.visionai.v1.ImageQuery image_query = 2;</code>
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchIndexEndpointRequest.java