{
  "files": [
    {
      "name": "keyapis/subscription/v1/keyapis_subscription_plan_v1.proto",
      "description": "Сервис реализует функционал управления технологическими планами(ТП).\nТП это подготовленный набор доступных услуг",
      "package": "keyapis.subscription.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [
        {
          "name": "IconType",
          "longName": "Plan.IconType",
          "fullName": "keyapis.subscription.v1.Plan.IconType",
          "description": "Справочник типов иконок",
          "values": [
            {
              "name": "ICON_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "FAST",
              "number": "1",
              "description": "Быстро"
            },
            {
              "name": "FACE_REC",
              "number": "2",
              "description": "Распознавание лиц"
            },
            {
              "name": "SAFE",
              "number": "3",
              "description": "Безопасно"
            }
          ]
        },
        {
          "name": "DirectionType",
          "longName": "PlanPaging.DirectionType",
          "fullName": "keyapis.subscription.v1.PlanPaging.DirectionType",
          "description": "Справочник типов направлений сортировки",
          "values": [
            {
              "name": "DIRECTION_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "DESC",
              "number": "1",
              "description": "От большего к меньшему"
            },
            {
              "name": "ASC",
              "number": "2",
              "description": "От меньшего к большему"
            }
          ]
        },
        {
          "name": "OrderByType",
          "longName": "PlanPaging.OrderByType",
          "fullName": "keyapis.subscription.v1.PlanPaging.OrderByType",
          "description": "Справочник типов значений сортировки",
          "values": [
            {
              "name": "ORDER_BY_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "ID",
              "number": "1",
              "description": "По идентификатору"
            }
          ]
        }
      ],
      "extensions": [],
      "messages": [
        {
          "name": "GetPlanCountRequest",
          "longName": "GetPlanCountRequest",
          "fullName": "keyapis.subscription.v1.GetPlanCountRequest",
          "description": "Запрос получения количества технологических планов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "filter",
              "description": "Фильтр",
              "label": "",
              "type": "PlanFilter",
              "longType": "PlanFilter",
              "fullType": "keyapis.subscription.v1.PlanFilter",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetPlanCountResponse",
          "longName": "GetPlanCountResponse",
          "fullName": "keyapis.subscription.v1.GetPlanCountResponse",
          "description": "Ответ на запрос получения количества технологических планов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Всего технологических планов",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetPlanCountResponse.Error",
              "fullType": "keyapis.subscription.v1.GetPlanCountResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetPlanCountResponse.Error",
          "fullName": "keyapis.subscription.v1.GetPlanCountResponse.Error",
          "description": "Ошибка запроса получения количества технологических планов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "plan_filter_validation",
              "description": "Ошибка фильтрации",
              "label": "",
              "type": "ValidationError",
              "longType": "PlanFilter.ValidationError",
              "fullType": "keyapis.subscription.v1.PlanFilter.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetPlanListRequest",
          "longName": "GetPlanListRequest",
          "fullName": "keyapis.subscription.v1.GetPlanListRequest",
          "description": "Запрос получения технологических планов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "filter",
              "description": "Фильтр",
              "label": "",
              "type": "PlanFilter",
              "longType": "PlanFilter",
              "fullType": "keyapis.subscription.v1.PlanFilter",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            },
            {
              "name": "paging",
              "description": "Пагинация",
              "label": "",
              "type": "PlanPaging",
              "longType": "PlanPaging",
              "fullType": "keyapis.subscription.v1.PlanPaging",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "pagination",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "GetPlanListResponse",
          "longName": "GetPlanListResponse",
          "fullName": "keyapis.subscription.v1.GetPlanListResponse",
          "description": "Ответ на запрос получения технологических планов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Технологический план",
              "label": "",
              "type": "Plan",
              "longType": "Plan",
              "fullType": "keyapis.subscription.v1.Plan",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetPlanListResponse.Error",
              "fullType": "keyapis.subscription.v1.GetPlanListResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetPlanListResponse.Error",
          "fullName": "keyapis.subscription.v1.GetPlanListResponse.Error",
          "description": "Ошибка запроса получения технологических планов",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "plan_filter_validation",
              "description": "Ошибка фильтрации",
              "label": "",
              "type": "ValidationError",
              "longType": "PlanFilter.ValidationError",
              "fullType": "keyapis.subscription.v1.PlanFilter.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "plan_paging_validation",
              "description": "Ошибка пагинации по страницам",
              "label": "",
              "type": "ValidationError",
              "longType": "PlanPaging.ValidationError",
              "fullType": "keyapis.subscription.v1.PlanPaging.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "GetPlanRequest",
          "longName": "GetPlanRequest",
          "fullName": "keyapis.subscription.v1.GetPlanRequest",
          "description": "Запрос получения технологического плана",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "GetPlanResponse",
          "longName": "GetPlanResponse",
          "fullName": "keyapis.subscription.v1.GetPlanResponse",
          "description": "Ответ на запрос получения технологического плана",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Технологический план",
              "label": "",
              "type": "Plan",
              "longType": "Plan",
              "fullType": "keyapis.subscription.v1.Plan",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "Plan",
          "longName": "Plan",
          "fullName": "keyapis.subscription.v1.Plan",
          "description": "Технологический план(ТП)",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 1
            },
            {
              "name": "title",
              "description": "Название",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 2
            },
            {
              "name": "description",
              "description": "Описание",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "created_at",
              "description": "Дата создания записи.\nЗаполняется сервером",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 4
            },
            {
              "name": "changed_at",
              "description": "Дата последнего изменения.\nЗаполняется и обновляется сервером.\nЗаполняется при создании и изменении.\nЯвляется версией объекта",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 5
            },
            {
              "name": "parent_ids",
              "description": "Идентификаторы родительских технологических планов(ТП)",
              "label": "repeated",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 6
            },
            {
              "name": "rf_ids",
              "description": "Идентификаторы регионов, в которых доступен технологический план(ТП)",
              "label": "repeated",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 7
            },
            {
              "name": "summary",
              "description": "Краткое описание",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 8
            },
            {
              "name": "icon_type",
              "description": "Тип иконки",
              "label": "",
              "type": "IconType",
              "longType": "Plan.IconType",
              "fullType": "keyapis.subscription.v1.Plan.IconType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 9
            },
            {
              "name": "option_descriptions",
              "description": "Описание опций",
              "label": "repeated",
              "type": "OptionDescription",
              "longType": "Plan.OptionDescription",
              "fullType": "keyapis.subscription.v1.Plan.OptionDescription",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 10
            },
            {
              "name": "privilege_types",
              "description": "Привилегии.\nМассив услуг доступных по технологическому плану",
              "label": "repeated",
              "type": "Type",
              "longType": "Privilege.Type",
              "fullType": "keyapis.subscription.v1.Privilege.Type",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 11
            }
          ]
        },
        {
          "name": "OptionDescription",
          "longName": "Plan.OptionDescription",
          "fullName": "keyapis.subscription.v1.Plan.OptionDescription",
          "description": "Описание опции",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "icon_type",
              "description": "Тип иконки",
              "label": "",
              "type": "IconType",
              "longType": "Plan.IconType",
              "fullType": "keyapis.subscription.v1.Plan.IconType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "title",
              "description": "Название",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 2
            },
            {
              "name": "summary",
              "description": "Краткое описание",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            }
          ]
        },
        {
          "name": "PlanFilter",
          "longName": "PlanFilter",
          "fullName": "keyapis.subscription.v1.PlanFilter",
          "description": "Фильтр по технологическим планам",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "text",
              "description": "По тексту.\nЕсли значение не передано то поиск по нему не производится.\n# Поиск производится по полям:\n# - Название;\n# - Описание;\n# - Краткое описание",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "rf_ids",
              "description": "По идентификаторам регионов",
              "label": "repeated",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "ValidationError",
          "longName": "PlanFilter.ValidationError",
          "fullName": "keyapis.subscription.v1.PlanFilter.ValidationError",
          "description": "Ошибки валидации фильтра по технологическим планам.\nЭти проверки выполняются до обращения в базу данных",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "text",
              "description": "Текст передан некорректно",
              "label": "",
              "type": "TextInvalid",
              "longType": "PlanFilter.ValidationError.TextInvalid",
              "fullType": "keyapis.subscription.v1.PlanFilter.ValidationError.TextInvalid",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "TextInvalid",
          "longName": "PlanFilter.ValidationError.TextInvalid",
          "fullName": "keyapis.subscription.v1.PlanFilter.ValidationError.TextInvalid",
          "description": "Причины:\n- Длина текста \u003c 3 символов и \u003e= 64",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "PlanPaging",
          "longName": "PlanPaging",
          "fullName": "keyapis.subscription.v1.PlanPaging",
          "description": "Пагинация по технологическим планам",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "order_by_type",
              "description": "Тип значения сортировки.\nПо умолчанию: ID",
              "label": "",
              "type": "OrderByType",
              "longType": "PlanPaging.OrderByType",
              "fullType": "keyapis.subscription.v1.PlanPaging.OrderByType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "direction_type",
              "description": "Тип направления сортировки.\nПо умолчанию: DESC",
              "label": "",
              "type": "DirectionType",
              "longType": "PlanPaging.DirectionType",
              "fullType": "keyapis.subscription.v1.PlanPaging.DirectionType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "limit",
              "description": "Количество записей на страницу.\nМинимальное значение: 1.\nМаксимальное значение: 100.\nПо умолчанию: 20.\nЕсли значение 0 (не передано), то выставляем значение по умолчанию",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "offset",
              "description": "Сдвиг.\nПо умолчанию: 0",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            }
          ]
        },
        {
          "name": "ValidationError",
          "longName": "PlanPaging.ValidationError",
          "fullName": "keyapis.subscription.v1.PlanPaging.ValidationError",
          "description": "Ошибка валидации постраничной пагинации по технологическим планам.\nЭти проверки выполняются до обращения в базу данных",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "limit",
              "description": "Количество передано некорректно",
              "label": "",
              "type": "LimitInvalid",
              "longType": "PlanPaging.ValidationError.LimitInvalid",
              "fullType": "keyapis.subscription.v1.PlanPaging.ValidationError.LimitInvalid",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "offset",
              "description": "Сдвиг передан некорректно",
              "label": "",
              "type": "OffsetInvalid",
              "longType": "PlanPaging.ValidationError.OffsetInvalid",
              "fullType": "keyapis.subscription.v1.PlanPaging.ValidationError.OffsetInvalid",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "LimitInvalid",
          "longName": "PlanPaging.ValidationError.LimitInvalid",
          "fullName": "keyapis.subscription.v1.PlanPaging.ValidationError.LimitInvalid",
          "description": "Причины:\n- Значение количества \u003c 0 или \u003e 100",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "OffsetInvalid",
          "longName": "PlanPaging.ValidationError.OffsetInvalid",
          "fullName": "keyapis.subscription.v1.PlanPaging.ValidationError.OffsetInvalid",
          "description": "Причины:\n- Значение сдвига \u003c 0",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        }
      ],
      "services": [
        {
          "name": "PlanService",
          "longName": "PlanService",
          "fullName": "keyapis.subscription.v1.PlanService",
          "description": "Сервис технологических планов(ТП)",
          "methods": [
            {
              "name": "GetPlan",
              "description": "Метод получения технологического плана.\nМетод доступен для: admin, mrf, master, ltp_first, service, application(subscription:read или subscription:edit)",
              "requestType": "GetPlanRequest",
              "requestLongType": "GetPlanRequest",
              "requestFullType": "keyapis.subscription.v1.GetPlanRequest",
              "requestStreaming": false,
              "responseType": "GetPlanResponse",
              "responseLongType": "GetPlanResponse",
              "responseFullType": "keyapis.subscription.v1.GetPlanResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/subscription/api/v1/plan/{id}"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetPlanList",
              "description": "Метод получения списка технологических планов.\nМетод доступен для: admin, service, mrf, master, ltp_first, service, application(subscription:read или subscription:edit)",
              "requestType": "GetPlanListRequest",
              "requestLongType": "GetPlanListRequest",
              "requestFullType": "keyapis.subscription.v1.GetPlanListRequest",
              "requestStreaming": false,
              "responseType": "GetPlanListResponse",
              "responseLongType": "GetPlanListResponse",
              "responseFullType": "keyapis.subscription.v1.GetPlanListResponse",
              "responseStreaming": true,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/subscription/api/v1/plan/list"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetPlanCount",
              "description": "Метод получения количества технологических планов.\nМетод доступен для: admin, service, mrf, master, ltp_first, service, application(subscription:read или subscription:edit)",
              "requestType": "GetPlanCountRequest",
              "requestLongType": "GetPlanCountRequest",
              "requestFullType": "keyapis.subscription.v1.GetPlanCountRequest",
              "requestStreaming": false,
              "responseType": "GetPlanCountResponse",
              "responseLongType": "GetPlanCountResponse",
              "responseFullType": "keyapis.subscription.v1.GetPlanCountResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/subscription/api/v1/plan/count"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "syntax": "proto3"
    }
  ],
  "scalarValueTypes": [
    {
      "protoType": "double",
      "notes": "",
      "cppType": "double",
      "csType": "double",
      "goType": "float64",
      "javaType": "double",
      "phpType": "float",
      "pythonType": "float",
      "rubyType": "Float"
    },
    {
      "protoType": "float",
      "notes": "",
      "cppType": "float",
      "csType": "float",
      "goType": "float32",
      "javaType": "float",
      "phpType": "float",
      "pythonType": "float",
      "rubyType": "Float"
    },
    {
      "protoType": "int32",
      "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "int64",
      "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "uint32",
      "notes": "Uses variable-length encoding.",
      "cppType": "uint32",
      "csType": "uint",
      "goType": "uint32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int/long",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "uint64",
      "notes": "Uses variable-length encoding.",
      "cppType": "uint64",
      "csType": "ulong",
      "goType": "uint64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sint32",
      "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sint64",
      "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "fixed32",
      "notes": "Always four bytes. More efficient than uint32 if values are often greater than 2^28.",
      "cppType": "uint32",
      "csType": "uint",
      "goType": "uint32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "fixed64",
      "notes": "Always eight bytes. More efficient than uint64 if values are often greater than 2^56.",
      "cppType": "uint64",
      "csType": "ulong",
      "goType": "uint64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "sfixed32",
      "notes": "Always four bytes.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sfixed64",
      "notes": "Always eight bytes.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "bool",
      "notes": "",
      "cppType": "bool",
      "csType": "bool",
      "goType": "bool",
      "javaType": "boolean",
      "phpType": "boolean",
      "pythonType": "boolean",
      "rubyType": "TrueClass/FalseClass"
    },
    {
      "protoType": "string",
      "notes": "A string must always contain UTF-8 encoded or 7-bit ASCII text.",
      "cppType": "string",
      "csType": "string",
      "goType": "string",
      "javaType": "String",
      "phpType": "string",
      "pythonType": "str/unicode",
      "rubyType": "String (UTF-8)"
    },
    {
      "protoType": "bytes",
      "notes": "May contain any arbitrary sequence of bytes.",
      "cppType": "string",
      "csType": "ByteString",
      "goType": "[]byte",
      "javaType": "ByteString",
      "phpType": "string",
      "pythonType": "str",
      "rubyType": "String (ASCII-8BIT)"
    }
  ]
}