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.Builder
addAllPlaceIds(Iterable<String> values)
Required.AddFulfillmentPlacesRequest.Builder
addPlaceIds(String value)
Required.AddFulfillmentPlacesRequest.Builder
addPlaceIdsBytes(com.google.protobuf.ByteString value)
Required.AddFulfillmentPlacesRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AddFulfillmentPlacesRequest
build()
AddFulfillmentPlacesRequest
buildPartial()
AddFulfillmentPlacesRequest.Builder
clear()
AddFulfillmentPlacesRequest.Builder
clearAddTime()
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.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.AddFulfillmentPlacesRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AddFulfillmentPlacesRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AddFulfillmentPlacesRequest.Builder
clearPlaceIds()
Required.AddFulfillmentPlacesRequest.Builder
clearProduct()
Required.AddFulfillmentPlacesRequest.Builder
clearType()
Required.AddFulfillmentPlacesRequest.Builder
clone()
com.google.protobuf.Timestamp
getAddTime()
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.com.google.protobuf.Timestamp.Builder
getAddTimeBuilder()
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.com.google.protobuf.TimestampOrBuilder
getAddTimeOrBuilder()
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.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.AddFulfillmentPlacesRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getPlaceIds(int index)
Required.com.google.protobuf.ByteString
getPlaceIdsBytes(int index)
Required.int
getPlaceIdsCount()
Required.com.google.protobuf.ProtocolStringList
getPlaceIdsList()
Required.String
getProduct()
Required.com.google.protobuf.ByteString
getProductBytes()
Required.String
getType()
Required.com.google.protobuf.ByteString
getTypeBytes()
Required.boolean
hasAddTime()
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
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.AddFulfillmentPlacesRequest.Builder
mergeFrom(AddFulfillmentPlacesRequest other)
AddFulfillmentPlacesRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AddFulfillmentPlacesRequest.Builder
mergeFrom(com.google.protobuf.Message other)
AddFulfillmentPlacesRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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.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.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.AddFulfillmentPlacesRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AddFulfillmentPlacesRequest.Builder
setPlaceIds(int index, String value)
Required.AddFulfillmentPlacesRequest.Builder
setProduct(String value)
Required.AddFulfillmentPlacesRequest.Builder
setProductBytes(com.google.protobuf.ByteString value)
Required.AddFulfillmentPlacesRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AddFulfillmentPlacesRequest.Builder
setType(String value)
Required.AddFulfillmentPlacesRequest.Builder
setTypeBytes(com.google.protobuf.ByteString value)
Required.AddFulfillmentPlacesRequest.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, 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
clear
public AddFulfillmentPlacesRequest.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<AddFulfillmentPlacesRequest.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<AddFulfillmentPlacesRequest.Builder>
-
getDefaultInstanceForType
public AddFulfillmentPlacesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AddFulfillmentPlacesRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AddFulfillmentPlacesRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AddFulfillmentPlacesRequest.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<AddFulfillmentPlacesRequest.Builder>
-
setField
public AddFulfillmentPlacesRequest.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<AddFulfillmentPlacesRequest.Builder>
-
clearField
public AddFulfillmentPlacesRequest.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<AddFulfillmentPlacesRequest.Builder>
-
clearOneof
public AddFulfillmentPlacesRequest.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<AddFulfillmentPlacesRequest.Builder>
-
setRepeatedField
public AddFulfillmentPlacesRequest.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<AddFulfillmentPlacesRequest.Builder>
-
addRepeatedField
public AddFulfillmentPlacesRequest.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<AddFulfillmentPlacesRequest.Builder>
-
mergeFrom
public AddFulfillmentPlacesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AddFulfillmentPlacesRequest.Builder>
-
mergeFrom
public AddFulfillmentPlacesRequest.Builder mergeFrom(AddFulfillmentPlacesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getProduct
in 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:
getProductBytes
in 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:
getType
in 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:
getTypeBytes
in 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:
getPlaceIdsList
in 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:
getPlaceIdsCount
in 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:
getPlaceIds
in 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:
getPlaceIdsBytes
in 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:
hasAddTime
in 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:
getAddTime
in 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:
getAddTimeOrBuilder
in 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:
getAllowMissing
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
mergeUnknownFields
public final AddFulfillmentPlacesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddFulfillmentPlacesRequest.Builder>
-
-