<?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;

/**
 * SKU that you can purchase. This is used in ListPurchasableSku API
 * response.
 *
 * Generated from protobuf message <code>google.cloud.channel.v1.PurchasableSku</code>
 */
class PurchasableSku extends \Google\Protobuf\Internal\Message
{
    /**
     * SKU
     *
     * Generated from protobuf field <code>.google.cloud.channel.v1.Sku sku = 1;</code>
     */
    private $sku = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Channel\V1\Sku $sku
     *           SKU
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * SKU
     *
     * Generated from protobuf field <code>.google.cloud.channel.v1.Sku sku = 1;</code>
     * @return \Google\Cloud\Channel\V1\Sku|null
     */
    public function getSku()
    {
        return $this->sku;
    }

    public function hasSku()
    {
        return isset($this->sku);
    }

    public function clearSku()
    {
        unset($this->sku);
    }

    /**
     * SKU
     *
     * Generated from protobuf field <code>.google.cloud.channel.v1.Sku sku = 1;</code>
     * @param \Google\Cloud\Channel\V1\Sku $var
     * @return $this
     */
    public function setSku($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Sku::class);
        $this->sku = $var;

        return $this;
    }

}

