Class LocalInventory (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 LocalInventory extends GeneratedMessageV3 implements LocalInventoryOrBuilder
Local inventory information for the product. Represents in-store information
for a specific product at the store specified by
storeCode
.
For a list of all accepted attribute values, see the local product inventory
data specification .
Protobuf type google.shopping.merchant.inventories.v1.LocalInventory
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 LOCAL_INVENTORY_ATTRIBUTES_FIELD_NUMBER
Field Value
Type
Description
int
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int STORE_CODE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static LocalInventory getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static LocalInventory . Builder newBuilder ()
public static LocalInventory . Builder newBuilder ( LocalInventory prototype )
public static LocalInventory parseDelimitedFrom ( InputStream input )
public static LocalInventory parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static LocalInventory parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static LocalInventory parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static LocalInventory parseFrom ( ByteString data )
public static LocalInventory parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static LocalInventory parseFrom ( CodedInputStream input )
public static LocalInventory parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static LocalInventory parseFrom ( InputStream input )
public static LocalInventory parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static LocalInventory parseFrom ( ByteBuffer data )
public static LocalInventory parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<LocalInventory> 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 LocalInventory getDefaultInstanceForType ()
public LocalInventoryAttributes getLocalInventoryAttributes ()
Optional. A list of local inventory attributes.
.google.shopping.merchant.inventories.v1.LocalInventoryAttributes local_inventory_attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
public LocalInventoryAttributesOrBuilder getLocalInventoryAttributesOrBuilder ()
Optional. A list of local inventory attributes.
.google.shopping.merchant.inventories.v1.LocalInventoryAttributes local_inventory_attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
Output only. The name of the LocalInventory
resource.
Format:
accounts/{account}/products/{product}/localInventories/{store_code}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The name.
public ByteString getNameBytes ()
Output only. The name of the LocalInventory
resource.
Format:
accounts/{account}/products/{product}/localInventories/{store_code}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for name.
public Parser<LocalInventory> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public String getStoreCode ()
Required. Immutable. Store code (the store ID from your Business Profile)
of the physical store the product is sold in. See the Local product
inventory data
specification for
more information.
string store_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type
Description
String
The storeCode.
public ByteString getStoreCodeBytes ()
Required. Immutable. Store code (the store ID from your Business Profile)
of the physical store the product is sold in. See the Local product
inventory data
specification for
more information.
string store_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type
Description
ByteString
The bytes for storeCode.
public boolean hasLocalInventoryAttributes ()
Optional. A list of local inventory attributes.
.google.shopping.merchant.inventories.v1.LocalInventoryAttributes local_inventory_attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the localInventoryAttributes field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public LocalInventory . Builder newBuilderForType ()
protected LocalInventory . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public LocalInventory . 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,[]]