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

namespace Deviceapis\Device\V1;

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

/**
 * Запрос редактирования настроек Smart Auto Collect
 *
 * Generated from protobuf message <code>deviceapis.device.v1.EditSacRequest</code>
 */
class EditSacRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Настройки Smart Auto Collect
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Sac data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $data = null;
    /**
     * Маска полей обновления
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    protected $update_mask = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Deviceapis\Device\V1\Sac $data
     *           Настройки Smart Auto Collect
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Маска полей обновления
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceSacV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Настройки Smart Auto Collect
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Sac data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Deviceapis\Device\V1\Sac|null
     */
    public function getData()
    {
        return $this->data;
    }

    public function hasData()
    {
        return isset($this->data);
    }

    public function clearData()
    {
        unset($this->data);
    }

    /**
     * Настройки Smart Auto Collect
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Sac data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Deviceapis\Device\V1\Sac $var
     * @return $this
     */
    public function setData($var)
    {
        GPBUtil::checkMessage($var, \Deviceapis\Device\V1\Sac::class);
        $this->data = $var;

        return $this;
    }

    /**
     * Маска полей обновления
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @return \Google\Protobuf\FieldMask|null
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    public function hasUpdateMask()
    {
        return isset($this->update_mask);
    }

    public function clearUpdateMask()
    {
        unset($this->update_mask);
    }

    /**
     * Маска полей обновления
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @param \Google\Protobuf\FieldMask $var
     * @return $this
     */
    public function setUpdateMask($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
        $this->update_mask = $var;

        return $this;
    }

}

