Package com.google.cloud.vision.v1
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
Modifier and TypeMethodDescriptiongetImage()The resource name of the image from the product that is the closest match to the query.com.google.protobuf.ByteStringThe resource name of the image from the product that is the closest match to the query.The Product.The Product.floatgetScore()A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).booleanThe Product.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasProduct
boolean hasProduct()The Product.
.google.cloud.vision.v1.Product product = 1;- Returns:
- Whether the product field is set.
-
getProduct
Product getProduct()The Product.
.google.cloud.vision.v1.Product product = 1;- Returns:
- The product.
-
getProductOrBuilder
ProductOrBuilder getProductOrBuilder()The Product.
.google.cloud.vision.v1.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.
-