<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/admanager/v1/cms_metadata_key_messages.proto

namespace Google\Ads\AdManager\V1;

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

/**
 * Key associated with a piece of content from a publisher's CMS.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.CmsMetadataKey</code>
 */
class CmsMetadataKey extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The resource name of the `CmsMetadataKey`.
     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * Required. The key of a key-value pair.
     *
     * Generated from protobuf field <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $display_name = '';
    /**
     * Output only. The status of this CMS metadata key.
     *
     * Generated from protobuf field <code>.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $status = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The resource name of the `CmsMetadataKey`.
     *           Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
     *     @type string $display_name
     *           Required. The key of a key-value pair.
     *     @type int $status
     *           Output only. The status of this CMS metadata key.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\CmsMetadataKeyMessages::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The resource name of the `CmsMetadataKey`.
     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. The resource name of the `CmsMetadataKey`.
     * Format: `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Required. The key of a key-value pair.
     *
     * Generated from protobuf field <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Required. The key of a key-value pair.
     *
     * Generated from protobuf field <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * Output only. The status of this CMS metadata key.
     *
     * Generated from protobuf field <code>.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Output only. The status of this CMS metadata key.
     *
     * Generated from protobuf field <code>.google.ads.admanager.v1.CmsMetadataKeyStatusEnum.CmsMetadataKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CmsMetadataKeyStatusEnum\CmsMetadataKeyStatus::class);
        $this->status = $var;

        return $this;
    }

}

