Retail V2 API - Class Google::Cloud::Retail::V2::CreateProductRequest (v2.6.1)

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
Returns
  • (::String) — Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog/branches/default_branch.

#parent=

defparent=(value)->::String
Parameter
  • value (::String) — Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog/branches/default_branch.
Returns
  • (::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
Returns

#product=

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

#product_id

defproduct_id()->::String
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.