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

namespace Keyapis\Device\V1\Preset;

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

/**
 * Распознование лиц
 *
 * Generated from protobuf message <code>keyapis.device.v1.Preset.FaceRecognition</code>
 */
class FaceRecognition extends \Google\Protobuf\Internal\Message
{
    /**
     * Адрес
     *
     * Generated from protobuf field <code>string host = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $host = '';
    /**
     * Альтернативный адрес
     *
     * Generated from protobuf field <code>string alt_host = 2;</code>
     */
    protected $alt_host = '';
    /**
     * Путь запроса к серверу
     *
     * Generated from protobuf field <code>string endpoint = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $endpoint = '';
    /**
     * Токен
     *
     * Generated from protobuf field <code>string auth_token = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $auth_token = '';
    /**
     * Тип конфигурации
     *
     * Generated from protobuf field <code>.keyapis.device.v1.Preset.FaceRecognition.ConfigurationType configuration_type = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $configuration_type = 0;
    /**
     * Идентификатор источника в identix
     *
     * Generated from protobuf field <code>string origin_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $origin_id = '';
    /**
     * Идентификаторы групп профилей в identix
     *
     * Generated from protobuf field <code>repeated int32 group_ids = 7;</code>
     */
    private $group_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $host
     *           Адрес
     *     @type string $alt_host
     *           Альтернативный адрес
     *     @type string $endpoint
     *           Путь запроса к серверу
     *     @type string $auth_token
     *           Токен
     *     @type int $configuration_type
     *           Тип конфигурации
     *     @type string $origin_id
     *           Идентификатор источника в identix
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $group_ids
     *           Идентификаторы групп профилей в identix
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceDeviceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Адрес
     *
     * Generated from protobuf field <code>string host = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getHost()
    {
        return $this->host;
    }

    /**
     * Адрес
     *
     * Generated from protobuf field <code>string host = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->host = $var;

        return $this;
    }

    /**
     * Альтернативный адрес
     *
     * Generated from protobuf field <code>string alt_host = 2;</code>
     * @return string
     */
    public function getAltHost()
    {
        return $this->alt_host;
    }

    /**
     * Альтернативный адрес
     *
     * Generated from protobuf field <code>string alt_host = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAltHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->alt_host = $var;

        return $this;
    }

    /**
     * Путь запроса к серверу
     *
     * Generated from protobuf field <code>string endpoint = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getEndpoint()
    {
        return $this->endpoint;
    }

    /**
     * Путь запроса к серверу
     *
     * Generated from protobuf field <code>string endpoint = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setEndpoint($var)
    {
        GPBUtil::checkString($var, True);
        $this->endpoint = $var;

        return $this;
    }

    /**
     * Токен
     *
     * Generated from protobuf field <code>string auth_token = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAuthToken()
    {
        return $this->auth_token;
    }

    /**
     * Токен
     *
     * Generated from protobuf field <code>string auth_token = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAuthToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->auth_token = $var;

        return $this;
    }

    /**
     * Тип конфигурации
     *
     * Generated from protobuf field <code>.keyapis.device.v1.Preset.FaceRecognition.ConfigurationType configuration_type = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getConfigurationType()
    {
        return $this->configuration_type;
    }

    /**
     * Тип конфигурации
     *
     * Generated from protobuf field <code>.keyapis.device.v1.Preset.FaceRecognition.ConfigurationType configuration_type = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setConfigurationType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\Device\V1\Preset\FaceRecognition\ConfigurationType::class);
        $this->configuration_type = $var;

        return $this;
    }

    /**
     * Идентификатор источника в identix
     *
     * Generated from protobuf field <code>string origin_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getOriginId()
    {
        return $this->origin_id;
    }

    /**
     * Идентификатор источника в identix
     *
     * Generated from protobuf field <code>string origin_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setOriginId($var)
    {
        GPBUtil::checkString($var, True);
        $this->origin_id = $var;

        return $this;
    }

    /**
     * Идентификаторы групп профилей в identix
     *
     * Generated from protobuf field <code>repeated int32 group_ids = 7;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGroupIds()
    {
        return $this->group_ids;
    }

    /**
     * Идентификаторы групп профилей в identix
     *
     * Generated from protobuf field <code>repeated int32 group_ids = 7;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGroupIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->group_ids = $arr;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FaceRecognition::class, \Keyapis\Device\V1\Preset_FaceRecognition::class);

