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

namespace Google\Cloud\VMMigration\V1;

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

/**
 * AppliedLicense holds the license data returned by adaptation module report.
 *
 * Generated from protobuf message <code>google.cloud.vmmigration.v1.AppliedLicense</code>
 */
class AppliedLicense extends \Google\Protobuf\Internal\Message
{
    /**
     * The license type that was used in OS adaptation.
     *
     * Generated from protobuf field <code>.google.cloud.vmmigration.v1.AppliedLicense.Type type = 1;</code>
     */
    private $type = 0;
    /**
     * The OS license returned from the adaptation module's report.
     *
     * Generated from protobuf field <code>string os_license = 2;</code>
     */
    private $os_license = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $type
     *           The license type that was used in OS adaptation.
     *     @type string $os_license
     *           The OS license returned from the adaptation module's report.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Vmmigration\V1\Vmmigration::initOnce();
        parent::__construct($data);
    }

    /**
     * The license type that was used in OS adaptation.
     *
     * Generated from protobuf field <code>.google.cloud.vmmigration.v1.AppliedLicense.Type type = 1;</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * The license type that was used in OS adaptation.
     *
     * Generated from protobuf field <code>.google.cloud.vmmigration.v1.AppliedLicense.Type type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\VMMigration\V1\AppliedLicense\Type::class);
        $this->type = $var;

        return $this;
    }

    /**
     * The OS license returned from the adaptation module's report.
     *
     * Generated from protobuf field <code>string os_license = 2;</code>
     * @return string
     */
    public function getOsLicense()
    {
        return $this->os_license;
    }

    /**
     * The OS license returned from the adaptation module's report.
     *
     * Generated from protobuf field <code>string os_license = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setOsLicense($var)
    {
        GPBUtil::checkString($var, True);
        $this->os_license = $var;

        return $this;
    }

}

