Send feedback
Class ProductInlineSource.Builder (2.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.0 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]