public final ReferenceImage getReferenceImage(String name) {

    GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder().setName(name).build();
    return getReferenceImage(request);
  }
public final ReferenceImage getReferenceImage ( String name ) { GetReferenceImageRequest request = GetReferenceImageRequest . newBuilder ( ) . setName ( name ) . build ( ) ; return getReferenceImage ( request ) ; }
Gets information associated with a ReferenceImage.

<p>Possible errors:

<p>&#42; Returns NOT_FOUND if the specified image does not exist.

<p>Sample code:

<pre><code>
try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
ReferenceImageName name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]");
ReferenceImage response = productSearchClient.getReferenceImage(name.toString());
}
</code></pre>

@param name The resource name of the ReferenceImage to get.
<p>Format is:
<p>`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
@throws com.google.api.gax.rpc.ApiException if the remote call fails