<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: deviceapis/device/v1/deviceapis_device_safe_emergency_file_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.SafeCityEmergencyFile</code>
 */
class SafeCityEmergencyFile extends \Google\Protobuf\Internal\Message
{
    /**
     * Имя файла
     *
     * Generated from protobuf field <code>string file_name = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $file_name = '';
    /**
     * Тело файла, строка в кодировке Base64.
     * Не возвращается с сервера.
     * TODO: в генерации сваггера не показывать INPUT_ONLY поля в ответах
     *
     * Generated from protobuf field <code>bytes content = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     */
    protected $content = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $file_name
     *           Имя файла
     *     @type string $content
     *           Тело файла, строка в кодировке Base64.
     *           Не возвращается с сервера.
     *           TODO: в генерации сваггера не показывать INPUT_ONLY поля в ответах
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceSafeEmergencyFileV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Имя файла
     *
     * Generated from protobuf field <code>string file_name = 1 [(.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 = 1 [(.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;
    }

    /**
     * Тело файла, строка в кодировке Base64.
     * Не возвращается с сервера.
     * TODO: в генерации сваггера не показывать INPUT_ONLY поля в ответах
     *
     * Generated from protobuf field <code>bytes content = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Тело файла, строка в кодировке Base64.
     * Не возвращается с сервера.
     * TODO: в генерации сваггера не показывать INPUT_ONLY поля в ответах
     *
     * Generated from protobuf field <code>bytes content = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setContent($var)
    {
        GPBUtil::checkString($var, False);
        $this->content = $var;

        return $this;
    }

}

