Service Client: Google::Cloud::Retail::V2alpha::ProductService::ProductServiceClient

Client stub representing the remote ProductService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to retail.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Retail::V2alpha::ProductService - Compiled Protocol Buffers messages for google/cloud/retail/v2alpha/product_service.proto

SYNOPSIS

use Google::Cloud::Retail::V2alpha::ProductService;

my $msg = Google::Cloud::Retail::V2alpha::ProductService::CreateProductRequest->new({
    parent => $parent,
    product => $product,
    product_id => $product_id,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2alpha::ProductService::CreateProductRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/retail/v2alpha/product_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Retail::V2alpha::ProductService::CreateProductRequest

Request message for [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent catalog resource name, such as `projects/*/locations/global/catalogs/default_catalog/branches/default_branch`.

  • $msg->product() / $msg->product($value)

    Type: Message (Google::Cloud::Retail::V2alpha::Product::Product)

    Required. The [Product][google.cloud.retail.v2alpha.Product] to create.

  • $msg->product_id() / $msg->product_id($value)

    Type: String

    Required. The ID to use for the [Product][google.cloud.retail.v2alpha.Product], which will become the final component of the [Product.name][google.cloud.retail.v2alpha.Product.name].

    If the caller does not have permission to create the [Product][google.cloud.retail.v2alpha.Product], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

    This field must be unique among all [Product][google.cloud.retail.v2alpha.Product]s with the same [parent][google.cloud.retail.v2alpha.CreateProductRequest.parent]. Otherwise, an ALREADY_EXISTS error is returned.

    This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

Google::Cloud::Retail::V2alpha::ProductService::GetProductRequest

Request message for [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    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.

    If the requested [Product][google.cloud.retail.v2alpha.Product] does not exist, a NOT_FOUND error is returned.

Google::Cloud::Retail::V2alpha::ProductService::UpdateProductRequest

Request message for [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->product() / $msg->product($value)

    Type: Message (Google::Cloud::Retail::V2alpha::Product::Product)

    Required. The product to update/create.

    If the caller does not have permission to update the [Product][google.cloud.retail.v2alpha.Product], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

    If the [Product][google.cloud.retail.v2alpha.Product] to update does not exist and [allow_missing][google.cloud.retail.v2alpha.UpdateProductRequest.allow_missing] is not set, a NOT_FOUND error is returned.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated.

    If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

    The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update.

  • $msg->allow_missing() / $msg->allow_missing($value)

    Type: Bool

    If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is not found, a new [Product][google.cloud.retail.v2alpha.Product] will be created. In this situation, `update_mask` is ignored.

Google::Cloud::Retail::V2alpha::ProductService::DeleteProductRequest

Request message for [ProductService.DeleteProduct][google.cloud.retail.v2alpha.ProductService.DeleteProduct] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    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 delete the [Product][google.cloud.retail.v2alpha.Product], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

    If the [Product][google.cloud.retail.v2alpha.Product] to delete does not exist, a NOT_FOUND error is returned.

    The [Product][google.cloud.retail.v2alpha.Product] to delete can neither be a [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION] [Product][google.cloud.retail.v2alpha.Product] member nor a [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] with more than one [variants][google.cloud.retail.v2alpha.Product.Type.VARIANT]. Otherwise, an INVALID_ARGUMENT error is returned.

    All inventory information for the named [Product][google.cloud.retail.v2alpha.Product] will be deleted.

  • $msg->force() / $msg->force($value)

    Type: Bool

    This value only applies to the case when the target product is of type PRIMARY. When deleting a product of VARIANT/COLLECTION type, this value will be ignored. When set to true, the subsequent variant products will be deleted. When set to false, if the primary product has active variant products, an error will be returned.

Google::Cloud::Retail::V2alpha::ProductService::ListProductsRequest

Request message for [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent branch resource name, such as `projects/*/locations/global/catalogs/default_catalog/branches/0`. Use `default_branch` as the branch ID, to list products under the default branch.

    If the caller does not have permission to list [Product][google.cloud.retail.v2alpha.Product]s under this branch, regardless of whether or not this branch exists, a PERMISSION_DENIED error is returned.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Maximum number of [Product][google.cloud.retail.v2alpha.Product]s to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000.

    If this field is negative, an INVALID_ARGUMENT error is returned.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    A page token [ListProductsResponse.next_page_token][google.cloud.retail.v2alpha.ListProductsResponse.next_page_token], received from a previous [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts] call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts] must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.

  • $msg->filter() / $msg->filter($value)

    Type: String

    A filter to apply on the list results. Supported features:

    * List all the products under the parent branch if [filter][google.cloud.retail.v2alpha.ListProductsRequest.filter] is unset. * List [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] [Product][google.cloud.retail.v2alpha.Product]s sharing the same [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product]. For example: `primary_product_id = "some_product_id"` * List [Product][google.cloud.retail.v2alpha.Product]s bundled in a [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION] [Product][google.cloud.retail.v2alpha.Product]. For example: `collection_product_id = "some_product_id"` * List [Product][google.cloud.retail.v2alpha.Product]s with a partibular type. For example: `type = "PRIMARY"` `type = "VARIANT"` `type = "COLLECTION"`

    If the field is unrecognizable, an INVALID_ARGUMENT error is returned.

    If the specified [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] [Product][google.cloud.retail.v2alpha.Product] or [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION] [Product][google.cloud.retail.v2alpha.Product] does not exist, a NOT_FOUND error is returned.

  • $msg->read_mask() / $msg->read_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    The fields of [Product][google.cloud.retail.v2alpha.Product] to return in the responses. If not set or empty, the following fields are returned:

    * [Product.name][google.cloud.retail.v2alpha.Product.name] * [Product.id][google.cloud.retail.v2alpha.Product.id] * [Product.title][google.cloud.retail.v2alpha.Product.title] * [Product.uri][google.cloud.retail.v2alpha.Product.uri] * [Product.images][google.cloud.retail.v2alpha.Product.images] * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] * [Product.brands][google.cloud.retail.v2alpha.Product.brands]

    If "*" is provided, all fields are returned. [Product.name][google.cloud.retail.v2alpha.Product.name] is always returned no matter what mask is set.

    If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

  • $msg->require_total_size() / $msg->require_total_size($value)

    Type: Bool

    If true and [page_token][google.cloud.retail.v2alpha.ListProductsRequest.page_token] is empty, [ListProductsResponse.total_size][google.cloud.retail.v2alpha.ListProductsResponse.total_size] is set to the total count of matched items irrespective of pagination.

    Notice that setting this field to true affects the performance.

Google::Cloud::Retail::V2alpha::ProductService::ListProductsResponse

Response message for [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->products() / $msg->products($value)

    Type: Message (Google::Cloud::Retail::V2alpha::Product::Product)

    The [Product][google.cloud.retail.v2alpha.Product]s.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token that can be sent as [ListProductsRequest.page_token][google.cloud.retail.v2alpha.ListProductsRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.

  • $msg->total_size() / $msg->total_size($value)

    Type: Int32

    The total count of matched [Product][google.cloud.retail.v2alpha.Product]s irrespective of pagination. The total number of [Product][google.cloud.retail.v2alpha.Product]s returned by pagination may be less than the [total_size][google.cloud.retail.v2alpha.ListProductsResponse.total_size] that matches.

    This field is ignored if [ListProductsRequest.require_total_size][google.cloud.retail.v2alpha.ListProductsRequest.require_total_size] is not set or [ListProductsRequest.page_token][google.cloud.retail.v2alpha.ListProductsRequest.page_token] is not empty.

Google::Cloud::Retail::V2alpha::ProductService::SetInventoryRequest

Request message for [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->inventory() / $msg->inventory($value)

    Type: Message (Google::Cloud::Retail::V2alpha::Product::Product)

    Required. The inventory information to update. The allowable fields to update are:

    * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] * [Product.availability][google.cloud.retail.v2alpha.Product.availability] * [Product.available_quantity][google.cloud.retail.v2alpha.Product.available_quantity] * [Product.fulfillment_info][google.cloud.retail.v2alpha.Product.fulfillment_info] The updated inventory fields must be specified in [SetInventoryRequest.set_mask][google.cloud.retail.v2alpha.SetInventoryRequest.set_mask].

    If [SetInventoryRequest.inventory.name][google.cloud.retail.v2alpha.Product.name] is empty or invalid, an INVALID_ARGUMENT error is returned.

    If the caller does not have permission to update the [Product][google.cloud.retail.v2alpha.Product] named in [Product.name][google.cloud.retail.v2alpha.Product.name], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

    If the [Product][google.cloud.retail.v2alpha.Product] to update does not have existing inventory information, the provided inventory information will be inserted.

    If the [Product][google.cloud.retail.v2alpha.Product] to update has existing inventory information, the provided inventory information will be merged while respecting the last update time for each inventory field, using the provided or default value for [SetInventoryRequest.set_time][google.cloud.retail.v2alpha.SetInventoryRequest.set_time].

    The caller can replace place IDs for a subset of fulfillment types in the following ways:

    * Adds "fulfillment_info" in [SetInventoryRequest.set_mask][google.cloud.retail.v2alpha.SetInventoryRequest.set_mask] * Specifies only the desired fulfillment types and corresponding place IDs to update in [SetInventoryRequest.inventory.fulfillment_info][google.cloud.retail.v2alpha.Product.fulfillment_info]

    The caller can clear all place IDs from a subset of fulfillment types in the following ways:

    * Adds "fulfillment_info" in [SetInventoryRequest.set_mask][google.cloud.retail.v2alpha.SetInventoryRequest.set_mask] * Specifies only the desired fulfillment types to clear in [SetInventoryRequest.inventory.fulfillment_info][google.cloud.retail.v2alpha.Product.fulfillment_info] * Checks that only the desired fulfillment info types have empty [SetInventoryRequest.inventory.fulfillment_info.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]

    The last update time is recorded for the following inventory fields: * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] * [Product.availability][google.cloud.retail.v2alpha.Product.availability] * [Product.available_quantity][google.cloud.retail.v2alpha.Product.available_quantity] * [Product.fulfillment_info][google.cloud.retail.v2alpha.Product.fulfillment_info]

    If a full overwrite of inventory information while ignoring timestamps is needed, [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] should be invoked instead.

  • $msg->set_mask() / $msg->set_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Indicates which inventory fields in the provided [Product][google.cloud.retail.v2alpha.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.

  • $msg->set_time() / $msg->set_time($value)

    Type: Message (Google::Protobuf::Timestamp::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.

  • $msg->allow_missing() / $msg->allow_missing($value)

    Type: Bool

    If set to true, and the [Product][google.cloud.retail.v2alpha.Product] with name [Product.name][google.cloud.retail.v2alpha.Product.name] is not found, the inventory update will still be processed and retained for at most 1 day until 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.

Google::Cloud::Retail::V2alpha::ProductService::SetInventoryMetadata

Metadata related to the progress of the SetInventory operation. Currently empty because there is no meaningful metadata populated from the [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory] method.

Inherits from Protobuf::Message.

Google::Cloud::Retail::V2alpha::ProductService::SetInventoryResponse

Response of the SetInventoryRequest. Currently empty because there is no meaningful response populated from the [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory] method.

Inherits from Protobuf::Message.

Google::Cloud::Retail::V2alpha::ProductService::AddFulfillmentPlacesRequest

Request message for [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->product() / $msg->product($value)

    Type: String

    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.

  • $msg->type() / $msg->type($value)

    Type: String

    Required. The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types.

    Supported values:

    * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5"

    If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.

    This field directly corresponds to [Product.fulfillment_info.type][google.cloud.retail.v2alpha.FulfillmentInfo.type].

  • $msg->place_ids() / $msg->place_ids($value)

    Type: String

    Required. The IDs for this [type][google.cloud.retail.v2alpha.AddFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery" to be added for this [type][google.cloud.retail.v2alpha.AddFulfillmentPlacesRequest.type]. Duplicate IDs will be automatically ignored.

    At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.

    If the total number of place IDs exceeds 2000 for this [type][google.cloud.retail.v2alpha.AddFulfillmentPlacesRequest.type] after adding, then the update will be rejected.

  • $msg->add_time() / $msg->add_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used.

  • $msg->allow_missing() / $msg->allow_missing($value)

    Type: Bool

    If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is not found, the fulfillment information 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.

Google::Cloud::Retail::V2alpha::ProductService::AddFulfillmentPlacesMetadata

Metadata related to the progress of the AddFulfillmentPlaces operation. Currently empty because there is no meaningful metadata populated from the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] method.

Inherits from Protobuf::Message.

Google::Cloud::Retail::V2alpha::ProductService::AddFulfillmentPlacesResponse

Response of the AddFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] method.

Inherits from Protobuf::Message.

Google::Cloud::Retail::V2alpha::ProductService::AddLocalInventoriesRequest

Request message for [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->product() / $msg->product($value)

    Type: String

    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.

  • $msg->local_inventories() / $msg->local_inventories($value)

    Type: Message (Google::Cloud::Retail::V2alpha::Common::LocalInventory)

    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.

  • $msg->add_mask() / $msg->add_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    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.

  • $msg->add_time() / $msg->add_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    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.

  • $msg->allow_missing() / $msg->allow_missing($value)

    Type: Bool

    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.

Google::Cloud::Retail::V2alpha::ProductService::AddLocalInventoriesMetadata

Metadata related to the progress of the AddLocalInventories operation. Currently empty because there is no meaningful metadata populated from the [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method.

Inherits from Protobuf::Message.

Google::Cloud::Retail::V2alpha::ProductService::AddLocalInventoriesResponse

Response of the [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] API. Currently empty because there is no meaningful response populated from the [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method.

Inherits from Protobuf::Message.

Google::Cloud::Retail::V2alpha::ProductService::RemoveLocalInventoriesRequest

Request message for [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->product() / $msg->product($value)

    Type: String

    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.

  • $msg->place_ids() / $msg->place_ids($value)

    Type: String

    Required. A list of place IDs to have their inventory deleted. At most 3000 place IDs are allowed per request.

  • $msg->remove_time() / $msg->remove_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time when the inventory deletions are issued. Used to prevent out-of-order updates and deletions on local inventory fields. If not provided, the internal system time will be used.

  • $msg->allow_missing() / $msg->allow_missing($value)

    Type: Bool

    If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is not found, the local inventory removal request 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.

Google::Cloud::Retail::V2alpha::ProductService::RemoveLocalInventoriesMetadata

Metadata related to the progress of the RemoveLocalInventories operation. Currently empty because there is no meaningful metadata populated from the [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] method.

Inherits from Protobuf::Message.

Google::Cloud::Retail::V2alpha::ProductService::RemoveLocalInventoriesResponse

Response of the [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] API. Currently empty because there is no meaningful response populated from the [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] method.

Inherits from Protobuf::Message.

Google::Cloud::Retail::V2alpha::ProductService::RemoveFulfillmentPlacesRequest

Request message for [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->product() / $msg->product($value)

    Type: String

    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.

  • $msg->type() / $msg->type($value)

    Type: String

    Required. The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types.

    Supported values:

    * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5"

    If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.

    This field directly corresponds to [Product.fulfillment_info.type][google.cloud.retail.v2alpha.FulfillmentInfo.type].

  • $msg->place_ids() / $msg->place_ids($value)

    Type: String

    Required. The IDs for this [type][google.cloud.retail.v2alpha.RemoveFulfillmentPlacesRequest.type], such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery", to be removed for this [type][google.cloud.retail.v2alpha.RemoveFulfillmentPlacesRequest.type].

    At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.

  • $msg->remove_time() / $msg->remove_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used.

  • $msg->allow_missing() / $msg->allow_missing($value)

    Type: Bool

    If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is not found, the fulfillment information 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.

Google::Cloud::Retail::V2alpha::ProductService::RemoveFulfillmentPlacesMetadata

Metadata related to the progress of the RemoveFulfillmentPlaces operation. Currently empty because there is no meaningful metadata populated from the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] method.

Inherits from Protobuf::Message.

Google::Cloud::Retail::V2alpha::ProductService::RemoveFulfillmentPlacesResponse

Response of the RemoveFulfillmentPlacesRequest. Currently empty because there is no meaningful response populated from the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] method.

Inherits from Protobuf::Message.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Retail::V2alpha::ProductService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.