Package com.google.cloud.retail.v2
Class LocalInventory
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.retail.v2.LocalInventory
-
- All Implemented Interfaces:
LocalInventoryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class LocalInventory extends com.google.protobuf.GeneratedMessageV3 implements LocalInventoryOrBuilder
The inventory information at a place (e.g. a store) identified by a place ID.
Protobuf typegoogle.cloud.retail.v2.LocalInventory- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocalInventory.BuilderThe inventory information at a place (e.g.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTES_FIELD_NUMBERstatic intFULFILLMENT_TYPES_FIELD_NUMBERstatic intPLACE_ID_FIELD_NUMBERstatic intPRICE_INFO_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsAttributes(String key)Additional local inventory attributes, for example, store name, promotion tags, etc.booleanequals(Object obj)Map<String,CustomAttribute>getAttributes()Deprecated.intgetAttributesCount()Additional local inventory attributes, for example, store name, promotion tags, etc.Map<String,CustomAttribute>getAttributesMap()Additional local inventory attributes, for example, store name, promotion tags, etc.CustomAttributegetAttributesOrDefault(String key, CustomAttribute defaultValue)Additional local inventory attributes, for example, store name, promotion tags, etc.CustomAttributegetAttributesOrThrow(String key)Additional local inventory attributes, for example, store name, promotion tags, etc.static LocalInventorygetDefaultInstance()LocalInventorygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetFulfillmentTypes(int index)Input only.com.google.protobuf.ByteStringgetFulfillmentTypesBytes(int index)Input only.intgetFulfillmentTypesCount()Input only.com.google.protobuf.ProtocolStringListgetFulfillmentTypesList()Input only.com.google.protobuf.Parser<LocalInventory>getParserForType()StringgetPlaceId()The place ID for the current set of inventory information.com.google.protobuf.ByteStringgetPlaceIdBytes()The place ID for the current set of inventory information.PriceInfogetPriceInfo()Product price and cost information.PriceInfoOrBuildergetPriceInfoOrBuilder()Product price and cost information.intgetSerializedSize()inthashCode()booleanhasPriceInfo()Product price and cost information.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static LocalInventory.BuildernewBuilder()static LocalInventory.BuildernewBuilder(LocalInventory prototype)LocalInventory.BuildernewBuilderForType()protected LocalInventory.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static LocalInventoryparseDelimitedFrom(InputStream input)static LocalInventoryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LocalInventoryparseFrom(byte[] data)static LocalInventoryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LocalInventoryparseFrom(com.google.protobuf.ByteString data)static LocalInventoryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LocalInventoryparseFrom(com.google.protobuf.CodedInputStream input)static LocalInventoryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LocalInventoryparseFrom(InputStream input)static LocalInventoryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LocalInventoryparseFrom(ByteBuffer data)static LocalInventoryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<LocalInventory>parser()LocalInventory.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PLACE_ID_FIELD_NUMBER
public static final int PLACE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRICE_INFO_FIELD_NUMBER
public static final int PRICE_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FULFILLMENT_TYPES_FIELD_NUMBER
public static final int FULFILLMENT_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getPlaceId
public String getPlaceId()
The place ID for the current set of inventory information.
string place_id = 1;- Specified by:
getPlaceIdin interfaceLocalInventoryOrBuilder- Returns:
- The placeId.
-
getPlaceIdBytes
public com.google.protobuf.ByteString getPlaceIdBytes()
The place ID for the current set of inventory information.
string place_id = 1;- Specified by:
getPlaceIdBytesin interfaceLocalInventoryOrBuilder- Returns:
- The bytes for placeId.
-
hasPriceInfo
public boolean hasPriceInfo()
Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2.PriceInfo price_info = 2;- Specified by:
hasPriceInfoin interfaceLocalInventoryOrBuilder- Returns:
- Whether the priceInfo field is set.
-
getPriceInfo
public PriceInfo getPriceInfo()
Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2.PriceInfo price_info = 2;- Specified by:
getPriceInfoin interfaceLocalInventoryOrBuilder- Returns:
- The priceInfo.
-
getPriceInfoOrBuilder
public PriceInfoOrBuilder getPriceInfoOrBuilder()
Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2.PriceInfo price_info = 2;- Specified by:
getPriceInfoOrBuilderin interfaceLocalInventoryOrBuilder
-
getAttributesCount
public int getAttributesCount()
Description copied from interface:LocalInventoryOrBuilderAdditional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 3;- Specified by:
getAttributesCountin interfaceLocalInventoryOrBuilder
-
containsAttributes
public boolean containsAttributes(String key)
Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 3;- Specified by:
containsAttributesin interfaceLocalInventoryOrBuilder
-
getAttributes
@Deprecated public Map<String,CustomAttribute> getAttributes()
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceLocalInventoryOrBuilder
-
getAttributesMap
public Map<String,CustomAttribute> getAttributesMap()
Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 3;- Specified by:
getAttributesMapin interfaceLocalInventoryOrBuilder
-
getAttributesOrDefault
public CustomAttribute getAttributesOrDefault(String key, CustomAttribute defaultValue)
Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 3;- Specified by:
getAttributesOrDefaultin interfaceLocalInventoryOrBuilder
-
getAttributesOrThrow
public CustomAttribute getAttributesOrThrow(String key)
Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 3;- Specified by:
getAttributesOrThrowin interfaceLocalInventoryOrBuilder
-
getFulfillmentTypesList
public com.google.protobuf.ProtocolStringList getFulfillmentTypesList()
Input only. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string fulfillment_types = 4 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getFulfillmentTypesListin interfaceLocalInventoryOrBuilder- Returns:
- A list containing the fulfillmentTypes.
-
getFulfillmentTypesCount
public int getFulfillmentTypesCount()
Input only. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string fulfillment_types = 4 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getFulfillmentTypesCountin interfaceLocalInventoryOrBuilder- Returns:
- The count of fulfillmentTypes.
-
getFulfillmentTypes
public String getFulfillmentTypes(int index)
Input only. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string fulfillment_types = 4 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getFulfillmentTypesin interfaceLocalInventoryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The fulfillmentTypes at the given index.
-
getFulfillmentTypesBytes
public com.google.protobuf.ByteString getFulfillmentTypesBytes(int index)
Input only. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
repeated string fulfillment_types = 4 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getFulfillmentTypesBytesin interfaceLocalInventoryOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the fulfillmentTypes at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static LocalInventory parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalInventory parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalInventory parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalInventory parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalInventory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalInventory parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalInventory parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LocalInventory parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LocalInventory parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LocalInventory parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static LocalInventory parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LocalInventory parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public LocalInventory.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static LocalInventory.Builder newBuilder()
-
newBuilder
public static LocalInventory.Builder newBuilder(LocalInventory prototype)
-
toBuilder
public LocalInventory.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LocalInventory.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static LocalInventory getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<LocalInventory> parser()
-
getParserForType
public com.google.protobuf.Parser<LocalInventory> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public LocalInventory getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-