<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: deviceapis/device/v1/deviceapis_device_ftp_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.PostFtpBackupRequest</code>
 */
class PostFtpBackupRequest 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 backup_type = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $backup_type = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ftp_path
     *           Имя FTP папки
     *     @type string $file_name
     *           Имя файла бекапа
     *     @type string $backup_type
     *           Тип бекапа
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceFtpV1::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 backup_type = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getBackupType()
    {
        return $this->backup_type;
    }

    /**
     * Тип бекапа
     *
     * Generated from protobuf field <code>string backup_type = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setBackupType($var)
    {
        GPBUtil::checkString($var, True);
        $this->backup_type = $var;

        return $this;
    }

}

