# Протокол

## Оглавление

- [deviceapis/device/v1/deviceapis_device_sac_v1.proto](#deviceapis_device_v1_deviceapis_device_sac_v1-proto)
    - [SacService](#deviceapis-device-v1-SacService)
  
    - [EditSacRequest](#deviceapis-device-v1-EditSacRequest)
    - [EditSacResponse](#deviceapis-device-v1-EditSacResponse)
    - [EditSacResponse.Error](#deviceapis-device-v1-EditSacResponse-Error)
    - [GetSacRequest](#deviceapis-device-v1-GetSacRequest)
    - [GetSacResponse](#deviceapis-device-v1-GetSacResponse)
    - [Sac](#deviceapis-device-v1-Sac)
  


## [Схема классов](/svg/protos/key/deviceapis/device/v1/deviceapis_device_sac_v1.proto.svg)
<a href="/svg/protos/key/deviceapis/device/v1/deviceapis_device_sac_v1.proto.svg"><img src="/svg/protos/key/deviceapis/device/v1/deviceapis_device_sac_v1.proto.svg" alt="/svg/protos/key/deviceapis/device/v1/deviceapis_device_sac_v1.proto.svg" style="height:100%;"></a>




<a name="deviceapis_device_v1_deviceapis_device_sac_v1-proto"></a>

## [deviceapis/device/v1/deviceapis_device_sac_v1.proto](/protos/key/deviceapis/device/v1/deviceapis_device_sac_v1.proto)
Сервис управления настройками Smart Auto Collect


<a name="deviceapis-device-v1-SacService"></a>

### SacService
 Сервис управления настройками Smart Auto Collect

| Название метода | Описание | Тип запроса | Тип ответа |
| --------------- | -------- | ----------- | -----------|
| <a id="deviceapis-device-v1-EditSac"></a> [EditSac](#deviceapis-device-v1-EditSac) | Метод редактирования настроек Smart Auto Collect | [deviceapis.device.v1.EditSacRequest](#deviceapis-device-v1-EditSacRequest) | [deviceapis.device.v1.EditSacResponse](#deviceapis-device-v1-EditSacResponse) |
| <a id="deviceapis-device-v1-GetSac"></a> [GetSac](#deviceapis-device-v1-GetSac) | Метод получения настроек Smart Auto Collect | [deviceapis.device.v1.GetSacRequest](#deviceapis-device-v1-GetSacRequest) | [deviceapis.device.v1.GetSacResponse](#deviceapis-device-v1-GetSacResponse) |

 <!-- end services -->


<a name="deviceapis-device-v1-EditSacRequest"></a>


### [EditSacRequest](#deviceapis-device-v1-EditSacRequest)
 Запрос редактирования настроек Smart Auto Collect


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="deviceapis-device-v1-EditSacRequest-data"></a> [data](#deviceapis-device-v1-EditSacRequest-data) | Настройки Smart Auto Collect |    [deviceapis.device.v1.Sac](#deviceapis-device-v1-Sac) | REQUIRED|
| <a id="deviceapis-device-v1-EditSacRequest-update_mask"></a> [update_mask](#deviceapis-device-v1-EditSacRequest-update_mask) | Маска полей обновления |    [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | <nil>|






<a name="deviceapis-device-v1-EditSacResponse"></a>


### [EditSacResponse](#deviceapis-device-v1-EditSacResponse)
 Ответ на запрос редактирования настроек Smart Auto Collect


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="deviceapis-device-v1-EditSacResponse-data"></a> [data](#deviceapis-device-v1-EditSacResponse-data) | Настройки Smart Auto Collect |  optional  [deviceapis.device.v1.Sac](#deviceapis-device-v1-Sac) | <nil>|
| <a id="deviceapis-device-v1-EditSacResponse-error"></a> [error](#deviceapis-device-v1-EditSacResponse-error) | Ошибка |  optional  [deviceapis.device.v1.EditSacResponse.Error](#deviceapis-device-v1-EditSacResponse-Error) | <nil>|






<a name="deviceapis-device-v1-EditSacResponse-Error"></a>


### [EditSacResponse.Error](#deviceapis-device-v1-EditSacResponse-Error)
 Ошибка запроса


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="deviceapis-device-v1-EditSacResponse-Error-validation"></a> [validation](#deviceapis-device-v1-EditSacResponse-Error-validation) | Ошибка валидации |  optional  [deviceapis.device.v1.ValidationError](#deviceapis-device-v1-ValidationError) | <nil>|






<a name="deviceapis-device-v1-GetSacRequest"></a>


### [GetSacRequest](#deviceapis-device-v1-GetSacRequest)
 Запрос получения настроек Smart Auto Collect






<a name="deviceapis-device-v1-GetSacResponse"></a>


### [GetSacResponse](#deviceapis-device-v1-GetSacResponse)
 Ответ на запрос получения настроек Smart Auto Collect


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="deviceapis-device-v1-GetSacResponse-data"></a> [data](#deviceapis-device-v1-GetSacResponse-data) | Настройки Smart Auto Collect |  optional  [deviceapis.device.v1.Sac](#deviceapis-device-v1-Sac) | <nil>|






<a name="deviceapis-device-v1-Sac"></a>


### [Sac](#deviceapis-device-v1-Sac)
 Настройки Smart Auto Collect


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="deviceapis-device-v1-Sac-is_sac_on"></a> [is_sac_on](#deviceapis-device-v1-Sac-is_sac_on) | Флаг включения Smart Auto Collect |    [bool](#scalar-types) | REQUIRED|
| <a id="deviceapis-device-v1-Sac-min_flat_number"></a> [min_flat_number](#deviceapis-device-v1-Sac-min_flat_number) | Минимальный номер квартиры |    [int32](#scalar-types) | <nil>|
| <a id="deviceapis-device-v1-Sac-max_flat_number"></a> [max_flat_number](#deviceapis-device-v1-Sac-max_flat_number) | Максимальный номер квартиры |    [int32](#scalar-types) | <nil>|
| <a id="deviceapis-device-v1-Sac-key_mask"></a> [key_mask](#deviceapis-device-v1-Sac-key_mask) | Маска UID RFID ключа. Пример 04**********80 = что означает, что uid ключа должен начинаться с 04, иметь 14 знаков и заканчиваться на 80. Пример ******** = что означает что uid ключа должен н иметь 8 знаков |    [string](#scalar-types) | <nil>|





 <!-- end messages -->

 <!-- end enums -->

 <!-- end HasExtensions -->



## Скалярные типы значений
<a id="scalar-types"></a>

| .proto Type | Примечание | Python | Go | Ruby | C# | C++ | Java | PHP |
| ----------- | ---------- | ------ | -- | ---- | -- | --- | ---- | --- |
| [double](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) |  | float | float64 | Float | double | double | double | float |
| [float](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) |  | float | float32 | Float | float | float | float | float |
| [int32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | 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](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | 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](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. | int/long | uint32 | Bignum or Fixnum (as required) | uint | uint32 | int | integer |
| [uint64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. | int/long | uint64 | Bignum or Fixnum (as required) | ulong | uint64 | long | integer/string |
| [sint32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | 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](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | 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](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | 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](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | 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](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Always four bytes. | int | int32 | Bignum or Fixnum (as required) | int | int32 | int | integer |
| [sfixed64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Always eight bytes. | int/long | int64 | Bignum | long | int64 | long | integer/string |
| [bool](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) |  | boolean | bool | TrueClass/FalseClass | bool | bool | boolean | boolean |
| [string](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | A string must always contain UTF-8 encoded or 7-bit ASCII text. | str/unicode | string | String (UTF-8) | string | string | String | string |
| [bytes](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | May contain any arbitrary sequence of bytes. | str | []byte | String (ASCII-8BIT) | ByteString | string | ByteString | string |

