Interface ProductSearchResults.ResultOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ProductSearchResults.Result,ProductSearchResults.Result.Builder
- Enclosing class:
- ProductSearchResults
public static interface ProductSearchResults.ResultOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetImage()The resource name of the image from the product that is the closest match to the query.com.google.protobuf.ByteStringgetImageBytes()The resource name of the image from the product that is the closest match to the query.ProductgetProduct()The Product.ProductOrBuildergetProductOrBuilder()The Product.floatgetScore()A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).booleanhasProduct()The Product.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasProduct
boolean hasProduct()
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;- Returns:
- Whether the product field is set.
-
getProduct
Product getProduct()
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;- Returns:
- The product.
-
getProductOrBuilder
ProductOrBuilder getProductOrBuilder()
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;
-
getScore
float getScore()
A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
float score = 2;- Returns:
- The score.
-
getImage
String getImage()
The resource name of the image from the product that is the closest match to the query.
string image = 3;- Returns:
- The image.
-
getImageBytes
com.google.protobuf.ByteString getImageBytes()
The resource name of the image from the product that is the closest match to the query.
string image = 3;- Returns:
- The bytes for image.
-
-