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

namespace Google\Cloud\Video\LiveStream\V1;

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

/**
 * Configuration for the input sources of a channel.
 *
 * Generated from protobuf message <code>google.cloud.video.livestream.v1.InputConfig</code>
 */
class InputConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Input switch mode. Default mode is `FAILOVER_PREFER_PRIMARY`.
     *
     * Generated from protobuf field <code>.google.cloud.video.livestream.v1.InputConfig.InputSwitchMode input_switch_mode = 1;</code>
     */
    private $input_switch_mode = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $input_switch_mode
     *           Input switch mode. Default mode is `FAILOVER_PREFER_PRIMARY`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Video\Livestream\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Input switch mode. Default mode is `FAILOVER_PREFER_PRIMARY`.
     *
     * Generated from protobuf field <code>.google.cloud.video.livestream.v1.InputConfig.InputSwitchMode input_switch_mode = 1;</code>
     * @return int
     */
    public function getInputSwitchMode()
    {
        return $this->input_switch_mode;
    }

    /**
     * Input switch mode. Default mode is `FAILOVER_PREFER_PRIMARY`.
     *
     * Generated from protobuf field <code>.google.cloud.video.livestream.v1.InputConfig.InputSwitchMode input_switch_mode = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setInputSwitchMode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Video\LiveStream\V1\InputConfig\InputSwitchMode::class);
        $this->input_switch_mode = $var;

        return $this;
    }

}

