Retail V2 API - Class Google::Cloud::Retail::V2::CreateProductRequest (v2.6.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::CreateProductRequest.
Request message for ProductService.CreateProduct method.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#parent
defparent()->::String-
(::String) — Required. The parent catalog resource name, such as
projects/*/locations/global/catalogs/default_catalog/branches/default_branch.
#parent=
defparent=(value)->::String-
value (::String) — Required. The parent catalog resource name, such as
projects/*/locations/global/catalogs/default_catalog/branches/default_branch.
-
(::String) — Required. The parent catalog resource name, such as
projects/*/locations/global/catalogs/default_catalog/branches/default_branch.
#product
defproduct()->::Google::Cloud::Retail::V2::Product- (::Google::Cloud::Retail::V2::Product) — Required. The Product to create.
#product=
defproduct=(value)->::Google::Cloud::Retail::V2::Product- value (::Google::Cloud::Retail::V2::Product) — Required. The Product to create.
- (::Google::Cloud::Retail::V2::Product) — Required. The Product to create.
#product_id
defproduct_id()->::String-
(::String) — Required. The ID to use for the Product ,
which will become the final component of the
Product.name .
If the caller does not have permission to create the Product , regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
This field must be unique among all Product s with the same 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.
#product_id=
defproduct_id=(value)->::String-
value (::String) — Required. The ID to use for the Product ,
which will become the final component of the
Product.name .
If the caller does not have permission to create the Product , regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
This field must be unique among all Product s with the same 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.
-
(::String) — Required. The ID to use for the Product ,
which will become the final component of the
Product.name .
If the caller does not have permission to create the Product , regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
This field must be unique among all Product s with the same 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.