Class ProductInlineSource.Builder (2.43.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.v2alpha.ProductInlineSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.retail.v2alpha.Product>
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProduct
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueProduct.Builder
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueProduct
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueProduct.Builder
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Product.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductInlineSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProductInlineSource.Builder
Overrides

build()

public ProductInlineSource build()
Returns
TypeDescription
ProductInlineSource

buildPartial()

public ProductInlineSource buildPartial()
Returns
TypeDescription
ProductInlineSource

clear()

public ProductInlineSource.Builder clear()
Returns
TypeDescription
ProductInlineSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ProductInlineSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ProductInlineSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductInlineSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductInlineSource.Builder

clone()

public ProductInlineSource.Builder clone()
Returns
TypeDescription
ProductInlineSource.Builder
Overrides

getDefaultInstanceForType()

public ProductInlineSource getDefaultInstanceForType()
Returns
TypeDescription
ProductInlineSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.retail.v2alpha.ProductOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProductInlineSource other)

public ProductInlineSource.Builder mergeFrom(ProductInlineSource other)
Parameter
NameDescription
otherProductInlineSource
Returns
TypeDescription
ProductInlineSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductInlineSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductInlineSource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProductInlineSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ProductInlineSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductInlineSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductInlineSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProductInlineSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueProduct
Returns
TypeDescription
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.v2alpha.Product products = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueProduct.Builder
Returns
TypeDescription
ProductInlineSource.Builder

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

public ProductInlineSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ProductInlineSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductInlineSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProductInlineSource.Builder
Overrides