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

namespace Google\Cloud\Channel\V1;

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

/**
 * Response message for [CloudChannelService.TransferEntitlements][google.cloud.channel.v1.CloudChannelService.TransferEntitlements].
 * This will be put into the response field of google.longrunning.Operation.
 *
 * Generated from protobuf message <code>google.cloud.channel.v1.TransferEntitlementsResponse</code>
 */
class TransferEntitlementsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The entitlements that have been transferred.
     *
     * Generated from protobuf field <code>repeated .google.cloud.channel.v1.Entitlement entitlements = 1;</code>
     */
    private $entitlements;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Channel\V1\Entitlement[]|\Google\Protobuf\Internal\RepeatedField $entitlements
     *           The entitlements that have been transferred.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * The entitlements that have been transferred.
     *
     * Generated from protobuf field <code>repeated .google.cloud.channel.v1.Entitlement entitlements = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getEntitlements()
    {
        return $this->entitlements;
    }

    /**
     * The entitlements that have been transferred.
     *
     * Generated from protobuf field <code>repeated .google.cloud.channel.v1.Entitlement entitlements = 1;</code>
     * @param \Google\Cloud\Channel\V1\Entitlement[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setEntitlements($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Channel\V1\Entitlement::class);
        $this->entitlements = $arr;

        return $this;
    }

}

