<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: deviceapis/device/v1/deviceapis_device_update_v1.proto

namespace Deviceapis\Device\V1;

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

/**
 * Запрос скачивания обновления
 *
 * Generated from protobuf message <code>deviceapis.device.v1.PostUpdateDownloadRequest</code>
 */
class PostUpdateDownloadRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Имя FTP папки
     *
     * Generated from protobuf field <code>string ftp_path = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $ftp_path = '';
    /**
     * Имя файла обновления
     *
     * Generated from protobuf field <code>string file_name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $file_name = '';
    /**
     * Режим обновления
     *
     * Generated from protobuf field <code>string update_mode = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $update_mode = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ftp_path
     *           Имя FTP папки
     *     @type string $file_name
     *           Имя файла обновления
     *     @type string $update_mode
     *           Режим обновления
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceUpdateV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Имя FTP папки
     *
     * Generated from protobuf field <code>string ftp_path = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getFtpPath()
    {
        return $this->ftp_path;
    }

    /**
     * Имя FTP папки
     *
     * Generated from protobuf field <code>string ftp_path = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setFtpPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->ftp_path = $var;

        return $this;
    }

    /**
     * Имя файла обновления
     *
     * Generated from protobuf field <code>string file_name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getFileName()
    {
        return $this->file_name;
    }

    /**
     * Имя файла обновления
     *
     * Generated from protobuf field <code>string file_name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setFileName($var)
    {
        GPBUtil::checkString($var, True);
        $this->file_name = $var;

        return $this;
    }

    /**
     * Режим обновления
     *
     * Generated from protobuf field <code>string update_mode = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getUpdateMode()
    {
        return $this->update_mode;
    }

    /**
     * Режим обновления
     *
     * Generated from protobuf field <code>string update_mode = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setUpdateMode($var)
    {
        GPBUtil::checkString($var, True);
        $this->update_mode = $var;

        return $this;
    }

}

