<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: presentation.proto

namespace Rv\Data\Presentation;

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

/**
 * Generated from protobuf message <code>rv.data.Presentation.MultiTracksLicensing</code>
 */
class MultiTracksLicensing extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 song_identifier = 1;</code>
     */
    protected $song_identifier = 0;
    /**
     * Generated from protobuf field <code>string customer_identifier = 2;</code>
     */
    protected $customer_identifier = '';
    /**
     * Generated from protobuf field <code>.rv.data.Timestamp expiration_date = 3;</code>
     */
    protected $expiration_date = null;
    /**
     * Generated from protobuf field <code>.rv.data.Timestamp license_expiration = 4;</code>
     */
    protected $license_expiration = null;
    /**
     * Generated from protobuf field <code>.rv.data.Presentation.MultiTracksLicensing.Subscription subscription = 5;</code>
     */
    protected $subscription = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $song_identifier
     *     @type string $customer_identifier
     *     @type \Rv\Data\Timestamp $expiration_date
     *     @type \Rv\Data\Timestamp $license_expiration
     *     @type int $subscription
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Presentation::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int64 song_identifier = 1;</code>
     * @return int|string
     */
    public function getSongIdentifier()
    {
        return $this->song_identifier;
    }

    /**
     * Generated from protobuf field <code>int64 song_identifier = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setSongIdentifier($var)
    {
        GPBUtil::checkInt64($var);
        $this->song_identifier = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string customer_identifier = 2;</code>
     * @return string
     */
    public function getCustomerIdentifier()
    {
        return $this->customer_identifier;
    }

    /**
     * Generated from protobuf field <code>string customer_identifier = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCustomerIdentifier($var)
    {
        GPBUtil::checkString($var, True);
        $this->customer_identifier = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Timestamp expiration_date = 3;</code>
     * @return \Rv\Data\Timestamp|null
     */
    public function getExpirationDate()
    {
        return $this->expiration_date;
    }

    public function hasExpirationDate()
    {
        return isset($this->expiration_date);
    }

    public function clearExpirationDate()
    {
        unset($this->expiration_date);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Timestamp expiration_date = 3;</code>
     * @param \Rv\Data\Timestamp $var
     * @return $this
     */
    public function setExpirationDate($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Timestamp::class);
        $this->expiration_date = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Timestamp license_expiration = 4;</code>
     * @return \Rv\Data\Timestamp|null
     */
    public function getLicenseExpiration()
    {
        return $this->license_expiration;
    }

    public function hasLicenseExpiration()
    {
        return isset($this->license_expiration);
    }

    public function clearLicenseExpiration()
    {
        unset($this->license_expiration);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Timestamp license_expiration = 4;</code>
     * @param \Rv\Data\Timestamp $var
     * @return $this
     */
    public function setLicenseExpiration($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Timestamp::class);
        $this->license_expiration = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Presentation.MultiTracksLicensing.Subscription subscription = 5;</code>
     * @return int
     */
    public function getSubscription()
    {
        return $this->subscription;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Presentation.MultiTracksLicensing.Subscription subscription = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setSubscription($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Presentation\MultiTracksLicensing\Subscription::class);
        $this->subscription = $var;

        return $this;
    }

}

