<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/channel/v1/entitlements.proto

namespace Google\Cloud\Channel\V1;

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

/**
 * Association links that an entitlement has to other entitlements.
 *
 * Generated from protobuf message <code>google.cloud.channel.v1.AssociationInfo</code>
 */
class AssociationInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the base entitlement, for which this entitlement is an add-on.
     *
     * Generated from protobuf field <code>string base_entitlement = 1 [(.google.api.resource_reference) = {</code>
     */
    protected $base_entitlement = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $base_entitlement
     *           The name of the base entitlement, for which this entitlement is an add-on.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Channel\V1\Entitlements::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the base entitlement, for which this entitlement is an add-on.
     *
     * Generated from protobuf field <code>string base_entitlement = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getBaseEntitlement()
    {
        return $this->base_entitlement;
    }

    /**
     * The name of the base entitlement, for which this entitlement is an add-on.
     *
     * Generated from protobuf field <code>string base_entitlement = 1 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setBaseEntitlement($var)
    {
        GPBUtil::checkString($var, True);
        $this->base_entitlement = $var;

        return $this;
    }

}

