Interface ProductSearchResults.ResultOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getImage()
      The resource name of the image from the product that is the closest match to the query.
      com.google.protobuf.ByteString getImageBytes()
      The resource name of the image from the product that is the closest match to the query.
      Product getProduct()
      The Product.
      ProductOrBuilder getProductOrBuilder()
      The Product.
      float getScore()
      A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
      boolean hasProduct()
      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 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.