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
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. |
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 |
|
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 |
|
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. |
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 |
|