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
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
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2alpha.Product>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductInlineSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ProductInlineSource build()
Returns
buildPartial()
public ProductInlineSource buildPartial()
Returns
clear()
public ProductInlineSource.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ProductInlineSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductInlineSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public ProductInlineSource.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ProductInlineSource getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
Type | Description |
List<? extends com.google.cloud.retail.v2alpha.ProductOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ProductInlineSource other)
public ProductInlineSource.Builder mergeFrom(ProductInlineSource other)
Parameter
Returns
public ProductInlineSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ProductInlineSource.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductInlineSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ProductInlineSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductInlineSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductInlineSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides