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

namespace Google\Cloud\OsConfig\V1\Inventory;

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

/**
 * Information related to the a standard versioned package.  This includes
 * package info for APT, Yum, Zypper, and Googet package managers.
 *
 * Generated from protobuf message <code>google.cloud.osconfig.v1.Inventory.VersionedPackage</code>
 */
class VersionedPackage extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the package.
     *
     * Generated from protobuf field <code>string package_name = 4;</code>
     */
    private $package_name = '';
    /**
     * The system architecture this package is intended for.
     *
     * Generated from protobuf field <code>string architecture = 2;</code>
     */
    private $architecture = '';
    /**
     * The version of the package.
     *
     * Generated from protobuf field <code>string version = 3;</code>
     */
    private $version = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $package_name
     *           The name of the package.
     *     @type string $architecture
     *           The system architecture this package is intended for.
     *     @type string $version
     *           The version of the package.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Osconfig\V1\Inventory::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the package.
     *
     * Generated from protobuf field <code>string package_name = 4;</code>
     * @return string
     */
    public function getPackageName()
    {
        return $this->package_name;
    }

    /**
     * The name of the package.
     *
     * Generated from protobuf field <code>string package_name = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setPackageName($var)
    {
        GPBUtil::checkString($var, True);
        $this->package_name = $var;

        return $this;
    }

    /**
     * The system architecture this package is intended for.
     *
     * Generated from protobuf field <code>string architecture = 2;</code>
     * @return string
     */
    public function getArchitecture()
    {
        return $this->architecture;
    }

    /**
     * The system architecture this package is intended for.
     *
     * Generated from protobuf field <code>string architecture = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setArchitecture($var)
    {
        GPBUtil::checkString($var, True);
        $this->architecture = $var;

        return $this;
    }

    /**
     * The version of the package.
     *
     * Generated from protobuf field <code>string version = 3;</code>
     * @return string
     */
    public function getVersion()
    {
        return $this->version;
    }

    /**
     * The version of the package.
     *
     * Generated from protobuf field <code>string version = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->version = $var;

        return $this;
    }

}


