- 1.13.0 (latest)
- 1.11.0
- 1.10.0
- 1.8.0
- 1.6.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- 0.46.0
- 0.44.0
- 0.43.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
public static final class LocalInventory.Builder extends GeneratedMessage.Builder<LocalInventory.Builder> 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LocalInventory.BuilderImplements
LocalInventoryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public LocalInventory build()| Returns | |
|---|---|
| Type | Description |
LocalInventory |
|
buildPartial()
public LocalInventory buildPartial()| Returns | |
|---|---|
| Type | Description |
LocalInventory |
|
clear()
public LocalInventory.Builder clear()| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
|
clearAccount()
public LocalInventory.Builder clearAccount()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 |
LocalInventory.Builder |
This builder for chaining. |
clearLocalInventoryAttributes()
public LocalInventory.Builder clearLocalInventoryAttributes()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 |
LocalInventory.Builder |
|
clearName()
public LocalInventory.Builder clearName() 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 |
LocalInventory.Builder |
This builder for chaining. |
clearStoreCode()
public LocalInventory.Builder clearStoreCode()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 |
LocalInventory.Builder |
This builder for chaining. |
getAccount()
public long getAccount()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. |
getDefaultInstanceForType()
public LocalInventory getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LocalInventory |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLocalInventoryAttributes()
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];
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
The localInventoryAttributes. |
getLocalInventoryAttributesBuilder()
public LocalInventoryAttributes.Builder getLocalInventoryAttributesBuilder()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 |
LocalInventoryAttributes.Builder |
|
getLocalInventoryAttributesOrBuilder()
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];
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributesOrBuilder |
|
getName()
public String getName() 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. |
getNameBytes()
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. |
getStoreCode()
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. |
getStoreCodeBytes()
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. |
hasLocalInventoryAttributes()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LocalInventory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LocalInventory.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
|
mergeFrom(LocalInventory other)
public LocalInventory.Builder mergeFrom(LocalInventory other)| Parameter | |
|---|---|
| Name | Description |
other |
LocalInventory |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
|
mergeLocalInventoryAttributes(LocalInventoryAttributes value)
public LocalInventory.Builder mergeLocalInventoryAttributes(LocalInventoryAttributes value)Optional. A list of local inventory attributes.
.google.shopping.merchant.inventories.v1.LocalInventoryAttributes local_inventory_attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
LocalInventoryAttributes |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
|
setAccount(long value)
public LocalInventory.Builder setAccount(long value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe account to set. |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
This builder for chaining. |
setLocalInventoryAttributes(LocalInventoryAttributes value)
public LocalInventory.Builder setLocalInventoryAttributes(LocalInventoryAttributes value)Optional. A list of local inventory attributes.
.google.shopping.merchant.inventories.v1.LocalInventoryAttributes local_inventory_attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
LocalInventoryAttributes |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
|
setLocalInventoryAttributes(LocalInventoryAttributes.Builder builderForValue)
public LocalInventory.Builder setLocalInventoryAttributes(LocalInventoryAttributes.Builder builderForValue)Optional. A list of local inventory attributes.
.google.shopping.merchant.inventories.v1.LocalInventoryAttributes local_inventory_attributes = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
LocalInventoryAttributes.Builder |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
|
setName(String value)
public LocalInventory.Builder setName(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public LocalInventory.Builder setNameBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
This builder for chaining. |
setStoreCode(String value)
public LocalInventory.Builder setStoreCode(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe storeCode to set. |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
This builder for chaining. |
setStoreCodeBytes(ByteString value)
public LocalInventory.Builder setStoreCodeBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for storeCode to set. |
| Returns | |
|---|---|
| Type | Description |
LocalInventory.Builder |
This builder for chaining. |