Package com.google.cloud.retail.v2alpha
Class AddLocalInventoriesRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.AddLocalInventoriesRequest
- All Implemented Interfaces:
AddLocalInventoriesRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AddLocalInventoriesRequest
extends com.google.protobuf.GeneratedMessage
implements AddLocalInventoriesRequestOrBuilder
Request message for [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method.Protobuf type
google.cloud.retail.v2alpha.AddLocalInventoriesRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.FieldMaskIndicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2alpha.LocalInventory] to update.com.google.protobuf.FieldMaskOrBuilderIndicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2alpha.LocalInventory] to update.com.google.protobuf.TimestampThe time when the inventory updates are issued.com.google.protobuf.TimestampOrBuilderThe time when the inventory updates are issued.booleanIf set to true, and the [Product][google.cloud.retail.v2alpha.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.v2alpha.Product] is created.static AddLocalInventoriesRequeststatic final com.google.protobuf.Descriptors.DescriptorgetLocalInventories(int index) Required.intRequired.Required.getLocalInventoriesOrBuilder(int index) Required.List<? extends LocalInventoryOrBuilder>Required.com.google.protobuf.Parser<AddLocalInventoriesRequest>Required.com.google.protobuf.ByteStringRequired.intbooleanIndicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2alpha.LocalInventory] to update.booleanThe time when the inventory updates are issued.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(AddLocalInventoriesRequest prototype) protected AddLocalInventoriesRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AddLocalInventoriesRequestparseDelimitedFrom(InputStream input) static AddLocalInventoriesRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AddLocalInventoriesRequestparseFrom(byte[] data) static AddLocalInventoriesRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AddLocalInventoriesRequestparseFrom(com.google.protobuf.ByteString data) static AddLocalInventoriesRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AddLocalInventoriesRequestparseFrom(com.google.protobuf.CodedInputStream input) static AddLocalInventoriesRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AddLocalInventoriesRequestparseFrom(InputStream input) static AddLocalInventoriesRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AddLocalInventoriesRequestparseFrom(ByteBuffer data) static AddLocalInventoriesRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AddLocalInventoriesRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PRODUCT_FIELD_NUMBER
public static final int PRODUCT_FIELD_NUMBER- See Also:
-
LOCAL_INVENTORIES_FIELD_NUMBER
public static final int LOCAL_INVENTORIES_FIELD_NUMBER- See Also:
-
ADD_MASK_FIELD_NUMBER
public static final int ADD_MASK_FIELD_NUMBER- See Also:
-
ADD_TIME_FIELD_NUMBER
public static final int ADD_TIME_FIELD_NUMBER- See Also:
-
ALLOW_MISSING_FIELD_NUMBER
public static final int ALLOW_MISSING_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getProduct
Required. Full resource name of [Product][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.
-
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.v2alpha.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLocalInventoriesListin interfaceAddLocalInventoriesRequestOrBuilder
-
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.v2alpha.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLocalInventoriesOrBuilderListin 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.v2alpha.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLocalInventoriesCountin interfaceAddLocalInventoriesRequestOrBuilder
-
getLocalInventories
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.v2alpha.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLocalInventoriesin interfaceAddLocalInventoriesRequestOrBuilder
-
getLocalInventoriesOrBuilder
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.v2alpha.LocalInventory local_inventories = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLocalInventoriesOrBuilderin interfaceAddLocalInventoriesRequestOrBuilder
-
hasAddMask
public boolean hasAddMask()Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2alpha.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.v2alpha.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.
-
getAddMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getAddMaskOrBuilder()Indicates which inventory fields in the provided list of [LocalInventory][google.cloud.retail.v2alpha.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.
-
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.v2alpha.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.v2alpha.Product] is created. If set to false, a NOT_FOUND error is returned if the [Product][google.cloud.retail.v2alpha.Product] is not found.
bool allow_missing = 6;- Specified by:
getAllowMissingin interfaceAddLocalInventoriesRequestOrBuilder- Returns:
- The allowMissing.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AddLocalInventoriesRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddLocalInventoriesRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddLocalInventoriesRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddLocalInventoriesRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddLocalInventoriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddLocalInventoriesRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AddLocalInventoriesRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AddLocalInventoriesRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AddLocalInventoriesRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AddLocalInventoriesRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AddLocalInventoriesRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-