Перейти к содержанию

Протокол

Оглавление

Схема классов

/svg/protos/key/deviceapis/device/v1/deviceapis_device_fr_v1.proto.svg

deviceapis/device/v1/deviceapis_device_fr_v1.proto

Сервис управления настройками Face Recognition

FacerecService

Сервис управления настройками Face Recognition

Название метода Описание Тип запроса Тип ответа
EditFacerec Метод редактирования настроек Face Recognition deviceapis.device.v1.EditFacerecRequest deviceapis.device.v1.EditFacerecResponse
GetFacerec Метод получения настроек Face Recognition deviceapis.device.v1.GetFacerecRequest deviceapis.device.v1.GetFacerecResponse

EditFacerecRequest

Запрос редактирования настроек Face Recognition

Поле Описание Тип Признак
data Настройки Face Recognition deviceapis.device.v1.Facerec REQUIRED
update_mask Маска полей обновления google.protobuf.FieldMask

EditFacerecResponse

Ответ на запрос редактирования настроек Face Recognition

Поле Описание Тип Признак
error Ошибка optional deviceapis.device.v1.EditFacerecResponse.Error

EditFacerecResponse.Error

Ошибка запроса

Поле Описание Тип Признак
validation Ошибка валидации optional deviceapis.device.v1.ValidationError

Facerec

Настройки Face Recognition

Поле Описание Тип Признак
is_enabled Флаг включения Face Recognition bool REQUIRED
main_address Адрес string REQUIRED
alt_address Альтернативный адрес string
request Путь запроса к серверу string REQUIRED
authorization Токен string REQUIRED
groups Идентификаторы групп профилей в identix repeated string
relay_index Индекс реле. Диапазон: 1..32767 int32
send_interval Интервал отправки, миллисекунд int32
face_liveness Доступность FR float
min_face_size Минимальный размер лица, пикселей int32
max_face_size Максимальный размер лица, пикселей int32
add_size Добавление размера, процентов int32

GetFacerecRequest

Запрос получения настроек Face Recognition

GetFacerecResponse

Ответ на запрос получения настроек Face Recognition

Поле Описание Тип Признак
data Настройки Face Recognition optional deviceapis.device.v1.Facerec

Скалярные типы значений

.proto Type Примечание Python Go Ruby C# C++ Java PHP
double float float64 Float double double double float
float float float32 Float float float float float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int int32 Bignum or Fixnum (as required) int int32 int integer
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int/long int64 Bignum long int64 long integer/string
uint32 Uses variable-length encoding. int/long uint32 Bignum or Fixnum (as required) uint uint32 int integer
uint64 Uses variable-length encoding. int/long uint64 Bignum or Fixnum (as required) ulong uint64 long integer/string
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int int32 Bignum or Fixnum (as required) int int32 int integer
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int/long int64 Bignum long int64 long integer/string
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. int uint32 Bignum or Fixnum (as required) uint uint32 int integer
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. int/long uint64 Bignum ulong uint64 long integer/string
sfixed32 Always four bytes. int int32 Bignum or Fixnum (as required) int int32 int integer
sfixed64 Always eight bytes. int/long int64 Bignum long int64 long integer/string
bool boolean bool TrueClass/FalseClass bool bool boolean boolean
string A string must always contain UTF-8 encoded or 7-bit ASCII text. str/unicode string String (UTF-8) string string String string
bytes May contain any arbitrary sequence of bytes. str []byte String (ASCII-8BIT) ByteString string ByteString string