Retail V2 API - Class Google::Cloud::Retail::V2::SetInventoryRequest (v0.15.0)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::SetInventoryRequest.

Request message for ProductService.SetInventory method.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#allow_missing

def allow_missing() -> ::Boolean
Returns
  • (::Boolean) — If set to true, and the Product with name Product.name is not found, the inventory update will still be processed and retained for at most 1 day until the Product is created. If set to false, a NOT_FOUND error is returned if the Product is not found.

#allow_missing=

def allow_missing=(value) -> ::Boolean
Parameter
  • value (::Boolean) — If set to true, and the Product with name Product.name is not found, the inventory update will still be processed and retained for at most 1 day until the Product is created. If set to false, a NOT_FOUND error is returned if the Product is not found.
Returns
  • (::Boolean) — If set to true, and the Product with name Product.name is not found, the inventory update will still be processed and retained for at most 1 day until the Product is created. If set to false, a NOT_FOUND error is returned if the Product is not found.

#inventory

def inventory() -> ::Google::Cloud::Retail::V2::Product
Returns

#inventory=

def inventory=(value) -> ::Google::Cloud::Retail::V2::Product
Parameter
Returns

#set_mask

def set_mask() -> ::Google::Protobuf::FieldMask
Returns
  • (::Google::Protobuf::FieldMask) — Indicates which inventory fields in the provided Product to update.

    At least one field must be provided.

    If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.

#set_mask=

def set_mask=(value) -> ::Google::Protobuf::FieldMask
Parameter
  • value (::Google::Protobuf::FieldMask) — Indicates which inventory fields in the provided Product to update.

    At least one field must be provided.

    If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.

Returns
  • (::Google::Protobuf::FieldMask) — Indicates which inventory fields in the provided Product to update.

    At least one field must be provided.

    If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.

#set_time

def set_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — The time when the request is issued, used to prevent out-of-order updates on inventory fields with the last update time recorded. If not provided, the internal system time will be used.

#set_time=

def set_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • value (::Google::Protobuf::Timestamp) — The time when the request is issued, used to prevent out-of-order updates on inventory fields with the last update time recorded. If not provided, the internal system time will be used.
Returns
  • (::Google::Protobuf::Timestamp) — The time when the request is issued, used to prevent out-of-order updates on inventory fields with the last update time recorded. If not provided, the internal system time will be used.