<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/retail/v2/catalog_service.proto

namespace Google\Cloud\Retail\V2;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Request for
 * [CatalogService.RemoveCatalogAttribute][google.cloud.retail.v2.CatalogService.RemoveCatalogAttribute]
 * method.
 *
 * Generated from protobuf message <code>google.cloud.retail.v2.RemoveCatalogAttributeRequest</code>
 */
class RemoveCatalogAttributeRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Full AttributesConfig resource name. Format:
     * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
     *
     * Generated from protobuf field <code>string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $attributes_config = '';
    /**
     * Required. The attribute name key of the
     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to remove.
     *
     * Generated from protobuf field <code>string key = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $key = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $attributes_config
     *           Required. Full AttributesConfig resource name. Format:
     *           `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
     *     @type string $key
     *           Required. The attribute name key of the
     *           [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to remove.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Retail\V2\CatalogService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Full AttributesConfig resource name. Format:
     * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
     *
     * Generated from protobuf field <code>string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getAttributesConfig()
    {
        return $this->attributes_config;
    }

    /**
     * Required. Full AttributesConfig resource name. Format:
     * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
     *
     * Generated from protobuf field <code>string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setAttributesConfig($var)
    {
        GPBUtil::checkString($var, True);
        $this->attributes_config = $var;

        return $this;
    }

    /**
     * Required. The attribute name key of the
     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to remove.
     *
     * Generated from protobuf field <code>string key = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getKey()
    {
        return $this->key;
    }

    /**
     * Required. The attribute name key of the
     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to remove.
     *
     * Generated from protobuf field <code>string key = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->key = $var;

        return $this;
    }

}

