Interface ProductSearchResults.ResultOrBuilder (3.47.0)

public static interface ProductSearchResults.ResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getImage()

public abstract String getImage()

The resource name of the image from the product that is the closest match to the query.

string image = 3;

Returns
Type Description
String

The image.

getImageBytes()

public abstract ByteString getImageBytes()

The resource name of the image from the product that is the closest match to the query.

string image = 3;

Returns
Type Description
ByteString

The bytes for image.

getProduct()

public abstract Product getProduct()

The Product.

.google.cloud.vision.v1p3beta1.Product product = 1;

Returns
Type Description
Product

The product.

getProductOrBuilder()

public abstract ProductOrBuilder getProductOrBuilder()

The Product.

.google.cloud.vision.v1p3beta1.Product product = 1;

Returns
Type Description
ProductOrBuilder

getScore()

public abstract float getScore()

A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).

float score = 2;

Returns
Type Description
float

The score.

hasProduct()

public abstract boolean hasProduct()

The Product.

.google.cloud.vision.v1p3beta1.Product product = 1;

Returns
Type Description
boolean

Whether the product field is set.