public static final class RegionalInventoryAttributes.Builder extends GeneratedMessage.Builder<RegionalInventoryAttributes.Builder> implements RegionalInventoryAttributesOrBuilderRegional inventory attributes.
Protobuf type google.shopping.merchant.inventories.v1.RegionalInventoryAttributes
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RegionalInventoryAttributes.BuilderImplements
RegionalInventoryAttributesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllLoyaltyPrograms(Iterable<? extends InventoryLoyaltyProgram> values)
public RegionalInventoryAttributes.Builder addAllLoyaltyPrograms(Iterable<? extends InventoryLoyaltyProgram> values)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram> |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
addLoyaltyPrograms(InventoryLoyaltyProgram value)
public RegionalInventoryAttributes.Builder addLoyaltyPrograms(InventoryLoyaltyProgram value)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
InventoryLoyaltyProgram |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
addLoyaltyPrograms(InventoryLoyaltyProgram.Builder builderForValue)
public RegionalInventoryAttributes.Builder addLoyaltyPrograms(InventoryLoyaltyProgram.Builder builderForValue)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
InventoryLoyaltyProgram.Builder |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
addLoyaltyPrograms(int index, InventoryLoyaltyProgram value)
public RegionalInventoryAttributes.Builder addLoyaltyPrograms(int index, InventoryLoyaltyProgram value)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
InventoryLoyaltyProgram |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
addLoyaltyPrograms(int index, InventoryLoyaltyProgram.Builder builderForValue)
public RegionalInventoryAttributes.Builder addLoyaltyPrograms(int index, InventoryLoyaltyProgram.Builder builderForValue)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
InventoryLoyaltyProgram.Builder |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
addLoyaltyProgramsBuilder()
public InventoryLoyaltyProgram.Builder addLoyaltyProgramsBuilder()Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
InventoryLoyaltyProgram.Builder |
|
addLoyaltyProgramsBuilder(int index)
public InventoryLoyaltyProgram.Builder addLoyaltyProgramsBuilder(int index)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
InventoryLoyaltyProgram.Builder |
|
build()
public RegionalInventoryAttributes build()| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes |
|
buildPartial()
public RegionalInventoryAttributes buildPartial()| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes |
|
clear()
public RegionalInventoryAttributes.Builder clear()| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
clearAvailability()
public RegionalInventoryAttributes.Builder clearAvailability()Optional. Availability of the product in this region.
optional .google.shopping.merchant.inventories.v1.RegionalInventoryAttributes.Availability availability = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
This builder for chaining. |
clearLoyaltyPrograms()
public RegionalInventoryAttributes.Builder clearLoyaltyPrograms()Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
clearPrice()
public RegionalInventoryAttributes.Builder clearPrice()Optional. Price of the product in this region.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
clearSalePrice()
public RegionalInventoryAttributes.Builder clearSalePrice() Optional. Sale price of the product in this region. Mandatory if
salePriceEffectiveDate is
defined.
.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
clearSalePriceEffectiveDate()
public RegionalInventoryAttributes.Builder clearSalePriceEffectiveDate() Optional. The TimePeriod of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
getAvailability()
public RegionalInventoryAttributes.Availability getAvailability()Optional. Availability of the product in this region.
optional .google.shopping.merchant.inventories.v1.RegionalInventoryAttributes.Availability availability = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Availability |
The availability. |
getAvailabilityValue()
public int getAvailabilityValue()Optional. Availability of the product in this region.
optional .google.shopping.merchant.inventories.v1.RegionalInventoryAttributes.Availability availability = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for availability. |
getDefaultInstanceForType()
public RegionalInventoryAttributes getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLoyaltyPrograms(int index)
public InventoryLoyaltyProgram getLoyaltyPrograms(int index)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
InventoryLoyaltyProgram |
|
getLoyaltyProgramsBuilder(int index)
public InventoryLoyaltyProgram.Builder getLoyaltyProgramsBuilder(int index)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
InventoryLoyaltyProgram.Builder |
|
getLoyaltyProgramsBuilderList()
public List<InventoryLoyaltyProgram.Builder> getLoyaltyProgramsBuilderList()Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getLoyaltyProgramsCount()
public int getLoyaltyProgramsCount()Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLoyaltyProgramsList()
public List<InventoryLoyaltyProgram> getLoyaltyProgramsList()Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<InventoryLoyaltyProgram> |
|
getLoyaltyProgramsOrBuilder(int index)
public InventoryLoyaltyProgramOrBuilder getLoyaltyProgramsOrBuilder(int index)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
InventoryLoyaltyProgramOrBuilder |
|
getLoyaltyProgramsOrBuilderList()
public List<? extends InventoryLoyaltyProgramOrBuilder> getLoyaltyProgramsOrBuilderList()Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> |
|
getPrice()
public Price getPrice()Optional. Price of the product in this region.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price |
The price. |
getPriceBuilder()
public Price.Builder getPriceBuilder()Optional. Price of the product in this region.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price.Builder |
|
getPriceOrBuilder()
public PriceOrBuilder getPriceOrBuilder()Optional. Price of the product in this region.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.PriceOrBuilder |
|
getSalePrice()
public Price getSalePrice() Optional. Sale price of the product in this region. Mandatory if
salePriceEffectiveDate is
defined.
.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price |
The salePrice. |
getSalePriceBuilder()
public Price.Builder getSalePriceBuilder() Optional. Sale price of the product in this region. Mandatory if
salePriceEffectiveDate is
defined.
.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price.Builder |
|
getSalePriceEffectiveDate()
public Interval getSalePriceEffectiveDate() Optional. The TimePeriod of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Interval |
The salePriceEffectiveDate. |
getSalePriceEffectiveDateBuilder()
public Interval.Builder getSalePriceEffectiveDateBuilder() Optional. The TimePeriod of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Interval.Builder |
|
getSalePriceEffectiveDateOrBuilder()
public IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() Optional. The TimePeriod of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.IntervalOrBuilder |
|
getSalePriceOrBuilder()
public PriceOrBuilder getSalePriceOrBuilder() Optional. Sale price of the product in this region. Mandatory if
salePriceEffectiveDate is
defined.
.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.PriceOrBuilder |
|
hasAvailability()
public boolean hasAvailability()Optional. Availability of the product in this region.
optional .google.shopping.merchant.inventories.v1.RegionalInventoryAttributes.Availability availability = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the availability field is set. |
hasPrice()
public boolean hasPrice()Optional. Price of the product in this region.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the price field is set. |
hasSalePrice()
public boolean hasSalePrice() Optional. Sale price of the product in this region. Mandatory if
salePriceEffectiveDate is
defined.
.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the salePrice field is set. |
hasSalePriceEffectiveDate()
public boolean hasSalePriceEffectiveDate() Optional. The TimePeriod of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the salePriceEffectiveDate field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RegionalInventoryAttributes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RegionalInventoryAttributes.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
mergeFrom(RegionalInventoryAttributes other)
public RegionalInventoryAttributes.Builder mergeFrom(RegionalInventoryAttributes other)| Parameter | |
|---|---|
| Name | Description |
other |
RegionalInventoryAttributes |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
mergePrice(Price value)
public RegionalInventoryAttributes.Builder mergePrice(Price value)Optional. Price of the product in this region.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
mergeSalePrice(Price value)
public RegionalInventoryAttributes.Builder mergeSalePrice(Price value) Optional. Sale price of the product in this region. Mandatory if
salePriceEffectiveDate is
defined.
.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
mergeSalePriceEffectiveDate(Interval value)
public RegionalInventoryAttributes.Builder mergeSalePriceEffectiveDate(Interval value) Optional. The TimePeriod of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Interval |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
removeLoyaltyPrograms(int index)
public RegionalInventoryAttributes.Builder removeLoyaltyPrograms(int index)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
setAvailability(RegionalInventoryAttributes.Availability value)
public RegionalInventoryAttributes.Builder setAvailability(RegionalInventoryAttributes.Availability value)Optional. Availability of the product in this region.
optional .google.shopping.merchant.inventories.v1.RegionalInventoryAttributes.Availability availability = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
RegionalInventoryAttributes.AvailabilityThe availability to set. |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
This builder for chaining. |
setAvailabilityValue(int value)
public RegionalInventoryAttributes.Builder setAvailabilityValue(int value)Optional. Availability of the product in this region.
optional .google.shopping.merchant.inventories.v1.RegionalInventoryAttributes.Availability availability = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for availability to set. |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
This builder for chaining. |
setLoyaltyPrograms(int index, InventoryLoyaltyProgram value)
public RegionalInventoryAttributes.Builder setLoyaltyPrograms(int index, InventoryLoyaltyProgram value)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
InventoryLoyaltyProgram |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
setLoyaltyPrograms(int index, InventoryLoyaltyProgram.Builder builderForValue)
public RegionalInventoryAttributes.Builder setLoyaltyPrograms(int index, InventoryLoyaltyProgram.Builder builderForValue)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product in this region.
This field is used to show region-specific member prices on Product Listing Ads (PLA).
To use this, the loyalty program must be configured in Google Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP) feature. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. Also see Regional availability and pricing and How to set up regional member pricing for more information.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
InventoryLoyaltyProgram.Builder |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
setPrice(Price value)
public RegionalInventoryAttributes.Builder setPrice(Price value)Optional. Price of the product in this region.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
setPrice(Price.Builder builderForValue)
public RegionalInventoryAttributes.Builder setPrice(Price.Builder builderForValue)Optional. Price of the product in this region.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.shopping.type.Price.Builder |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
setSalePrice(Price value)
public RegionalInventoryAttributes.Builder setSalePrice(Price value) Optional. Sale price of the product in this region. Mandatory if
salePriceEffectiveDate is
defined.
.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
setSalePrice(Price.Builder builderForValue)
public RegionalInventoryAttributes.Builder setSalePrice(Price.Builder builderForValue) Optional. Sale price of the product in this region. Mandatory if
salePriceEffectiveDate is
defined.
.google.shopping.type.Price sale_price = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.shopping.type.Price.Builder |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
setSalePriceEffectiveDate(Interval value)
public RegionalInventoryAttributes.Builder setSalePriceEffectiveDate(Interval value) Optional. The TimePeriod of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Interval |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
setSalePriceEffectiveDate(Interval.Builder builderForValue)
public RegionalInventoryAttributes.Builder setSalePriceEffectiveDate(Interval.Builder builderForValue) Optional. The TimePeriod of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Interval.Builder |
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|