Class ProductSearchResults.Builder

public static final class ProductSearchResults.Builder extends GeneratedMessageV3.Builder<ProductSearchResults.Builder> implements ProductSearchResultsOrBuilder

Results for a product search request.

Protobuf type google.cloud.vision.v1.ProductSearchResults

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllProductGroupedResults(Iterable<? extends ProductSearchResults.GroupedResult> values)

public ProductSearchResults.Builder addAllProductGroupedResults(Iterable<? extends ProductSearchResults.GroupedResult> values)

List of results grouped by products detected in the query image. Each entry corresponds to one bounding polygon in the query image, and contains the matching products specific to that region. There may be duplicate product matches in the union of all the per-product results.

repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.ProductSearchResults.GroupedResult>
Returns
TypeDescription