Package com.google.cloud.retail.v2
Class AddFulfillmentPlacesRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
- com.google.cloud.retail.v2.AddFulfillmentPlacesRequest.Builder
-
- All Implemented Interfaces:
AddFulfillmentPlacesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AddFulfillmentPlacesRequest
public static final class AddFulfillmentPlacesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder> implements AddFulfillmentPlacesRequestOrBuilder
Request message for [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces] method.
Protobuf typegoogle.cloud.retail.v2.AddFulfillmentPlacesRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddFulfillmentPlacesRequest.BuilderaddAllPlaceIds(Iterable<String> values)Required.AddFulfillmentPlacesRequest.BuilderaddPlaceIds(String value)Required.AddFulfillmentPlacesRequest.BuilderaddPlaceIdsBytes(com.google.protobuf.ByteString value)Required.AddFulfillmentPlacesRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AddFulfillmentPlacesRequestbuild()AddFulfillmentPlacesRequestbuildPartial()AddFulfillmentPlacesRequest.Builderclear()AddFulfillmentPlacesRequest.BuilderclearAddTime()The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.AddFulfillmentPlacesRequest.BuilderclearAllowMissing()If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the fulfillment information will still be processed and retained for at most 1 day and processed once the [Product][google.cloud.retail.v2.Product] is created.AddFulfillmentPlacesRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AddFulfillmentPlacesRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AddFulfillmentPlacesRequest.BuilderclearPlaceIds()Required.AddFulfillmentPlacesRequest.BuilderclearProduct()Required.AddFulfillmentPlacesRequest.BuilderclearType()Required.AddFulfillmentPlacesRequest.Builderclone()com.google.protobuf.TimestampgetAddTime()The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.com.google.protobuf.Timestamp.BuildergetAddTimeBuilder()The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.com.google.protobuf.TimestampOrBuildergetAddTimeOrBuilder()The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.booleangetAllowMissing()If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the fulfillment information will still be processed and retained for at most 1 day and processed once the [Product][google.cloud.retail.v2.Product] is created.AddFulfillmentPlacesRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetPlaceIds(int index)Required.com.google.protobuf.ByteStringgetPlaceIdsBytes(int index)Required.intgetPlaceIdsCount()Required.com.google.protobuf.ProtocolStringListgetPlaceIdsList()Required.StringgetProduct()Required.com.google.protobuf.ByteStringgetProductBytes()Required.StringgetType()Required.com.google.protobuf.ByteStringgetTypeBytes()Required.booleanhasAddTime()The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AddFulfillmentPlacesRequest.BuildermergeAddTime(com.google.protobuf.Timestamp value)The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.AddFulfillmentPlacesRequest.BuildermergeFrom(AddFulfillmentPlacesRequest other)AddFulfillmentPlacesRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AddFulfillmentPlacesRequest.BuildermergeFrom(com.google.protobuf.Message other)AddFulfillmentPlacesRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AddFulfillmentPlacesRequest.BuildersetAddTime(com.google.protobuf.Timestamp value)The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.AddFulfillmentPlacesRequest.BuildersetAddTime(com.google.protobuf.Timestamp.Builder builderForValue)The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.AddFulfillmentPlacesRequest.BuildersetAllowMissing(boolean value)If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the fulfillment information will still be processed and retained for at most 1 day and processed once the [Product][google.cloud.retail.v2.Product] is created.AddFulfillmentPlacesRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AddFulfillmentPlacesRequest.BuildersetPlaceIds(int index, String value)Required.AddFulfillmentPlacesRequest.BuildersetProduct(String value)Required.AddFulfillmentPlacesRequest.BuildersetProductBytes(com.google.protobuf.ByteString value)Required.AddFulfillmentPlacesRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AddFulfillmentPlacesRequest.BuildersetType(String value)Required.AddFulfillmentPlacesRequest.BuildersetTypeBytes(com.google.protobuf.ByteString value)Required.AddFulfillmentPlacesRequest.BuildersetUnknownFields(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, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
clear
public AddFulfillmentPlacesRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
getDefaultInstanceForType
public AddFulfillmentPlacesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AddFulfillmentPlacesRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AddFulfillmentPlacesRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AddFulfillmentPlacesRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
setField
public AddFulfillmentPlacesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
clearField
public AddFulfillmentPlacesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
clearOneof
public AddFulfillmentPlacesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
setRepeatedField
public AddFulfillmentPlacesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
addRepeatedField
public AddFulfillmentPlacesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
mergeFrom
public AddFulfillmentPlacesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AddFulfillmentPlacesRequest.Builder>
-
mergeFrom
public AddFulfillmentPlacesRequest.Builder mergeFrom(AddFulfillmentPlacesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
mergeFrom
public AddFulfillmentPlacesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AddFulfillmentPlacesRequest.Builder>- Throws:
IOException
-
getProduct
public String getProduct()
Required. Full resource name of [Product][google.cloud.retail.v2.Product], such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`. If the caller does not have permission to access the [Product][google.cloud.retail.v2.Product], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
string product = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getProductin interfaceAddFulfillmentPlacesRequestOrBuilder- Returns:
- The product.
-
getProductBytes
public com.google.protobuf.ByteString getProductBytes()
Required. Full resource name of [Product][google.cloud.retail.v2.Product], such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`. If the caller does not have permission to access the [Product][google.cloud.retail.v2.Product], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
string product = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getProductBytesin interfaceAddFulfillmentPlacesRequestOrBuilder- Returns:
- The bytes for product.
-
setProduct
public AddFulfillmentPlacesRequest.Builder setProduct(String value)
Required. Full resource name of [Product][google.cloud.retail.v2.Product], such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`. If the caller does not have permission to access the [Product][google.cloud.retail.v2.Product], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
string product = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The product to set.- Returns:
- This builder for chaining.
-
clearProduct
public AddFulfillmentPlacesRequest.Builder clearProduct()
Required. Full resource name of [Product][google.cloud.retail.v2.Product], such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`. If the caller does not have permission to access the [Product][google.cloud.retail.v2.Product], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
string product = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setProductBytes
public AddFulfillmentPlacesRequest.Builder setProductBytes(com.google.protobuf.ByteString value)
Required. Full resource name of [Product][google.cloud.retail.v2.Product], such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`. If the caller does not have permission to access the [Product][google.cloud.retail.v2.Product], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
string product = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for product to set.- Returns:
- This builder for chaining.
-
getType
public String getType()
Required. The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. 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. This field directly corresponds to [Product.fulfillment_info.type][google.cloud.retail.v2.FulfillmentInfo.type].
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypein interfaceAddFulfillmentPlacesRequestOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Required. The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. 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. This field directly corresponds to [Product.fulfillment_info.type][google.cloud.retail.v2.FulfillmentInfo.type].
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypeBytesin interfaceAddFulfillmentPlacesRequestOrBuilder- Returns:
- The bytes for type.
-
setType
public AddFulfillmentPlacesRequest.Builder setType(String value)
Required. The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. 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. This field directly corresponds to [Product.fulfillment_info.type][google.cloud.retail.v2.FulfillmentInfo.type].
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public AddFulfillmentPlacesRequest.Builder clearType()
Required. The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. 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. This field directly corresponds to [Product.fulfillment_info.type][google.cloud.retail.v2.FulfillmentInfo.type].
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTypeBytes
public AddFulfillmentPlacesRequest.Builder setTypeBytes(com.google.protobuf.ByteString value)
Required. The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. 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. This field directly corresponds to [Product.fulfillment_info.type][google.cloud.retail.v2.FulfillmentInfo.type].
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getPlaceIdsList
public com.google.protobuf.ProtocolStringList getPlaceIdsList()
Required. The IDs for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery" to be added for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type]. Duplicate IDs will be automatically ignored. At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. If the total number of place IDs exceeds 2000 for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type] after adding, then the update will be rejected.
repeated string place_ids = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPlaceIdsListin interfaceAddFulfillmentPlacesRequestOrBuilder- Returns:
- A list containing the placeIds.
-
getPlaceIdsCount
public int getPlaceIdsCount()
Required. The IDs for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery" to be added for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type]. Duplicate IDs will be automatically ignored. At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. If the total number of place IDs exceeds 2000 for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type] after adding, then the update will be rejected.
repeated string place_ids = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPlaceIdsCountin interfaceAddFulfillmentPlacesRequestOrBuilder- Returns:
- The count of placeIds.
-
getPlaceIds
public String getPlaceIds(int index)
Required. The IDs for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery" to be added for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type]. Duplicate IDs will be automatically ignored. At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. If the total number of place IDs exceeds 2000 for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type] after adding, then the update will be rejected.
repeated string place_ids = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPlaceIdsin interfaceAddFulfillmentPlacesRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The placeIds at the given index.
-
getPlaceIdsBytes
public com.google.protobuf.ByteString getPlaceIdsBytes(int index)
Required. The IDs for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery" to be added for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type]. Duplicate IDs will be automatically ignored. At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. If the total number of place IDs exceeds 2000 for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type] after adding, then the update will be rejected.
repeated string place_ids = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPlaceIdsBytesin interfaceAddFulfillmentPlacesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the placeIds at the given index.
-
setPlaceIds
public AddFulfillmentPlacesRequest.Builder setPlaceIds(int index, String value)
Required. The IDs for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery" to be added for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type]. Duplicate IDs will be automatically ignored. At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. If the total number of place IDs exceeds 2000 for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type] after adding, then the update will be rejected.
repeated string place_ids = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The placeIds to set.- Returns:
- This builder for chaining.
-
addPlaceIds
public AddFulfillmentPlacesRequest.Builder addPlaceIds(String value)
Required. The IDs for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery" to be added for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type]. Duplicate IDs will be automatically ignored. At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. If the total number of place IDs exceeds 2000 for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type] after adding, then the update will be rejected.
repeated string place_ids = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The placeIds to add.- Returns:
- This builder for chaining.
-
addAllPlaceIds
public AddFulfillmentPlacesRequest.Builder addAllPlaceIds(Iterable<String> values)
Required. The IDs for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery" to be added for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type]. Duplicate IDs will be automatically ignored. At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. If the total number of place IDs exceeds 2000 for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type] after adding, then the update will be rejected.
repeated string place_ids = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The placeIds to add.- Returns:
- This builder for chaining.
-
clearPlaceIds
public AddFulfillmentPlacesRequest.Builder clearPlaceIds()
Required. The IDs for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery" to be added for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type]. Duplicate IDs will be automatically ignored. At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. If the total number of place IDs exceeds 2000 for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type] after adding, then the update will be rejected.
repeated string place_ids = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addPlaceIdsBytes
public AddFulfillmentPlacesRequest.Builder addPlaceIdsBytes(com.google.protobuf.ByteString value)
Required. The IDs for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery" to be added for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type]. Duplicate IDs will be automatically ignored. At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. If the total number of place IDs exceeds 2000 for this [type][google.cloud.retail.v2.AddFulfillmentPlacesRequest.type] after adding, then the update will be rejected.
repeated string place_ids = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes of the placeIds to add.- Returns:
- This builder for chaining.
-
hasAddTime
public boolean hasAddTime()
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 4;- Specified by:
hasAddTimein interfaceAddFulfillmentPlacesRequestOrBuilder- Returns:
- Whether the addTime field is set.
-
getAddTime
public com.google.protobuf.Timestamp getAddTime()
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 4;- Specified by:
getAddTimein interfaceAddFulfillmentPlacesRequestOrBuilder- Returns:
- The addTime.
-
setAddTime
public AddFulfillmentPlacesRequest.Builder setAddTime(com.google.protobuf.Timestamp value)
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 4;
-
setAddTime
public AddFulfillmentPlacesRequest.Builder setAddTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 4;
-
mergeAddTime
public AddFulfillmentPlacesRequest.Builder mergeAddTime(com.google.protobuf.Timestamp value)
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 4;
-
clearAddTime
public AddFulfillmentPlacesRequest.Builder clearAddTime()
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 4;
-
getAddTimeBuilder
public com.google.protobuf.Timestamp.Builder getAddTimeBuilder()
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 4;
-
getAddTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getAddTimeOrBuilder()
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 4;- Specified by:
getAddTimeOrBuilderin interfaceAddFulfillmentPlacesRequestOrBuilder
-
getAllowMissing
public boolean getAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the fulfillment information will still be processed and retained for at most 1 day and processed once the [Product][google.cloud.retail.v2.Product] is created. If set to false, a NOT_FOUND error is returned if the [Product][google.cloud.retail.v2.Product] is not found.
bool allow_missing = 5;- Specified by:
getAllowMissingin interfaceAddFulfillmentPlacesRequestOrBuilder- Returns:
- The allowMissing.
-
setAllowMissing
public AddFulfillmentPlacesRequest.Builder setAllowMissing(boolean value)
If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the fulfillment information will still be processed and retained for at most 1 day and processed once the [Product][google.cloud.retail.v2.Product] is created. If set to false, a NOT_FOUND error is returned if the [Product][google.cloud.retail.v2.Product] is not found.
bool allow_missing = 5;- Parameters:
value- The allowMissing to set.- Returns:
- This builder for chaining.
-
clearAllowMissing
public AddFulfillmentPlacesRequest.Builder clearAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the fulfillment information will still be processed and retained for at most 1 day and processed once the [Product][google.cloud.retail.v2.Product] is created. If set to false, a NOT_FOUND error is returned if the [Product][google.cloud.retail.v2.Product] is not found.
bool allow_missing = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AddFulfillmentPlacesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
mergeUnknownFields
public final AddFulfillmentPlacesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
-