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

namespace Google\Cloud\MigrationCenter\V1;

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

/**
 * Information from Guest-level collections.
 *
 * Generated from protobuf message <code>google.cloud.migrationcenter.v1.GuestOsDetails</code>
 */
class GuestOsDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the operating system.
     *
     * Generated from protobuf field <code>string os_name = 1;</code>
     */
    protected $os_name = '';
    /**
     * What family the OS belong to, if known.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.OperatingSystemFamily family = 2;</code>
     */
    protected $family = 0;
    /**
     * The version of the operating system.
     *
     * Generated from protobuf field <code>string version = 3;</code>
     */
    protected $version = '';
    /**
     * OS and app configuration.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.GuestConfigDetails config = 4;</code>
     */
    protected $config = null;
    /**
     * Runtime information.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.GuestRuntimeDetails runtime = 5;</code>
     */
    protected $runtime = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $os_name
     *           The name of the operating system.
     *     @type int $family
     *           What family the OS belong to, if known.
     *     @type string $version
     *           The version of the operating system.
     *     @type \Google\Cloud\MigrationCenter\V1\GuestConfigDetails $config
     *           OS and app configuration.
     *     @type \Google\Cloud\MigrationCenter\V1\GuestRuntimeDetails $runtime
     *           Runtime information.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Migrationcenter\V1\Migrationcenter::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the operating system.
     *
     * Generated from protobuf field <code>string os_name = 1;</code>
     * @return string
     */
    public function getOsName()
    {
        return $this->os_name;
    }

    /**
     * The name of the operating system.
     *
     * Generated from protobuf field <code>string os_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setOsName($var)
    {
        GPBUtil::checkString($var, True);
        $this->os_name = $var;

        return $this;
    }

    /**
     * What family the OS belong to, if known.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.OperatingSystemFamily family = 2;</code>
     * @return int
     */
    public function getFamily()
    {
        return $this->family;
    }

    /**
     * What family the OS belong to, if known.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.OperatingSystemFamily family = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setFamily($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\MigrationCenter\V1\OperatingSystemFamily::class);
        $this->family = $var;

        return $this;
    }

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

    /**
     * The version of the operating system.
     *
     * 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;
    }

    /**
     * OS and app configuration.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.GuestConfigDetails config = 4;</code>
     * @return \Google\Cloud\MigrationCenter\V1\GuestConfigDetails|null
     */
    public function getConfig()
    {
        return $this->config;
    }

    public function hasConfig()
    {
        return isset($this->config);
    }

    public function clearConfig()
    {
        unset($this->config);
    }

    /**
     * OS and app configuration.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.GuestConfigDetails config = 4;</code>
     * @param \Google\Cloud\MigrationCenter\V1\GuestConfigDetails $var
     * @return $this
     */
    public function setConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\MigrationCenter\V1\GuestConfigDetails::class);
        $this->config = $var;

        return $this;
    }

    /**
     * Runtime information.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.GuestRuntimeDetails runtime = 5;</code>
     * @return \Google\Cloud\MigrationCenter\V1\GuestRuntimeDetails|null
     */
    public function getRuntime()
    {
        return $this->runtime;
    }

    public function hasRuntime()
    {
        return isset($this->runtime);
    }

    public function clearRuntime()
    {
        unset($this->runtime);
    }

    /**
     * Runtime information.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.GuestRuntimeDetails runtime = 5;</code>
     * @param \Google\Cloud\MigrationCenter\V1\GuestRuntimeDetails $var
     * @return $this
     */
    public function setRuntime($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\MigrationCenter\V1\GuestRuntimeDetails::class);
        $this->runtime = $var;

        return $this;
    }

}

