Class ProductSearchResults.Builder (2.1.4)

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

Results for a product search request.

Protobuf type google.cloud.vision.v1p3beta1.ProductSearchResults

Static Methods

getDescriptor()

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

Methods

addAllProducts(Iterable<? extends ProductSearchResults.ProductInfo> values)

public ProductSearchResults.Builder addAllProducts(Iterable<? extends ProductSearchResults.ProductInfo> values)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo>
Returns
TypeDescription
ProductSearchResults.Builder

addAllResults(Iterable<? extends ProductSearchResults.Result> values)

public ProductSearchResults.Builder addAllResults(Iterable<? extends ProductSearchResults.Result> values)

List of results, one for each product match.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result>
Returns
TypeDescription
ProductSearchResults.Builder

addProducts(ProductSearchResults.ProductInfo value)

public ProductSearchResults.Builder addProducts(ProductSearchResults.ProductInfo value)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameter
NameDescription
valueProductSearchResults.ProductInfo
Returns
TypeDescription
ProductSearchResults.Builder

addProducts(ProductSearchResults.ProductInfo.Builder builderForValue)

public ProductSearchResults.Builder addProducts(ProductSearchResults.ProductInfo.Builder builderForValue)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameter
NameDescription
builderForValueProductSearchResults.ProductInfo.Builder
Returns
TypeDescription
ProductSearchResults.Builder

addProducts(int index, ProductSearchResults.ProductInfo value)

public ProductSearchResults.Builder addProducts(int index, ProductSearchResults.ProductInfo value)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameters <
NameDescription
index