Retail V2 API - Class Google::Cloud::Retail::V2::CreateProductRequest (v0.18.2)

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

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

#parent=

def parent=(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

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

#product=

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

#product_id

def product_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 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
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 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.

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 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.