Package com.google.cloud.retail.v2
Class AddLocalInventoriesRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AddLocalInventoriesRequest.Builder>
-
- com.google.cloud.retail.v2.AddLocalInventoriesRequest.Builder
-
- All Implemented Interfaces:
AddLocalInventoriesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AddLocalInventoriesRequest
public static final class AddLocalInventoriesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AddLocalInventoriesRequest.Builder> implements AddLocalInventoriesRequestOrBuilder
Request message for [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] method.
Protobuf typegoogle.cloud.retail.v2.AddLocalInventoriesRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddLocalInventoriesRequest.BuilderaddAllLocalInventories(Iterable<? extends LocalInventory> values)Required.AddLocalInventoriesRequest.BuilderaddLocalInventories(int index, LocalInventory value)Required.AddLocalInventoriesRequest.BuilderaddLocalInventories(int index, LocalInventory.Builder builderForValue)Required.AddLocalInventoriesRequest.BuilderaddLocalInventories(LocalInventory value)Required.AddLocalInventoriesRequest.BuilderaddLocalInventories(LocalInventory.Builder builderForValue)Required.LocalInventory.BuilderaddLocalInventoriesBuilder()Required.LocalInventory.BuilderaddLocalInventoriesBuilder(int index)Required.AddLocalInventoriesRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AddLocalInventoriesRequestbuild()AddLocalInventoriesRequestbuildPartial()AddLocalInventoriesRequest.Builderclear()AddLocalInventoriesRequest.BuilderclearAddMask()Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update.AddLocalInventoriesRequest.BuilderclearAddTime()The time when the inventory updates are issued.AddLocalInventoriesRequest.BuilderclearAllowMissing()If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the local inventory will still be processed and retained for at most 1 day and processed once the [Product][google.cloud.retail.v2.Product] is created.AddLocalInventoriesRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AddLocalInventoriesRequest.BuilderclearLocalInventories()Required.AddLocalInventoriesRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AddLocalInventoriesRequest.BuilderclearProduct()Required.AddLocalInventoriesRequest.Builderclone()com.google.protobuf.FieldMaskgetAddMask()Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update.com.google.protobuf.FieldMask.BuildergetAddMaskBuilder()Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update.com.google.protobuf.FieldMaskOrBuildergetAddMaskOrBuilder()Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update.com.google.protobuf.TimestampgetAddTime()The time when the inventory updates are issued.com.google.protobuf.Timestamp.BuildergetAddTimeBuilder()The time when the inventory updates are issued.com.google.protobuf.TimestampOrBuildergetAddTimeOrBuilder()The time when the inventory updates are issued.booleangetAllowMissing()If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the local inventory will still be processed and retained for at most 1 day and processed once the [Product][google.cloud.retail.v2.Product] is created.AddLocalInventoriesRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()LocalInventorygetLocalInventories(int index)Required.LocalInventory.BuildergetLocalInventoriesBuilder(int index)Required.List<LocalInventory.Builder>getLocalInventoriesBuilderList()Required.intgetLocalInventoriesCount()Required.List<LocalInventory>getLocalInventoriesList()Required.LocalInventoryOrBuildergetLocalInventoriesOrBuilder(int index)Required.List<? extends LocalInventoryOrBuilder>getLocalInventoriesOrBuilderList()Required.StringgetProduct()Required.com.google.protobuf.ByteStringgetProductBytes()Required.booleanhasAddMask()Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update.booleanhasAddTime()The time when the inventory updates are issued.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AddLocalInventoriesRequest.BuildermergeAddMask(com.google.protobuf.FieldMask value)Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update.AddLocalInventoriesRequest.BuildermergeAddTime(com.google.protobuf.Timestamp value)The time when the inventory updates are issued.AddLocalInventoriesRequest.BuildermergeFrom(AddLocalInventoriesRequest other)AddLocalInventoriesRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AddLocalInventoriesRequest.BuildermergeFrom(com.google.protobuf.Message other)AddLocalInventoriesRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AddLocalInventoriesRequest.BuilderremoveLocalInventories(int index)Required.AddLocalInventoriesRequest.BuildersetAddMask(com.google.protobuf.FieldMask value)Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update.AddLocalInventoriesRequest.BuildersetAddMask(com.google.protobuf.FieldMask.Builder builderForValue)Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update.AddLocalInventoriesRequest.BuildersetAddTime(com.google.protobuf.Timestamp value)The time when the inventory updates are issued.AddLocalInventoriesRequest.BuildersetAddTime(com.google.protobuf.Timestamp.Builder builderForValue)The time when the inventory updates are issued.AddLocalInventoriesRequest.BuildersetAllowMissing(boolean value)If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the local inventory will still be processed and retained for at most 1 day and processed once the [Product][google.cloud.retail.v2.Product] is created.AddLocalInventoriesRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AddLocalInventoriesRequest.BuildersetLocalInventories(int index, LocalInventory value)Required.AddLocalInventoriesRequest.BuildersetLocalInventories(int index, LocalInventory.Builder builderForValue)Required.AddLocalInventoriesRequest.BuildersetProduct(String value)Required.AddLocalInventoriesRequest.BuildersetProductBytes(com.google.protobuf.ByteString value)Required.AddLocalInventoriesRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
clear
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
getDefaultInstanceForType
public AddLocalInventoriesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AddLocalInventoriesRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AddLocalInventoriesRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
setField
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
clearField
public AddLocalInventoriesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddLocalInventoriesRequest.Builder>
-
clearOneof
public AddLocalInventoriesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AddLocalInventoriesRequest.Builder>
-
setRepeatedField
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
addRepeatedField
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
mergeFrom
public AddLocalInventoriesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AddLocalInventoriesRequest.Builder>
-
mergeFrom
public AddLocalInventoriesRequest.Builder mergeFrom(AddLocalInventoriesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AddLocalInventoriesRequest.Builder>
-
mergeFrom
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.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 interfaceAddLocalInventoriesRequestOrBuilder- 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 interfaceAddLocalInventoriesRequestOrBuilder- Returns:
- The bytes for product.
-
setProduct
public AddLocalInventoriesRequest.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 AddLocalInventoriesRequest.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 AddLocalInventoriesRequest.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.
-
getLocalInventoriesList
public List<LocalInventory> getLocalInventoriesList()
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLocalInventoriesListin interfaceAddLocalInventoriesRequestOrBuilder
-
getLocalInventoriesCount
public int getLocalInventoriesCount()
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLocalInventoriesCountin interfaceAddLocalInventoriesRequestOrBuilder
-
getLocalInventories
public LocalInventory getLocalInventories(int index)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLocalInventoriesin interfaceAddLocalInventoriesRequestOrBuilder
-
setLocalInventories
public AddLocalInventoriesRequest.Builder setLocalInventories(int index, LocalInventory value)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
setLocalInventories
public AddLocalInventoriesRequest.Builder setLocalInventories(int index, LocalInventory.Builder builderForValue)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
addLocalInventories
public AddLocalInventoriesRequest.Builder addLocalInventories(LocalInventory value)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
addLocalInventories
public AddLocalInventoriesRequest.Builder addLocalInventories(int index, LocalInventory value)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
addLocalInventories
public AddLocalInventoriesRequest.Builder addLocalInventories(LocalInventory.Builder builderForValue)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
addLocalInventories
public AddLocalInventoriesRequest.Builder addLocalInventories(int index, LocalInventory.Builder builderForValue)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
addAllLocalInventories
public AddLocalInventoriesRequest.Builder addAllLocalInventories(Iterable<? extends LocalInventory> values)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
clearLocalInventories
public AddLocalInventoriesRequest.Builder clearLocalInventories()
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
removeLocalInventories
public AddLocalInventoriesRequest.Builder removeLocalInventories(int index)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
getLocalInventoriesBuilder
public LocalInventory.Builder getLocalInventoriesBuilder(int index)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
getLocalInventoriesOrBuilder
public LocalInventoryOrBuilder getLocalInventoriesOrBuilder(int index)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLocalInventoriesOrBuilderin interfaceAddLocalInventoriesRequestOrBuilder
-
getLocalInventoriesOrBuilderList
public List<? extends LocalInventoryOrBuilder> getLocalInventoriesOrBuilderList()
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLocalInventoriesOrBuilderListin interfaceAddLocalInventoriesRequestOrBuilder
-
addLocalInventoriesBuilder
public LocalInventory.Builder addLocalInventoriesBuilder()
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
addLocalInventoriesBuilder
public LocalInventory.Builder addLocalInventoriesBuilder(int index)
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
getLocalInventoriesBuilderList
public List<LocalInventory.Builder> getLocalInventoriesBuilderList()
Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.
repeated .google.cloud.retail.v2.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
-
hasAddMask
public boolean hasAddMask()
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update. The field is updated to the provided value. If a field is set while the place does not have a previous local inventory, the local inventory at that store is created. If a field is set while the value of that field is not provided, the original field value, if it exists, is deleted. If the mask is not set or set with empty paths, all inventory fields will be updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.
.google.protobuf.FieldMask add_mask = 4;- Specified by:
hasAddMaskin interfaceAddLocalInventoriesRequestOrBuilder- Returns:
- Whether the addMask field is set.
-
getAddMask
public com.google.protobuf.FieldMask getAddMask()
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update. The field is updated to the provided value. If a field is set while the place does not have a previous local inventory, the local inventory at that store is created. If a field is set while the value of that field is not provided, the original field value, if it exists, is deleted. If the mask is not set or set with empty paths, all inventory fields will be updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.
.google.protobuf.FieldMask add_mask = 4;- Specified by:
getAddMaskin interfaceAddLocalInventoriesRequestOrBuilder- Returns:
- The addMask.
-
setAddMask
public AddLocalInventoriesRequest.Builder setAddMask(com.google.protobuf.FieldMask value)
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update. The field is updated to the provided value. If a field is set while the place does not have a previous local inventory, the local inventory at that store is created. If a field is set while the value of that field is not provided, the original field value, if it exists, is deleted. If the mask is not set or set with empty paths, all inventory fields will be updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.
.google.protobuf.FieldMask add_mask = 4;
-
setAddMask
public AddLocalInventoriesRequest.Builder setAddMask(com.google.protobuf.FieldMask.Builder builderForValue)
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update. The field is updated to the provided value. If a field is set while the place does not have a previous local inventory, the local inventory at that store is created. If a field is set while the value of that field is not provided, the original field value, if it exists, is deleted. If the mask is not set or set with empty paths, all inventory fields will be updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.
.google.protobuf.FieldMask add_mask = 4;
-
mergeAddMask
public AddLocalInventoriesRequest.Builder mergeAddMask(com.google.protobuf.FieldMask value)
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update. The field is updated to the provided value. If a field is set while the place does not have a previous local inventory, the local inventory at that store is created. If a field is set while the value of that field is not provided, the original field value, if it exists, is deleted. If the mask is not set or set with empty paths, all inventory fields will be updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.
.google.protobuf.FieldMask add_mask = 4;
-
clearAddMask
public AddLocalInventoriesRequest.Builder clearAddMask()
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update. The field is updated to the provided value. If a field is set while the place does not have a previous local inventory, the local inventory at that store is created. If a field is set while the value of that field is not provided, the original field value, if it exists, is deleted. If the mask is not set or set with empty paths, all inventory fields will be updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.
.google.protobuf.FieldMask add_mask = 4;
-
getAddMaskBuilder
public com.google.protobuf.FieldMask.Builder getAddMaskBuilder()
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update. The field is updated to the provided value. If a field is set while the place does not have a previous local inventory, the local inventory at that store is created. If a field is set while the value of that field is not provided, the original field value, if it exists, is deleted. If the mask is not set or set with empty paths, all inventory fields will be updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.
.google.protobuf.FieldMask add_mask = 4;
-
getAddMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getAddMaskOrBuilder()
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2.LocalInventory] to update. The field is updated to the provided value. If a field is set while the place does not have a previous local inventory, the local inventory at that store is created. If a field is set while the value of that field is not provided, the original field value, if it exists, is deleted. If the mask is not set or set with empty paths, all inventory fields will be updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.
.google.protobuf.FieldMask add_mask = 4;- Specified by:
getAddMaskOrBuilderin interfaceAddLocalInventoriesRequestOrBuilder
-
hasAddTime
public boolean hasAddTime()
The time when the inventory updates are issued. Used to prevent out-of-order updates on local inventory fields. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 5;- Specified by:
hasAddTimein interfaceAddLocalInventoriesRequestOrBuilder- Returns:
- Whether the addTime field is set.
-
getAddTime
public com.google.protobuf.Timestamp getAddTime()
The time when the inventory updates are issued. Used to prevent out-of-order updates on local inventory fields. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 5;- Specified by:
getAddTimein interfaceAddLocalInventoriesRequestOrBuilder- Returns:
- The addTime.
-
setAddTime
public AddLocalInventoriesRequest.Builder setAddTime(com.google.protobuf.Timestamp value)
The time when the inventory updates are issued. Used to prevent out-of-order updates on local inventory fields. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 5;
-
setAddTime
public AddLocalInventoriesRequest.Builder setAddTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the inventory updates are issued. Used to prevent out-of-order updates on local inventory fields. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 5;
-
mergeAddTime
public AddLocalInventoriesRequest.Builder mergeAddTime(com.google.protobuf.Timestamp value)
The time when the inventory updates are issued. Used to prevent out-of-order updates on local inventory fields. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 5;
-
clearAddTime
public AddLocalInventoriesRequest.Builder clearAddTime()
The time when the inventory updates are issued. Used to prevent out-of-order updates on local inventory fields. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 5;
-
getAddTimeBuilder
public com.google.protobuf.Timestamp.Builder getAddTimeBuilder()
The time when the inventory updates are issued. Used to prevent out-of-order updates on local inventory fields. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 5;
-
getAddTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getAddTimeOrBuilder()
The time when the inventory updates are issued. Used to prevent out-of-order updates on local inventory fields. If not provided, the internal system time will be used.
.google.protobuf.Timestamp add_time = 5;- Specified by:
getAddTimeOrBuilderin interfaceAddLocalInventoriesRequestOrBuilder
-
getAllowMissing
public boolean getAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the local inventory 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 = 6;- Specified by:
getAllowMissingin interfaceAddLocalInventoriesRequestOrBuilder- Returns:
- The allowMissing.
-
setAllowMissing
public AddLocalInventoriesRequest.Builder setAllowMissing(boolean value)
If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the local inventory 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 = 6;- Parameters:
value- The allowMissing to set.- Returns:
- This builder for chaining.
-
clearAllowMissing
public AddLocalInventoriesRequest.Builder clearAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2.Product] is not found, the local inventory 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 = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AddLocalInventoriesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AddLocalInventoriesRequest.Builder>
-
mergeUnknownFields
public final AddLocalInventoriesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AddLocalInventoriesRequest.Builder>
-
-