<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/dial/v1/keyapis_dial_alert_scenario_v1.proto

namespace Keyapis\Dial\V1;

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

/**
 * Запрос на запуск массового оповещения через домофоны
 *
 * Generated from protobuf message <code>keyapis.dial.v1.PostBroadcastAlertStartRequest</code>
 */
class PostBroadcastAlertStartRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Вызываемый номер.
     * # Паттерн: /^\+[1-9][0-9]{10}$/
     *
     * Generated from protobuf field <code>string to_number = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $to_number = '';
    /**
     * Вызывающий номер.
     * # Паттерн: /^\+[1-9][0-9]{10}$/
     *
     * Generated from protobuf field <code>string from_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $from_number = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $to_number
     *           Вызываемый номер.
     *           # Паттерн: /^\+[1-9][0-9]{10}$/
     *     @type string $from_number
     *           Вызывающий номер.
     *           # Паттерн: /^\+[1-9][0-9]{10}$/
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Dial\V1\KeyapisDialAlertScenarioV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Вызываемый номер.
     * # Паттерн: /^\+[1-9][0-9]{10}$/
     *
     * Generated from protobuf field <code>string to_number = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getToNumber()
    {
        return $this->to_number;
    }

    /**
     * Вызываемый номер.
     * # Паттерн: /^\+[1-9][0-9]{10}$/
     *
     * Generated from protobuf field <code>string to_number = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setToNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->to_number = $var;

        return $this;
    }

    /**
     * Вызывающий номер.
     * # Паттерн: /^\+[1-9][0-9]{10}$/
     *
     * Generated from protobuf field <code>string from_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getFromNumber()
    {
        return $this->from_number;
    }

    /**
     * Вызывающий номер.
     * # Паттерн: /^\+[1-9][0-9]{10}$/
     *
     * Generated from protobuf field <code>string from_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setFromNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->from_number = $var;

        return $this;
    }

}

