Class ProductInlineSource.Builder (2.48.0)

public static final class ProductInlineSource.Builder extends GeneratedMessageV3.Builder<ProductInlineSource.Builder> implements ProductInlineSourceOrBuilder

The inline source for the input config for ImportProducts method.

Protobuf type google.cloud.retail.v2.ProductInlineSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllProducts(Iterable<? extends Product> values)

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

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.retail.v2.Product>
Returns
Type Description
ProductInlineSource.Builder

addProducts(Product value)

public ProductInlineSource.Builder addProducts(Product value)

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Product
Returns
Type Description
ProductInlineSource.Builder

addProducts(Product.Builder builderForValue)

public ProductInlineSource.Builder addProducts(Product.Builder builderForValue)

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Product.Builder
Returns
Type Description
ProductInlineSource.Builder

addProducts(int index, Product value)

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

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Product
Returns
Type Description
ProductInlineSource.Builder

addProducts(int index, Product.Builder builderForValue)

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

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Product.Builder
Returns
Type Description
ProductInlineSource.Builder

addProductsBuilder()

public Product.Builder addProductsBuilder()

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Product.Builder

addProductsBuilder(int index)

public Product.Builder addProductsBuilder(int index)

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Product.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductInlineSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductInlineSource.Builder
Overrides

build()

public ProductInlineSource build()
Returns
Type Description
ProductInlineSource

buildPartial()

public ProductInlineSource buildPartial()
Returns
Type Description
ProductInlineSource

clear()

public ProductInlineSource.Builder clear()
Returns
Type Description
ProductInlineSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ProductInlineSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProductInlineSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductInlineSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductInlineSource.Builder
Overrides

clearProducts()

public ProductInlineSource.Builder clearProducts()

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductInlineSource.Builder

clone()

public ProductInlineSource.Builder clone()
Returns
Type Description
ProductInlineSource.Builder
Overrides

getDefaultInstanceForType()

public ProductInlineSource getDefaultInstanceForType()
Returns
Type Description
ProductInlineSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getProducts(int index)

public Product getProducts(int index)

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Product

getProductsBuilder(int index)

public Product.Builder getProductsBuilder(int index)

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Product.Builder

getProductsBuilderList()

public List<Product.Builder> getProductsBuilderList()

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getProductsCount()

public int getProductsCount()

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getProductsList()

public List<Product> getProductsList()

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Product>

getProductsOrBuilder(int index)

public ProductOrBuilder getProductsOrBuilder(int index)

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ProductOrBuilder

getProductsOrBuilderList()

public List<? extends ProductOrBuilder> getProductsOrBuilderList()

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.retail.v2.ProductOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProductInlineSource other)

public ProductInlineSource.Builder mergeFrom(ProductInlineSource other)
Parameter
Name Description
other ProductInlineSource
Returns
Type Description
ProductInlineSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductInlineSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductInlineSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductInlineSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductInlineSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductInlineSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductInlineSource.Builder
Overrides

removeProducts(int index)

public ProductInlineSource.Builder removeProducts(int index)

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ProductInlineSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProductInlineSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductInlineSource.Builder
Overrides

setProducts(int index, Product value)

public ProductInlineSource.Builder setProducts(int index, Product value)

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Product
Returns
Type Description
ProductInlineSource.Builder

setProducts(int index, Product.Builder builderForValue)

public ProductInlineSource.Builder setProducts(int index, Product.Builder builderForValue)

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 100 items.

repeated .google.cloud.retail.v2.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Product.Builder
Returns
Type Description
ProductInlineSource.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProductInlineSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductInlineSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductInlineSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductInlineSource.Builder
Overrides