Interface ProductSearchResults.ResultOrBuilder (3.11.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
TypeDescription
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
TypeDescription
ByteString

The bytes for image.

getProduct()

public abstract Product getProduct()

The Product.

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

Returns
TypeDescription
Product

The product.

getProductOrBuilder()

public abstract ProductOrBuilder getProductOrBuilder()

The Product.

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

Returns
TypeDescription
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
TypeDescription
float

The score.

hasProduct()

public abstract boolean hasProduct()

The Product.

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

Returns
TypeDescription
boolean

Whether the product field is set.