# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: chirpstack-api/integration/integration.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2
from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,chirpstack-api/integration/integration.proto\x12\x0bintegration\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa2\x02\n\nDeviceInfo\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x13\n\x0btenant_name\x18\x02 \x01(\t\x12\x16\n\x0e\x61pplication_id\x18\x03 \x01(\t\x12\x18\n\x10\x61pplication_name\x18\x04 \x01(\t\x12\x19\n\x11\x64\x65vice_profile_id\x18\x05 \x01(\t\x12\x1b\n\x13\x64\x65vice_profile_name\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65vice_name\x18\x07 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x08 \x01(\t\x12/\n\x04tags\x18\t \x03(\x0b\x32!.integration.DeviceInfo.TagsEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xdc\x02\n\x0bUplinkEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x10\n\x08\x64\x65v_addr\x18\x04 \x01(\t\x12\x0b\n\x03\x61\x64r\x18\x05 \x01(\x08\x12\n\n\x02\x64r\x18\x06 \x01(\r\x12\x10\n\x08\x66_cnt_up\x18\x07 \x01(\r\x12\x0e\n\x06\x66_port\x18\x08 \x01(\r\x12\x11\n\tconfirmed\x18\t \x01(\x08\x12\x0c\n\x04\x64\x61ta\x18\n \x01(\x0c\x12\'\n\x06object\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12!\n\x07rx_info\x18\x0c \x03(\x0b\x32\x10.gw.UplinkRXInfo\x12!\n\x07tx_info\x18\r \x01(\x0b\x32\x10.gw.UplinkTXInfo\"\x8f\x01\n\tJoinEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x10\n\x08\x64\x65v_addr\x18\x04 \x01(\t\"\xbd\x01\n\x08\x41\x63kEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x15\n\rqueue_item_id\x18\x04 \x01(\t\x12\x14\n\x0c\x61\x63knowledged\x18\x05 \x01(\x08\x12\x12\n\nf_cnt_down\x18\x06 \x01(\r\"\xdd\x01\n\nTxAckEvent\x12\x13\n\x0b\x64ownlink_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x15\n\rqueue_item_id\x18\x04 \x01(\t\x12\x12\n\nf_cnt_down\x18\x05 \x01(\r\x12\x12\n\ngateway_id\x18\x06 \x01(\t\x12#\n\x07tx_info\x18\x07 \x01(\x0b\x32\x12.gw.DownlinkTXInfo\"\xc0\x02\n\x08LogEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12$\n\x05level\x18\x04 \x01(\x0e\x32\x15.integration.LogLevel\x12\"\n\x04\x63ode\x18\x05 \x01(\x0e\x32\x14.integration.LogCode\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x33\n\x07\x63ontext\x18\x07 \x03(\x0b\x32\".integration.LogEvent.ContextEntry\x1a.\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe8\x01\n\x0bStatusEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x0e\n\x06margin\x18\x05 \x01(\x05\x12\x1d\n\x15\x65xternal_power_source\x18\x06 \x01(\x08\x12!\n\x19\x62\x61ttery_level_unavailable\x18\x07 \x01(\x08\x12\x15\n\rbattery_level\x18\x08 \x01(\x02\"\xa5\x01\n\rLocationEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\"\n\x08location\x18\x04 \x01(\x0b\x32\x10.common.Location\"\xdb\x01\n\x10IntegrationEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x18\n\x10integration_name\x18\x04 \x01(\t\x12\x12\n\nevent_type\x18\x05 \x01(\t\x12\'\n\x06object\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct*,\n\x08LogLevel\x12\x08\n\x04INFO\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02*\xc0\x01\n\x07LogCode\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x19\n\x15\x44OWNLINK_PAYLOAD_SIZE\x10\x01\x12\x10\n\x0cUPLINK_CODEC\x10\x02\x12\x12\n\x0e\x44OWNLINK_CODEC\x10\x03\x12\x08\n\x04OTAA\x10\x04\x12\x16\n\x12UPLINK_F_CNT_RESET\x10\x05\x12\x0e\n\nUPLINK_MIC\x10\x06\x12\x1f\n\x1bUPLINK_F_CNT_RETRANSMISSION\x10\x07\x12\x14\n\x10\x44OWNLINK_GATEWAY\x10\x08\x42k\n io.chirpstack.api.as.integrationB\x10IntegrationProtoP\x01Z3github.com/brocaar/chirpstack/api/go/v4/integrationb\x06proto3')

_LOGLEVEL = DESCRIPTOR.enum_types_by_name['LogLevel']
LogLevel = enum_type_wrapper.EnumTypeWrapper(_LOGLEVEL)
_LOGCODE = DESCRIPTOR.enum_types_by_name['LogCode']
LogCode = enum_type_wrapper.EnumTypeWrapper(_LOGCODE)
INFO = 0
WARNING = 1
ERROR = 2
UNKNOWN = 0
DOWNLINK_PAYLOAD_SIZE = 1
UPLINK_CODEC = 2
DOWNLINK_CODEC = 3
OTAA = 4
UPLINK_F_CNT_RESET = 5
UPLINK_MIC = 6
UPLINK_F_CNT_RETRANSMISSION = 7
DOWNLINK_GATEWAY = 8


_DEVICEINFO = DESCRIPTOR.message_types_by_name['DeviceInfo']
_DEVICEINFO_TAGSENTRY = _DEVICEINFO.nested_types_by_name['TagsEntry']
_UPLINKEVENT = DESCRIPTOR.message_types_by_name['UplinkEvent']
_JOINEVENT = DESCRIPTOR.message_types_by_name['JoinEvent']
_ACKEVENT = DESCRIPTOR.message_types_by_name['AckEvent']
_TXACKEVENT = DESCRIPTOR.message_types_by_name['TxAckEvent']
_LOGEVENT = DESCRIPTOR.message_types_by_name['LogEvent']
_LOGEVENT_CONTEXTENTRY = _LOGEVENT.nested_types_by_name['ContextEntry']
_STATUSEVENT = DESCRIPTOR.message_types_by_name['StatusEvent']
_LOCATIONEVENT = DESCRIPTOR.message_types_by_name['LocationEvent']
_INTEGRATIONEVENT = DESCRIPTOR.message_types_by_name['IntegrationEvent']
DeviceInfo = _reflection.GeneratedProtocolMessageType('DeviceInfo', (_message.Message,), {

  'TagsEntry' : _reflection.GeneratedProtocolMessageType('TagsEntry', (_message.Message,), {
    'DESCRIPTOR' : _DEVICEINFO_TAGSENTRY,
    '__module__' : 'chirpstack_api.integration.integration_pb2'
    # @@protoc_insertion_point(class_scope:integration.DeviceInfo.TagsEntry)
    })
  ,
  'DESCRIPTOR' : _DEVICEINFO,
  '__module__' : 'chirpstack_api.integration.integration_pb2'
  # @@protoc_insertion_point(class_scope:integration.DeviceInfo)
  })
_sym_db.RegisterMessage(DeviceInfo)
_sym_db.RegisterMessage(DeviceInfo.TagsEntry)

UplinkEvent = _reflection.GeneratedProtocolMessageType('UplinkEvent', (_message.Message,), {
  'DESCRIPTOR' : _UPLINKEVENT,
  '__module__' : 'chirpstack_api.integration.integration_pb2'
  # @@protoc_insertion_point(class_scope:integration.UplinkEvent)
  })
_sym_db.RegisterMessage(UplinkEvent)

JoinEvent = _reflection.GeneratedProtocolMessageType('JoinEvent', (_message.Message,), {
  'DESCRIPTOR' : _JOINEVENT,
  '__module__' : 'chirpstack_api.integration.integration_pb2'
  # @@protoc_insertion_point(class_scope:integration.JoinEvent)
  })
_sym_db.RegisterMessage(JoinEvent)

AckEvent = _reflection.GeneratedProtocolMessageType('AckEvent', (_message.Message,), {
  'DESCRIPTOR' : _ACKEVENT,
  '__module__' : 'chirpstack_api.integration.integration_pb2'
  # @@protoc_insertion_point(class_scope:integration.AckEvent)
  })
_sym_db.RegisterMessage(AckEvent)

TxAckEvent = _reflection.GeneratedProtocolMessageType('TxAckEvent', (_message.Message,), {
  'DESCRIPTOR' : _TXACKEVENT,
  '__module__' : 'chirpstack_api.integration.integration_pb2'
  # @@protoc_insertion_point(class_scope:integration.TxAckEvent)
  })
_sym_db.RegisterMessage(TxAckEvent)

LogEvent = _reflection.GeneratedProtocolMessageType('LogEvent', (_message.Message,), {

  'ContextEntry' : _reflection.GeneratedProtocolMessageType('ContextEntry', (_message.Message,), {
    'DESCRIPTOR' : _LOGEVENT_CONTEXTENTRY,
    '__module__' : 'chirpstack_api.integration.integration_pb2'
    # @@protoc_insertion_point(class_scope:integration.LogEvent.ContextEntry)
    })
  ,
  'DESCRIPTOR' : _LOGEVENT,
  '__module__' : 'chirpstack_api.integration.integration_pb2'
  # @@protoc_insertion_point(class_scope:integration.LogEvent)
  })
_sym_db.RegisterMessage(LogEvent)
_sym_db.RegisterMessage(LogEvent.ContextEntry)

StatusEvent = _reflection.GeneratedProtocolMessageType('StatusEvent', (_message.Message,), {
  'DESCRIPTOR' : _STATUSEVENT,
  '__module__' : 'chirpstack_api.integration.integration_pb2'
  # @@protoc_insertion_point(class_scope:integration.StatusEvent)
  })
_sym_db.RegisterMessage(StatusEvent)

LocationEvent = _reflection.GeneratedProtocolMessageType('LocationEvent', (_message.Message,), {
  'DESCRIPTOR' : _LOCATIONEVENT,
  '__module__' : 'chirpstack_api.integration.integration_pb2'
  # @@protoc_insertion_point(class_scope:integration.LocationEvent)
  })
_sym_db.RegisterMessage(LocationEvent)

IntegrationEvent = _reflection.GeneratedProtocolMessageType('IntegrationEvent', (_message.Message,), {
  'DESCRIPTOR' : _INTEGRATIONEVENT,
  '__module__' : 'chirpstack_api.integration.integration_pb2'
  # @@protoc_insertion_point(class_scope:integration.IntegrationEvent)
  })
_sym_db.RegisterMessage(IntegrationEvent)

if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'\n io.chirpstack.api.as.integrationB\020IntegrationProtoP\001Z3github.com/brocaar/chirpstack/api/go/v4/integration'
  _DEVICEINFO_TAGSENTRY._options = None
  _DEVICEINFO_TAGSENTRY._serialized_options = b'8\001'
  _LOGEVENT_CONTEXTENTRY._options = None
  _LOGEVENT_CONTEXTENTRY._serialized_options = b'8\001'
  _LOGLEVEL._serialized_start=2342
  _LOGLEVEL._serialized_end=2386
  _LOGCODE._serialized_start=2389
  _LOGCODE._serialized_end=2581
  _DEVICEINFO._serialized_start=189
  _DEVICEINFO._serialized_end=479
  _DEVICEINFO_TAGSENTRY._serialized_start=436
  _DEVICEINFO_TAGSENTRY._serialized_end=479
  _UPLINKEVENT._serialized_start=482
  _UPLINKEVENT._serialized_end=830
  _JOINEVENT._serialized_start=833
  _JOINEVENT._serialized_end=976
  _ACKEVENT._serialized_start=979
  _ACKEVENT._serialized_end=1168
  _TXACKEVENT._serialized_start=1171
  _TXACKEVENT._serialized_end=1392
  _LOGEVENT._serialized_start=1395
  _LOGEVENT._serialized_end=1715
  _LOGEVENT_CONTEXTENTRY._serialized_start=1669
  _LOGEVENT_CONTEXTENTRY._serialized_end=1715
  _STATUSEVENT._serialized_start=1718
  _STATUSEVENT._serialized_end=1950
  _LOCATIONEVENT._serialized_start=1953
  _LOCATIONEVENT._serialized_end=2118
  _INTEGRATIONEVENT._serialized_start=2121
  _INTEGRATIONEVENT._serialized_end=2340
# @@protoc_insertion_point(module_scope)
