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

namespace Grafeas\V1;

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

/**
 * License information.
 *
 * Generated from protobuf message <code>grafeas.v1.License</code>
 */
class License extends \Google\Protobuf\Internal\Message
{
    /**
     * Often a single license can be used to represent the licensing terms.
     * Sometimes it is necessary to include a choice of one or more licenses
     * or some combination of license identifiers.
     * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT",
     * "GPL-2.0-or-later WITH Bison-exception-2.2".
     *
     * Generated from protobuf field <code>string expression = 1;</code>
     */
    protected $expression = '';
    /**
     * Comments
     *
     * Generated from protobuf field <code>string comments = 2;</code>
     */
    protected $comments = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $expression
     *           Often a single license can be used to represent the licensing terms.
     *           Sometimes it is necessary to include a choice of one or more licenses
     *           or some combination of license identifiers.
     *           Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT",
     *           "GPL-2.0-or-later WITH Bison-exception-2.2".
     *     @type string $comments
     *           Comments
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * Often a single license can be used to represent the licensing terms.
     * Sometimes it is necessary to include a choice of one or more licenses
     * or some combination of license identifiers.
     * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT",
     * "GPL-2.0-or-later WITH Bison-exception-2.2".
     *
     * Generated from protobuf field <code>string expression = 1;</code>
     * @return string
     */
    public function getExpression()
    {
        return $this->expression;
    }

    /**
     * Often a single license can be used to represent the licensing terms.
     * Sometimes it is necessary to include a choice of one or more licenses
     * or some combination of license identifiers.
     * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT",
     * "GPL-2.0-or-later WITH Bison-exception-2.2".
     *
     * Generated from protobuf field <code>string expression = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setExpression($var)
    {
        GPBUtil::checkString($var, True);
        $this->expression = $var;

        return $this;
    }

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

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

        return $this;
    }

}

