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.v2beta.ProductInlineSource
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2beta.Product>
|
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | Product
|
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductInlineSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ProductInlineSource build()
buildPartial()
public ProductInlineSource buildPartial()
clear()
public ProductInlineSource.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ProductInlineSource.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductInlineSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public ProductInlineSource.Builder clone()
Overrides
getDefaultInstanceForType()
public ProductInlineSource getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
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.v2beta.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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
List<? extends com.google.cloud.retail.v2beta.ProductOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ProductInlineSource other)
public ProductInlineSource.Builder mergeFrom(ProductInlineSource other)
public ProductInlineSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ProductInlineSource.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductInlineSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ProductInlineSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
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.v2beta.Product products = 1 [(.google.api.field_behavior) = REQUIRED];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductInlineSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductInlineSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides