public final class LocalInventoryAttributes extends GeneratedMessageV3 implements LocalInventoryAttributesOrBuilder
Local inventory attributes.
Protobuf type google.shopping.merchant.inventories.v1.LocalInventoryAttributes
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 AVAILABILITY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int INSTORE_PRODUCT_LOCATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PICKUP_METHOD_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PICKUP_SLA_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PRICE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int QUANTITY_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 LocalInventoryAttributes getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static LocalInventoryAttributes.Builder newBuilder()
public static LocalInventoryAttributes.Builder newBuilder(LocalInventoryAttributes prototype)
public static LocalInventoryAttributes parseDelimitedFrom(InputStream input)
public static LocalInventoryAttributes parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static LocalInventoryAttributes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseFrom(ByteString data)
public static LocalInventoryAttributes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseFrom(CodedInputStream input)
public static LocalInventoryAttributes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseFrom(InputStream input)
public static LocalInventoryAttributes parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LocalInventoryAttributes parseFrom(ByteBuffer data)
public static LocalInventoryAttributes parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<LocalInventoryAttributes> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public LocalInventoryAttributes.Availability getAvailability()
Availability of the
product at this store.
optional .google.shopping.merchant.inventories.v1.LocalInventoryAttributes.Availability availability = 4;
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.
|
public LocalInventoryAttributes getDefaultInstanceForType()
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.
|
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.
|
public Parser<LocalInventoryAttributes> getParserForType()
Overrides
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];
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.
|
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];
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.
|
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.
|
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 |
|
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.
|
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.
|
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.
|
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 |
|
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 |
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public LocalInventoryAttributes.Builder newBuilderForType()
protected LocalInventoryAttributes.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public LocalInventoryAttributes.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides