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 Type
    Method
    Description
    The resource name of the image from the product that is the closest match to the query.
    com.google.protobuf.ByteString
    The resource name of the image from the product that is the closest match to the query.
    The Product.
    The Product.
    float
    A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
    boolean
    The Product.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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.