Class ListProductsResponse.Builder (2.1.2)

public static final class ListProductsResponse.Builder extends GeneratedMessageV3.Builder<ListProductsResponse.Builder> implements ListProductsResponseOrBuilder

Response message for the ListProducts method.

Protobuf type google.cloud.vision.v1p3beta1.ListProductsResponse

Static Methods

getDescriptor()

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

Methods

addAllProducts(Iterable<? extends Product> values)

public ListProductsResponse.Builder addAllProducts(Iterable<? extends Product> values)

List of products.

repeated .google.cloud.vision.v1p3beta1.Product products = 1;

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

addProducts(Product value)

public ListProductsResponse.Builder addProducts(Product value)

List of products.

repeated .google.cloud.vision.v1p3beta1.Product products = 1;

Parameter
NameDescription
valueProduct
Returns
TypeDescription
ListProductsResponse.Builder

addProducts(Product.Builder builderForValue)

public ListProductsResponse.Builder addProducts(Product.Builder builderForValue)

List of products.

repeated .google.cloud.vision.v1p3beta1.Product products = 1;

Parameter
NameDescription
builderForValueProduct.Builder
Returns
TypeDescription
ListProductsResponse.Builder

addProducts(int index, Product value)

public ListProductsResponse.Builder addProducts(int index, Product value)

List of products.

repeated .google.cloud.vision.v1p3beta1.Product products = 1;

Parameters
NameDescription
indexint
valueProduct
Returns
TypeDescription
ListProductsResponse.Builder

addProducts(int index, Product.Builder builderForValue)

public ListProductsResponse.Builder addProducts(int index, Product.Builder builderForValue)

List of products.

repeated .google.cloud.vision.v1p3beta1.Product products = 1;

Parameters
NameDescription
indexint
builderForValueProduct.Builder
Returns
TypeDescription
ListProductsResponse.Builder

addProductsBuilder()

public Product.Builder addProductsBuilder()

List of products.

repeated .google.cloud.vision.v1p3beta1.Product products = 1;

Returns
TypeDescription
Product.Builder