public final class RegionalInventory extends GeneratedMessageV3 implements RegionalInventoryOrBuilder
Regional inventory information for the product. Represents specific
information like price and availability for a given product in a specific
region
.
For a list of all accepted attribute values, see the regional product
inventory feed
specification.
Protobuf type google.shopping.merchant.inventories.v1beta.RegionalInventory
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ACCOUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int AVAILABILITY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int PRICE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int REGION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SALE_PRICE_EFFECTIVE_DATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SALE_PRICE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static RegionalInventory getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static RegionalInventory.Builder newBuilder()
public static RegionalInventory.Builder newBuilder(RegionalInventory prototype)
public static RegionalInventory parseDelimitedFrom(InputStream input)
public static RegionalInventory parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RegionalInventory parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static RegionalInventory parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RegionalInventory parseFrom(ByteString data)
public static RegionalInventory parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RegionalInventory parseFrom(CodedInputStream input)
public static RegionalInventory parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RegionalInventory parseFrom(InputStream input)
public static RegionalInventory parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RegionalInventory parseFrom(ByteBuffer data)
public static RegionalInventory parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<RegionalInventory> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
Output only. The account that owns the product. This field will be ignored
if set by the client.
int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
long | The account.
|
public String getAvailability()
Returns |
---|
Type | Description |
String | The availability.
|
public ByteString getAvailabilityBytes()
Returns |
---|
Type | Description |
ByteString | The bytes for availability.
|
public CustomAttribute getCustomAttributes(int index)
A list of custom (merchant-provided) attributes. You can also use
CustomAttribute
to submit any attribute of the feed specification in its
generic form.
repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
Parameter |
---|
Name | Description |
index | int
|
public int getCustomAttributesCount()
A list of custom (merchant-provided) attributes. You can also use
CustomAttribute
to submit any attribute of the feed specification in its
generic form.
repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
Returns |
---|
Type | Description |
int | |
public List<CustomAttribute> getCustomAttributesList()
A list of custom (merchant-provided) attributes. You can also use
CustomAttribute
to submit any attribute of the feed specification in its
generic form.
repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index)
A list of custom (merchant-provided) attributes. You can also use
CustomAttribute
to submit any attribute of the feed specification in its
generic form.
repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList()
A list of custom (merchant-provided) attributes. You can also use
CustomAttribute
to submit any attribute of the feed specification in its
generic form.
repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
Returns |
---|
Type | Description |
List<? extends com.google.shopping.type.CustomAttributeOrBuilder> | |
public RegionalInventory getDefaultInstanceForType()
Output only. The name of the RegionalInventory
resource.
Format:
{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Output only. The name of the RegionalInventory
resource.
Format:
{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
public Parser<RegionalInventory> getParserForType()
Overrides
Price of the product in this region.
.google.shopping.type.Price price = 4;
Returns |
---|
Type | Description |
Price | The price.
|
public PriceOrBuilder getPriceOrBuilder()
Price of the product in this region.
.google.shopping.type.Price price = 4;
public String getRegion()
Required. ID of the region for this
RegionalInventory
resource. See the Regional availability and
pricing for more
details.
string region = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The region.
|
public ByteString getRegionBytes()
Required. ID of the region for this
RegionalInventory
resource. See the Regional availability and
pricing for more
details.
string region = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for region.
|
public Price getSalePrice()
Sale price of the product in this region. Mandatory if
salePriceEffectiveDate
is defined.
.google.shopping.type.Price sale_price = 5;
Returns |
---|
Type | Description |
Price | The salePrice.
|
public Interval getSalePriceEffectiveDate()
The TimePeriod
of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 6;
Returns |
---|
Type | Description |
com.google.type.Interval | The salePriceEffectiveDate.
|
public IntervalOrBuilder getSalePriceEffectiveDateOrBuilder()
The TimePeriod
of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 6;
Returns |
---|
Type | Description |
com.google.type.IntervalOrBuilder | |
public PriceOrBuilder getSalePriceOrBuilder()
Sale price of the product in this region. Mandatory if
salePriceEffectiveDate
is defined.
.google.shopping.type.Price sale_price = 5;
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public boolean hasAvailability()
Returns |
---|
Type | Description |
boolean | Whether the availability field is set.
|
public boolean hasPrice()
Price of the product in this region.
.google.shopping.type.Price price = 4;
Returns |
---|
Type | Description |
boolean | Whether the price field is set.
|
public boolean hasSalePrice()
Sale price of the product in this region. Mandatory if
salePriceEffectiveDate
is defined.
.google.shopping.type.Price sale_price = 5;
Returns |
---|
Type | Description |
boolean | Whether the salePrice field is set.
|
public boolean hasSalePriceEffectiveDate()
The TimePeriod
of the
sale price in this region.
.google.type.Interval sale_price_effective_date = 6;
Returns |
---|
Type | Description |
boolean | Whether the salePriceEffectiveDate field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RegionalInventory.Builder newBuilderForType()
protected RegionalInventory.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public RegionalInventory.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides