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

namespace Registration\Core;

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

/**
 * Generated from protobuf message <code>registration.core.LicensingInfo</code>
 */
class LicensingInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 available_copies = 1;</code>
     */
    protected $available_copies = 0;
    /**
     * Generated from protobuf field <code>int32 total_copies = 2;</code>
     */
    protected $total_copies = 0;
    /**
     * Generated from protobuf field <code>bool is_active_locally = 3;</code>
     */
    protected $is_active_locally = false;
    /**
     * Generated from protobuf field <code>repeated .registration.core.ActiveCopy other_active_copies = 4;</code>
     */
    private $other_active_copies;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $available_copies
     *     @type int $total_copies
     *     @type bool $is_active_locally
     *     @type array<\Registration\Core\ActiveCopy>|\Google\Protobuf\Internal\RepeatedField $other_active_copies
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Registration::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 available_copies = 1;</code>
     * @return int
     */
    public function getAvailableCopies()
    {
        return $this->available_copies;
    }

    /**
     * Generated from protobuf field <code>int32 available_copies = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setAvailableCopies($var)
    {
        GPBUtil::checkInt32($var);
        $this->available_copies = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 total_copies = 2;</code>
     * @return int
     */
    public function getTotalCopies()
    {
        return $this->total_copies;
    }

    /**
     * Generated from protobuf field <code>int32 total_copies = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setTotalCopies($var)
    {
        GPBUtil::checkInt32($var);
        $this->total_copies = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_active_locally = 3;</code>
     * @return bool
     */
    public function getIsActiveLocally()
    {
        return $this->is_active_locally;
    }

    /**
     * Generated from protobuf field <code>bool is_active_locally = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsActiveLocally($var)
    {
        GPBUtil::checkBool($var);
        $this->is_active_locally = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .registration.core.ActiveCopy other_active_copies = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getOtherActiveCopies()
    {
        return $this->other_active_copies;
    }

    /**
     * Generated from protobuf field <code>repeated .registration.core.ActiveCopy other_active_copies = 4;</code>
     * @param array<\Registration\Core\ActiveCopy>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setOtherActiveCopies($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Registration\Core\ActiveCopy::class);
        $this->other_active_copies = $arr;

        return $this;
    }

}

