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

namespace OS\PB;

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

/**
 * Generated from protobuf message <code>OS.PB.OutputConfig</code>
 */
class OutputConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The default duration that an output will be active for if 0 is used in the action.     
     *
     * Generated from protobuf field <code>uint32 ActiveMs = 1;</code>
     */
    protected $ActiveMs = 0;
    /**
     * Invert output logic:
     *
     * Generated from protobuf field <code>.OS.PB.Toggle Inverted = 2;</code>
     */
    protected $Inverted = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $ActiveMs
     *           The default duration that an output will be active for if 0 is used in the action.     
     *     @type int $Inverted
     *           Invert output logic:
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Output::initOnce();
        parent::__construct($data);
    }

    /**
     * The default duration that an output will be active for if 0 is used in the action.     
     *
     * Generated from protobuf field <code>uint32 ActiveMs = 1;</code>
     * @return int
     */
    public function getActiveMs()
    {
        return $this->ActiveMs;
    }

    /**
     * The default duration that an output will be active for if 0 is used in the action.     
     *
     * Generated from protobuf field <code>uint32 ActiveMs = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setActiveMs($var)
    {
        GPBUtil::checkUint32($var);
        $this->ActiveMs = $var;

        return $this;
    }

    /**
     * Invert output logic:
     *
     * Generated from protobuf field <code>.OS.PB.Toggle Inverted = 2;</code>
     * @return int
     */
    public function getInverted()
    {
        return $this->Inverted;
    }

    /**
     * Invert output logic:
     *
     * Generated from protobuf field <code>.OS.PB.Toggle Inverted = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setInverted($var)
    {
        GPBUtil::checkEnum($var, \OS\PB\Toggle::class);
        $this->Inverted = $var;

        return $this;
    }

}

