Package com.google.cloud.retail.v2alpha
Class LocalInventory.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
- com.google.cloud.retail.v2alpha.LocalInventory.Builder
-
- All Implemented Interfaces:
LocalInventoryOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- LocalInventory
public static final class LocalInventory.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder> implements LocalInventoryOrBuilder
The inventory information at a place (e.g. a store) identified by a place ID.
Protobuf typegoogle.cloud.retail.v2alpha.LocalInventory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LocalInventory.Builder
addAllFulfillmentTypes(Iterable<String> values)
Input only.LocalInventory.Builder
addFulfillmentTypes(String value)
Input only.LocalInventory.Builder
addFulfillmentTypesBytes(com.google.protobuf.ByteString value)
Input only.LocalInventory.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LocalInventory
build()
LocalInventory
buildPartial()
LocalInventory.Builder
clear()
LocalInventory.Builder
clearAttributes()
LocalInventory.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
LocalInventory.Builder
clearFulfillmentTypes()
Input only.LocalInventory.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
LocalInventory.Builder
clearPlaceId()
The place ID for the current set of inventory information.LocalInventory.Builder
clearPriceInfo()
Product price and cost information.LocalInventory.Builder
clone()
boolean
containsAttributes(String key)
Additional local inventory attributes, for example, store name, promotion tags, etc.Map<String,CustomAttribute>
getAttributes()
Deprecated.int
getAttributesCount()
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.CustomAttribute
getAttributesOrDefault(String key, CustomAttribute defaultValue)
Additional local inventory attributes, for example, store name, promotion tags, etc.CustomAttribute
getAttributesOrThrow(String key)
Additional local inventory attributes, for example, store name, promotion tags, etc.LocalInventory
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFulfillmentTypes(int index)
Input only.com.google.protobuf.ByteString
getFulfillmentTypesBytes(int index)
Input only.int
getFulfillmentTypesCount()
Input only.com.google.protobuf.ProtocolStringList
getFulfillmentTypesList()
Input only.Map<String,CustomAttribute>
getMutableAttributes()
Deprecated.String
getPlaceId()
The place ID for the current set of inventory information.com.google.protobuf.ByteString
getPlaceIdBytes()
The place ID for the current set of inventory information.PriceInfo
getPriceInfo()
Product price and cost information.PriceInfo.Builder
getPriceInfoBuilder()
Product price and cost information.PriceInfoOrBuilder
getPriceInfoOrBuilder()
Product price and cost information.boolean
hasPriceInfo()
Product price and cost information.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
LocalInventory.Builder
mergeFrom(LocalInventory other)
LocalInventory.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LocalInventory.Builder
mergeFrom(com.google.protobuf.Message other)
LocalInventory.Builder
mergePriceInfo(PriceInfo value)
Product price and cost information.LocalInventory.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LocalInventory.Builder
putAllAttributes(Map<String,CustomAttribute> values)
Additional local inventory attributes, for example, store name, promotion tags, etc.LocalInventory.Builder
putAttributes(String key, CustomAttribute value)
Additional local inventory attributes, for example, store name, promotion tags, etc.LocalInventory.Builder
removeAttributes(String key)
Additional local inventory attributes, for example, store name, promotion tags, etc.LocalInventory.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LocalInventory.Builder
setFulfillmentTypes(int index, String value)
Input only.LocalInventory.Builder
setPlaceId(String value)
The place ID for the current set of inventory information.LocalInventory.Builder
setPlaceIdBytes(com.google.protobuf.ByteString value)
The place ID for the current set of inventory information.LocalInventory.Builder
setPriceInfo(PriceInfo value)
Product price and cost information.LocalInventory.Builder
setPriceInfo(PriceInfo.Builder builderForValue)
Product price and cost information.LocalInventory.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
LocalInventory.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
clear
public LocalInventory.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
getDefaultInstanceForType
public LocalInventory getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocalInventory build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocalInventory buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocalInventory.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
setField
public LocalInventory.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
clearField
public LocalInventory.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
clearOneof
public LocalInventory.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
setRepeatedField
public LocalInventory.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
addRepeatedField
public LocalInventory.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
mergeFrom
public LocalInventory.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LocalInventory.Builder>
-
mergeFrom
public LocalInventory.Builder mergeFrom(LocalInventory other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
mergeFrom
public LocalInventory.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LocalInventory.Builder>
- Throws:
IOException
-
getPlaceId
public String getPlaceId()
The place ID for the current set of inventory information.
string place_id = 1;
- Specified by:
getPlaceId
in 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:
getPlaceIdBytes
in interfaceLocalInventoryOrBuilder
- Returns:
- The bytes for placeId.
-
setPlaceId
public LocalInventory.Builder setPlaceId(String value)
The place ID for the current set of inventory information.
string place_id = 1;
- Parameters:
value
- The placeId to set.- Returns:
- This builder for chaining.
-
clearPlaceId
public LocalInventory.Builder clearPlaceId()
The place ID for the current set of inventory information.
string place_id = 1;
- Returns:
- This builder for chaining.
-
setPlaceIdBytes
public LocalInventory.Builder setPlaceIdBytes(com.google.protobuf.ByteString value)
The place ID for the current set of inventory information.
string place_id = 1;
- Parameters:
value
- The bytes for placeId to set.- Returns:
- This builder for chaining.
-
hasPriceInfo
public boolean hasPriceInfo()
Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 2;
- Specified by:
hasPriceInfo
in 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.v2alpha.PriceInfo price_info = 2;
- Specified by:
getPriceInfo
in interfaceLocalInventoryOrBuilder
- Returns:
- The priceInfo.
-
setPriceInfo
public LocalInventory.Builder setPriceInfo(PriceInfo value)
Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 2;
-
setPriceInfo
public LocalInventory.Builder setPriceInfo(PriceInfo.Builder builderForValue)
Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 2;
-
mergePriceInfo
public LocalInventory.Builder mergePriceInfo(PriceInfo value)
Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 2;
-
clearPriceInfo
public LocalInventory.Builder clearPriceInfo()
Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 2;
-
getPriceInfoBuilder
public PriceInfo.Builder getPriceInfoBuilder()
Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 2;
-
getPriceInfoOrBuilder
public PriceInfoOrBuilder getPriceInfoOrBuilder()
Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
.google.cloud.retail.v2alpha.PriceInfo price_info = 2;
- Specified by:
getPriceInfoOrBuilder
in interfaceLocalInventoryOrBuilder
-
getAttributesCount
public int getAttributesCount()
Description copied from interface:LocalInventoryOrBuilder
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.v2alpha.CustomAttribute> attributes = 3;
- Specified by:
getAttributesCount
in 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.v2alpha.CustomAttribute> attributes = 3;
- Specified by:
containsAttributes
in interfaceLocalInventoryOrBuilder
-
getAttributes
@Deprecated public Map<String,CustomAttribute> getAttributes()
Deprecated.UsegetAttributesMap()
instead.- Specified by:
getAttributes
in 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.v2alpha.CustomAttribute> attributes = 3;
- Specified by:
getAttributesMap
in 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.v2alpha.CustomAttribute> attributes = 3;
- Specified by:
getAttributesOrDefault
in 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.v2alpha.CustomAttribute> attributes = 3;
- Specified by:
getAttributesOrThrow
in interfaceLocalInventoryOrBuilder
-
clearAttributes
public LocalInventory.Builder clearAttributes()
-
removeAttributes
public LocalInventory.Builder removeAttributes(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.v2alpha.CustomAttribute> attributes = 3;
-
getMutableAttributes
@Deprecated public Map<String,CustomAttribute> getMutableAttributes()
Deprecated.Use alternate mutation accessors instead.
-
putAttributes
public LocalInventory.Builder putAttributes(String key, CustomAttribute value)
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.v2alpha.CustomAttribute> attributes = 3;
-
putAllAttributes
public LocalInventory.Builder putAllAttributes(Map<String,CustomAttribute> values)
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.v2alpha.CustomAttribute> attributes = 3;
-
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:
getFulfillmentTypesList
in 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:
getFulfillmentTypesCount
in 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:
getFulfillmentTypes
in 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:
getFulfillmentTypesBytes
in interfaceLocalInventoryOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the fulfillmentTypes at the given index.
-
setFulfillmentTypes
public LocalInventory.Builder setFulfillmentTypes(int index, String value)
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];
- Parameters:
index
- The index to set the value at.value
- The fulfillmentTypes to set.- Returns:
- This builder for chaining.
-
addFulfillmentTypes
public LocalInventory.Builder addFulfillmentTypes(String value)
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];
- Parameters:
value
- The fulfillmentTypes to add.- Returns:
- This builder for chaining.
-
addAllFulfillmentTypes
public LocalInventory.Builder addAllFulfillmentTypes(Iterable<String> values)
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];
- Parameters:
values
- The fulfillmentTypes to add.- Returns:
- This builder for chaining.
-
clearFulfillmentTypes
public LocalInventory.Builder clearFulfillmentTypes()
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];
- Returns:
- This builder for chaining.
-
addFulfillmentTypesBytes
public LocalInventory.Builder addFulfillmentTypesBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes of the fulfillmentTypes to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final LocalInventory.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
mergeUnknownFields
public final LocalInventory.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalInventory.Builder>
-
-