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

namespace Deviceapis\Device\V1;

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

/**
 * Ответ на запрос получения настроек Face Recognition
 *
 * Generated from protobuf message <code>deviceapis.device.v1.GetFacerecResponse</code>
 */
class GetFacerecResponse extends \Google\Protobuf\Internal\Message
{
    protected $type;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Deviceapis\Device\V1\Facerec $data
     *           Настройки Face Recognition
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceFrV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Настройки Face Recognition
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Facerec data = 1;</code>
     * @return \Deviceapis\Device\V1\Facerec|null
     */
    public function getData()
    {
        return $this->readOneof(1);
    }

    public function hasData()
    {
        return $this->hasOneof(1);
    }

    /**
     * Настройки Face Recognition
     *
     * Generated from protobuf field <code>.deviceapis.device.v1.Facerec data = 1;</code>
     * @param \Deviceapis\Device\V1\Facerec $var
     * @return $this
     */
    public function setData($var)
    {
        GPBUtil::checkMessage($var, \Deviceapis\Device\V1\Facerec::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getType()
    {
        return $this->whichOneof("type");
    }

}

