Package com.google.cloud.retail.v2beta
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.v2beta.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.v2beta.ProductService.AddLocalInventories] method.
Protobuf typegoogle.cloud.retail.v2beta.AddLocalInventoriesRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddLocalInventoriesRequest.Builder
addAllLocalInventories(Iterable<? extends LocalInventory> values)
Required.AddLocalInventoriesRequest.Builder
addLocalInventories(int index, LocalInventory value)
Required.AddLocalInventoriesRequest.Builder
addLocalInventories(int index, LocalInventory.Builder builderForValue)
Required.AddLocalInventoriesRequest.Builder
addLocalInventories(LocalInventory value)
Required.AddLocalInventoriesRequest.Builder
addLocalInventories(LocalInventory.Builder builderForValue)
Required.LocalInventory.Builder
addLocalInventoriesBuilder()
Required.LocalInventory.Builder
addLocalInventoriesBuilder(int index)
Required.AddLocalInventoriesRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AddLocalInventoriesRequest
build()
AddLocalInventoriesRequest
buildPartial()
AddLocalInventoriesRequest.Builder
clear()
AddLocalInventoriesRequest.Builder
clearAddMask()
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2beta.LocalInventory] to update.AddLocalInventoriesRequest.Builder
clearAddTime()
The time when the inventory updates are issued.AddLocalInventoriesRequest.Builder
clearAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2beta.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.v2beta.Product] is created.AddLocalInventoriesRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AddLocalInventoriesRequest.Builder
clearLocalInventories()
Required.AddLocalInventoriesRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AddLocalInventoriesRequest.Builder
clearProduct()
Required.AddLocalInventoriesRequest.Builder
clone()
com.google.protobuf.FieldMask
getAddMask()
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2beta.LocalInventory] to update.com.google.protobuf.FieldMask.Builder
getAddMaskBuilder()
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2beta.LocalInventory] to update.com.google.protobuf.FieldMaskOrBuilder
getAddMaskOrBuilder()
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2beta.LocalInventory] to update.com.google.protobuf.Timestamp
getAddTime()
The time when the inventory updates are issued.com.google.protobuf.Timestamp.Builder
getAddTimeBuilder()
The time when the inventory updates are issued.com.google.protobuf.TimestampOrBuilder
getAddTimeOrBuilder()
The time when the inventory updates are issued.boolean
getAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2beta.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.v2beta.Product] is created.AddLocalInventoriesRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
LocalInventory
getLocalInventories(int index)
Required.LocalInventory.Builder
getLocalInventoriesBuilder(int index)
Required.List<LocalInventory.Builder>
getLocalInventoriesBuilderList()
Required.int
getLocalInventoriesCount()
Required.List<LocalInventory>
getLocalInventoriesList()
Required.LocalInventoryOrBuilder
getLocalInventoriesOrBuilder(int index)
Required.List<? extends LocalInventoryOrBuilder>
getLocalInventoriesOrBuilderList()
Required.String
getProduct()
Required.com.google.protobuf.ByteString
getProductBytes()
Required.boolean
hasAddMask()
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2beta.LocalInventory] to update.boolean
hasAddTime()
The time when the inventory updates are issued.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AddLocalInventoriesRequest.Builder
mergeAddMask(com.google.protobuf.FieldMask value)
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2beta.LocalInventory] to update.AddLocalInventoriesRequest.Builder
mergeAddTime(com.google.protobuf.Timestamp value)
The time when the inventory updates are issued.AddLocalInventoriesRequest.Builder
mergeFrom(AddLocalInventoriesRequest other)
AddLocalInventoriesRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AddLocalInventoriesRequest.Builder
mergeFrom(com.google.protobuf.Message other)
AddLocalInventoriesRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AddLocalInventoriesRequest.Builder
removeLocalInventories(int index)
Required.AddLocalInventoriesRequest.Builder
setAddMask(com.google.protobuf.FieldMask value)
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2beta.LocalInventory] to update.AddLocalInventoriesRequest.Builder
setAddMask(com.google.protobuf.FieldMask.Builder builderForValue)
Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2beta.LocalInventory] to update.AddLocalInventoriesRequest.Builder
setAddTime(com.google.protobuf.Timestamp value)
The time when the inventory updates are issued.AddLocalInventoriesRequest.Builder
setAddTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the inventory updates are issued.AddLocalInventoriesRequest.Builder
setAllowMissing(boolean value)
If set to true, and the [Product][google.cloud.retail.v2beta.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.v2beta.Product] is created.AddLocalInventoriesRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AddLocalInventoriesRequest.Builder
setLocalInventories(int index, LocalInventory value)
Required.AddLocalInventoriesRequest.Builder
setLocalInventories(int index, LocalInventory.Builder builderForValue)
Required.AddLocalInventoriesRequest.Builder
setProduct(String value)
Required.AddLocalInventoriesRequest.Builder
setProductBytes(com.google.protobuf.ByteString value)
Required.AddLocalInventoriesRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
clear
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
getDefaultInstanceForType
public AddLocalInventoriesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AddLocalInventoriesRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AddLocalInventoriesRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
setField
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
clearField
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
clearOneof
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
setRepeatedField
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
addRepeatedField
public AddLocalInventoriesRequest.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<AddLocalInventoriesRequest.Builder>
-
mergeFrom
public AddLocalInventoriesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AddLocalInventoriesRequest.Builder>
-
mergeFrom
public AddLocalInventoriesRequest.Builder mergeFrom(AddLocalInventoriesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AddLocalInventoriesRequest.Builder>
- Throws:
IOException
-
getProduct
public String getProduct()
Required. Full resource name of [Product][google.cloud.retail.v2beta.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.v2beta.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 interfaceAddLocalInventoriesRequestOrBuilder
- Returns:
- The product.
-
getProductBytes
public com.google.protobuf.ByteString getProductBytes()
Required. Full resource name of [Product][google.cloud.retail.v2beta.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.v2beta.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 interfaceAddLocalInventoriesRequestOrBuilder
- Returns:
- The bytes for product.
-
setProduct
public AddLocalInventoriesRequest.Builder setProduct(String value)
Required. Full resource name of [Product][google.cloud.retail.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getLocalInventoriesList
in 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.v2beta.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getLocalInventoriesCount
in 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.v2beta.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getLocalInventories
in 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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getLocalInventoriesOrBuilder
in 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.v2beta.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getLocalInventoriesOrBuilderList
in 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.v2beta.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.v2beta.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.v2beta.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.v2beta.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:
hasAddMask
in 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.v2beta.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:
getAddMask
in 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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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:
getAddMaskOrBuilder
in 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:
hasAddTime
in 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:
getAddTime
in 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:
getAddTimeOrBuilder
in interfaceAddLocalInventoriesRequestOrBuilder
-
getAllowMissing
public boolean getAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2beta.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.v2beta.Product] is created. If set to false, a NOT_FOUND error is returned if the [Product][google.cloud.retail.v2beta.Product] is not found.
bool allow_missing = 6;
- Specified by:
getAllowMissing
in interfaceAddLocalInventoriesRequestOrBuilder
- Returns:
- The allowMissing.
-
setAllowMissing
public AddLocalInventoriesRequest.Builder setAllowMissing(boolean value)
If set to true, and the [Product][google.cloud.retail.v2beta.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.v2beta.Product] is created. If set to false, a NOT_FOUND error is returned if the [Product][google.cloud.retail.v2beta.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.v2beta.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.v2beta.Product] is created. If set to false, a NOT_FOUND error is returned if the [Product][google.cloud.retail.v2beta.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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddLocalInventoriesRequest.Builder>
-
mergeUnknownFields
public final AddLocalInventoriesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddLocalInventoriesRequest.Builder>
-
-