Class RegionalInventory (1.0.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
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 data
specification .
Protobuf type google.shopping.merchant.inventories.v1.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 NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int REGIONAL_INVENTORY_ATTRIBUTES_FIELD_NUMBER
Field Value
Type
Description
int
public static final int REGION_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 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
public String getRegion ()
Required. Immutable. 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, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type
Description
String
The region.
public ByteString getRegionBytes ()
Required. Immutable. 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, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type
Description
ByteString
The bytes for region.
public RegionalInventoryAttributes getRegionalInventoryAttributes ()
Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
public RegionalInventoryAttributesOrBuilder getRegionalInventoryAttributesOrBuilder ()
Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public boolean hasRegionalInventoryAttributes ()
Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the regionalInventoryAttributes 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 )
Returns
Type
Description
Object
Overrides
public RegionalInventory . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
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-08-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-16 UTC."],[],[],null,[]]