public final class AddLocalInventoriesRequest extends com.google.protobuf.GeneratedMessageV3 implements AddLocalInventoriesRequestOrBuilder
Request message for [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] method.Protobuf type
google.cloud.retail.v2.AddLocalInventoriesRequest| Modifier and Type | Class and Description |
|---|---|
static class |
AddLocalInventoriesRequest.Builder
Request message for
[ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories]
method.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADD_MASK_FIELD_NUMBER |
static int |
ADD_TIME_FIELD_NUMBER |
static int |
ALLOW_MISSING_FIELD_NUMBER |
static int |
LOCAL_INVENTORIES_FIELD_NUMBER |
static int |
PRODUCT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.FieldMask |
getAddMask()
Indicates which inventory fields in the provided list of
[LocalInventory][google.cloud.retail.v2.LocalInventory] to update.
|
com.google.protobuf.FieldMaskOrBuilder |
getAddMaskOrBuilder()
Indicates which inventory fields in the provided list of
[LocalInventory][google.cloud.retail.v2.LocalInventory] to update.
|
com.google.protobuf.Timestamp |
getAddTime()
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.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.
|
static AddLocalInventoriesRequest |
getDefaultInstance() |
AddLocalInventoriesRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
LocalInventory |
getLocalInventories(int index)
Required.
|
int |
getLocalInventoriesCount()
Required.
|
List<LocalInventory> |
getLocalInventoriesList()
Required.
|
LocalInventoryOrBuilder |
getLocalInventoriesOrBuilder(int index)
Required.
|
List<? extends LocalInventoryOrBuilder> |
getLocalInventoriesOrBuilderList()
Required.
|
com.google.protobuf.Parser<AddLocalInventoriesRequest> |
getParserForType() |
String |
getProduct()
Required.
|
com.google.protobuf.ByteString |
getProductBytes()
Required.
|
int |
getSerializedSize() |
boolean |
hasAddMask()
Indicates which inventory fields in the provided list of
[LocalInventory][google.cloud.retail.v2.LocalInventory] to update.
|
boolean |
hasAddTime()
The time when the inventory updates are issued.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AddLocalInventoriesRequest.Builder |
newBuilder() |
static AddLocalInventoriesRequest.Builder |
newBuilder(AddLocalInventoriesRequest prototype) |
AddLocalInventoriesRequest.Builder |
newBuilderForType() |
protected AddLocalInventoriesRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AddLocalInventoriesRequest |
parseDelimitedFrom(InputStream input) |
static AddLocalInventoriesRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AddLocalInventoriesRequest |
parseFrom(byte[] data) |
static AddLocalInventoriesRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AddLocalInventoriesRequest |
parseFrom(ByteBuffer data) |
static AddLocalInventoriesRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AddLocalInventoriesRequest |
parseFrom(com.google.protobuf.ByteString data) |
static AddLocalInventoriesRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AddLocalInventoriesRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AddLocalInventoriesRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AddLocalInventoriesRequest |
parseFrom(InputStream input) |
static AddLocalInventoriesRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AddLocalInventoriesRequest> |
parser() |
AddLocalInventoriesRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PRODUCT_FIELD_NUMBER
public static final int LOCAL_INVENTORIES_FIELD_NUMBER
public static final int ADD_MASK_FIELD_NUMBER
public static final int ADD_TIME_FIELD_NUMBER
public static final int ALLOW_MISSING_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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) = { ... }
getProduct in interface AddLocalInventoriesRequestOrBuilderpublic 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) = { ... }
getProductBytes in interface AddLocalInventoriesRequestOrBuilderpublic 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];
getLocalInventoriesList in interface AddLocalInventoriesRequestOrBuilderpublic 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];
getLocalInventoriesOrBuilderList in interface AddLocalInventoriesRequestOrBuilderpublic 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];
getLocalInventoriesCount in interface AddLocalInventoriesRequestOrBuilderpublic 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];
getLocalInventories in interface AddLocalInventoriesRequestOrBuilderpublic 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];
getLocalInventoriesOrBuilder in interface AddLocalInventoriesRequestOrBuilderpublic 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;hasAddMask in interface AddLocalInventoriesRequestOrBuilderpublic 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;getAddMask in interface AddLocalInventoriesRequestOrBuilderpublic 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;getAddMaskOrBuilder in interface AddLocalInventoriesRequestOrBuilderpublic 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;hasAddTime in interface AddLocalInventoriesRequestOrBuilderpublic 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;getAddTime in interface AddLocalInventoriesRequestOrBuilderpublic 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;getAddTimeOrBuilder in interface AddLocalInventoriesRequestOrBuilderpublic 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;getAllowMissing in interface AddLocalInventoriesRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AddLocalInventoriesRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddLocalInventoriesRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddLocalInventoriesRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddLocalInventoriesRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddLocalInventoriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddLocalInventoriesRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddLocalInventoriesRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static AddLocalInventoriesRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AddLocalInventoriesRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AddLocalInventoriesRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AddLocalInventoriesRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AddLocalInventoriesRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AddLocalInventoriesRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AddLocalInventoriesRequest.Builder newBuilder()
public static AddLocalInventoriesRequest.Builder newBuilder(AddLocalInventoriesRequest prototype)
public AddLocalInventoriesRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AddLocalInventoriesRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AddLocalInventoriesRequest getDefaultInstance()
public static com.google.protobuf.Parser<AddLocalInventoriesRequest> parser()
public com.google.protobuf.Parser<AddLocalInventoriesRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AddLocalInventoriesRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.