public final class LocalInventoryAttributes extends GeneratedMessage implements LocalInventoryAttributesOrBuilderLocal inventory attributes.
Protobuf type google.shopping.merchant.inventories.v1.LocalInventoryAttributes
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > LocalInventoryAttributesImplements
LocalInventoryAttributesOrBuilderStatic Fields
AVAILABILITY_FIELD_NUMBER
public static final int AVAILABILITY_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CUSTOM_ATTRIBUTES_FIELD_NUMBER
public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INSTORE_PRODUCT_LOCATION_FIELD_NUMBER
public static final int INSTORE_PRODUCT_LOCATION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
LOCAL_SHIPPING_LABEL_FIELD_NUMBER
public static final int LOCAL_SHIPPING_LABEL_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
LOYALTY_PROGRAMS_FIELD_NUMBER
public static final int LOYALTY_PROGRAMS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PICKUP_METHOD_FIELD_NUMBER
public static final int PICKUP_METHOD_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PICKUP_SLA_FIELD_NUMBER
public static final int PICKUP_SLA_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PRICE_FIELD_NUMBER
public static final int PRICE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
QUANTITY_FIELD_NUMBER
public static final int QUANTITY_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SALE_PRICE_EFFECTIVE_DATE_FIELD_NUMBER
public static final int SALE_PRICE_EFFECTIVE_DATE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SALE_PRICE_FIELD_NUMBER
public static final int SALE_PRICE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static LocalInventoryAttributes getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static LocalInventoryAttributes.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes.Builder |
|
newBuilder(LocalInventoryAttributes prototype)
public static LocalInventoryAttributes.Builder newBuilder(LocalInventoryAttributes prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
LocalInventoryAttributes |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes.Builder |
|
parseDelimitedFrom(InputStream input)
public static LocalInventoryAttributes parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static LocalInventoryAttributes parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static LocalInventoryAttributes parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static LocalInventoryAttributes parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static LocalInventoryAttributes parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static LocalInventoryAttributes parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<LocalInventoryAttributes> parser()| Returns | |
|---|---|
| Type | Description |
Parser<LocalInventoryAttributes> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAvailability()
public LocalInventoryAttributes.Availability getAvailability()Availability of the product at this store.
optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability availability = 4;
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes.Availability |
The availability. |
getAvailabilityValue()
public int getAvailabilityValue()Availability of the product at this store.
optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability availability = 4;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for availability. |
getCustomAttributes(int index)
public CustomAttribute getCustomAttributes(int index) Optional. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data specification in its generic
form (for example, { "name": "size type", "value": "regular" }). This is
useful for submitting attributes not explicitly exposed by the API. Maximum
allowed number of characters for each custom attribute is 10240 (represents
sum of characters for name and value). Maximum 2500 custom attributes can
be set, with total size of 102.4kB. Underscores in custom
attribute names are replaced by spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.CustomAttribute |
|
getCustomAttributesCount()
public int getCustomAttributesCount() Optional. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data specification in its generic
form (for example, { "name": "size type", "value": "regular" }). This is
useful for submitting attributes not explicitly exposed by the API. Maximum
allowed number of characters for each custom attribute is 10240 (represents
sum of characters for name and value). Maximum 2500 custom attributes can
be set, with total size of 102.4kB. Underscores in custom
attribute names are replaced by spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getCustomAttributesList()
public List<CustomAttribute> getCustomAttributesList() Optional. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data specification in its generic
form (for example, { "name": "size type", "value": "regular" }). This is
useful for submitting attributes not explicitly exposed by the API. Maximum
allowed number of characters for each custom attribute is 10240 (represents
sum of characters for name and value). Maximum 2500 custom attributes can
be set, with total size of 102.4kB. Underscores in custom
attribute names are replaced by spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<com.google.shopping.type.CustomAttribute> |
|
getCustomAttributesOrBuilder(int index)
public CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index) Optional. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data specification in its generic
form (for example, { "name": "size type", "value": "regular" }). This is
useful for submitting attributes not explicitly exposed by the API. Maximum
allowed number of characters for each custom attribute is 10240 (represents
sum of characters for name and value). Maximum 2500 custom attributes can
be set, with total size of 102.4kB. Underscores in custom
attribute names are replaced by spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.CustomAttributeOrBuilder |
|
getCustomAttributesOrBuilderList()
public List<? extends CustomAttributeOrBuilder> getCustomAttributesOrBuilderList() Optional. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data specification in its generic
form (for example, { "name": "size type", "value": "regular" }). This is
useful for submitting attributes not explicitly exposed by the API. Maximum
allowed number of characters for each custom attribute is 10240 (represents
sum of characters for name and value). Maximum 2500 custom attributes can
be set, with total size of 102.4kB. Underscores in custom
attribute names are replaced by spaces upon insertion.
repeated .google.shopping.type.CustomAttribute custom_attributes = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.shopping.type.CustomAttributeOrBuilder> |
|
getDefaultInstanceForType()
public LocalInventoryAttributes getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes |
|
getInstoreProductLocation()
public String getInstoreProductLocation()Optional. Location of the product inside the store. Maximum length is 20 bytes.
optional string instore_product_location = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The instoreProductLocation. |
getInstoreProductLocationBytes()
public ByteString getInstoreProductLocationBytes()Optional. Location of the product inside the store. Maximum length is 20 bytes.
optional string instore_product_location = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for instoreProductLocation. |
getLocalShippingLabel()
public String getLocalShippingLabel() Optional. Specifies a label associated with the shipping for the
LocalInventory resource. Can be used to group local shipping services to
this particular inventory item. For accepted field format, see the Local
delivery
optional string local_shipping_label = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The localShippingLabel. |
getLocalShippingLabelBytes()
public ByteString getLocalShippingLabelBytes() Optional. Specifies a label associated with the shipping for the
LocalInventory resource. Can be used to group local shipping services to
this particular inventory item. For accepted field format, see the Local
delivery
optional string local_shipping_label = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for localShippingLabel. |
getLoyaltyPrograms(int index)
public InventoryLoyaltyProgram getLoyaltyPrograms(int index)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.
This field is used to show store-specific member prices on Local Inventory Ads (LIA).
To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
InventoryLoyaltyProgram |
|
getLoyaltyProgramsCount()
public int getLoyaltyProgramsCount()Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.
This field is used to show store-specific member prices on Local Inventory Ads (LIA).
To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLoyaltyProgramsList()
public List<InventoryLoyaltyProgram> getLoyaltyProgramsList()Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.
This field is used to show store-specific member prices on Local Inventory Ads (LIA).
To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<InventoryLoyaltyProgram> |
|
getLoyaltyProgramsOrBuilder(int index)
public InventoryLoyaltyProgramOrBuilder getLoyaltyProgramsOrBuilder(int index)Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.
This field is used to show store-specific member prices on Local Inventory Ads (LIA).
To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
InventoryLoyaltyProgramOrBuilder |
|
getLoyaltyProgramsOrBuilderList()
public List<? extends InventoryLoyaltyProgramOrBuilder> getLoyaltyProgramsOrBuilderList()Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store.
This field is used to show store-specific member prices on Local Inventory Ads (LIA).
To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries.
See Loyalty program for details on supported countries and loyalty program configuration. For local inventory specific details, see the Local inventory data specification.
repeated .google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram loyalty_programs = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.shopping.merchant.inventories.v1.InventoryLoyaltyProgramOrBuilder> |
|
getParserForType()
public Parser<LocalInventoryAttributes> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<LocalInventoryAttributes> |
|
getPickupMethod()
public LocalInventoryAttributes.PickupMethod getPickupMethod() Optional. Supported pickup
method for this
product. Unless the value is "not supported", this field must be
submitted together with pickupSla.
optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupMethod pickup_method = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes.PickupMethod |
The pickupMethod. |
getPickupMethodValue()
public int getPickupMethodValue() Optional. Supported pickup
method for this
product. Unless the value is "not supported", this field must be
submitted together with pickupSla.
optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupMethod pickup_method = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for pickupMethod. |
getPickupSla()
public LocalInventoryAttributes.PickupSla getPickupSla() Optional. Relative time period from the order date for an order for this
product, from this store, to be ready for pickup. Must be submitted with
pickupMethod. See more details
here.
optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupSla pickup_sla = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes.PickupSla |
The pickupSla. |
getPickupSlaValue()
public int getPickupSlaValue() Optional. Relative time period from the order date for an order for this
product, from this store, to be ready for pickup. Must be submitted with
pickupMethod. See more details
here.
optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupSla pickup_sla = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for pickupSla. |
getPrice()
public Price getPrice()Optional. Price of the product at this store.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price |
The price. |
getPriceOrBuilder()
public PriceOrBuilder getPriceOrBuilder()Optional. Price of the product at this store.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.PriceOrBuilder |
|
getQuantity()
public long getQuantity()Optional. Quantity of the product available at this store. Must be greater than or equal to zero.
optional int64 quantity = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The quantity. |
getSalePrice()
public Price getSalePrice() Optional. Sale price of the product at this store. 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. |
getSalePriceEffectiveDate()
public Interval getSalePriceEffectiveDate() Optional. The TimePeriod of the
sale at this store.
.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Interval |
The salePriceEffectiveDate. |
getSalePriceEffectiveDateOrBuilder()
public IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() Optional. The TimePeriod of the
sale at this store.
.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 at this store. 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 |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasAvailability()
public boolean hasAvailability()Availability of the product at this store.
optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability availability = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the availability field is set. |
hasInstoreProductLocation()
public boolean hasInstoreProductLocation()Optional. Location of the product inside the store. Maximum length is 20 bytes.
optional string instore_product_location = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the instoreProductLocation field is set. |
hasLocalShippingLabel()
public boolean hasLocalShippingLabel() Optional. Specifies a label associated with the shipping for the
LocalInventory resource. Can be used to group local shipping services to
this particular inventory item. For accepted field format, see the Local
delivery
optional string local_shipping_label = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the localShippingLabel field is set. |
hasPickupMethod()
public boolean hasPickupMethod() Optional. Supported pickup
method for this
product. Unless the value is "not supported", this field must be
submitted together with pickupSla.
optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupMethod pickup_method = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pickupMethod field is set. |
hasPickupSla()
public boolean hasPickupSla() Optional. Relative time period from the order date for an order for this
product, from this store, to be ready for pickup. Must be submitted with
pickupMethod. See more details
here.
optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.PickupSla pickup_sla = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pickupSla field is set. |
hasPrice()
public boolean hasPrice()Optional. Price of the product at this store.
.google.shopping.type.Price price = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the price field is set. |
hasQuantity()
public boolean hasQuantity()Optional. Quantity of the product available at this store. Must be greater than or equal to zero.
optional int64 quantity = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the quantity field is set. |
hasSalePrice()
public boolean hasSalePrice() Optional. Sale price of the product at this store. 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 at this store.
.google.type.Interval sale_price_effective_date = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the salePriceEffectiveDate field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public LocalInventoryAttributes.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected LocalInventoryAttributes.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes.Builder |
|
toBuilder()
public LocalInventoryAttributes.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
LocalInventoryAttributes.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|