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

namespace Google\Cloud\Video\LiveStream\V1\InputAttachment;

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

/**
 * Configurations to follow when automatic failover happens.
 *
 * Generated from protobuf message <code>google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover</code>
 */
class AutomaticFailover extends \Google\Protobuf\Internal\Message
{
    /**
     * The [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s of inputs to failover to when this input is
     * disconnected. Currently, only up to one backup input is supported.
     *
     * Generated from protobuf field <code>repeated string input_keys = 1;</code>
     */
    private $input_keys;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $input_keys
     *           The [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s of inputs to failover to when this input is
     *           disconnected. Currently, only up to one backup input is supported.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Video\Livestream\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * The [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s of inputs to failover to when this input is
     * disconnected. Currently, only up to one backup input is supported.
     *
     * Generated from protobuf field <code>repeated string input_keys = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getInputKeys()
    {
        return $this->input_keys;
    }

    /**
     * The [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]s of inputs to failover to when this input is
     * disconnected. Currently, only up to one backup input is supported.
     *
     * Generated from protobuf field <code>repeated string input_keys = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setInputKeys($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->input_keys = $arr;

        return $this;
    }

}


