Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::CreateProductRequest.
Request message for [CreateProduct][] method.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#parent
def parent() -> ::String
-
(::String) — Required. The parent catalog resource name, such as
projects/*/locations/global/catalogs/default_catalog/branches/default_branch
.
#parent=
def parent=(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
def product() -> ::Google::Cloud::Retail::V2::Product
- (::Google::Cloud::Retail::V2::Product) — Required. The Product to create.
#product=
def product=(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
def product_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 Products 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=
def product_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 Products 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 Products 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.