# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: control/control.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x63ontrol/control.proto\x12\x15longbridge.control.v1\"\xe1\x01\n\x05\x43lose\x12\x35\n\x04\x63ode\x18\x01 \x01(\x0e\x32!.longbridge.control.v1.Close.CodeR\x04\x63ode\x12\x16\n\x06reason\x18\x02 \x01(\tR\x06reason\"\x88\x01\n\x04\x43ode\x12\x14\n\x10HeartbeatTimeout\x10\x00\x12\x0f\n\x0bServerError\x10\x01\x12\x12\n\x0eServerShutdown\x10\x02\x12\x0f\n\x0bUnpackError\x10\x03\x12\r\n\tAuthError\x10\x04\x12\x0f\n\x0bSessExpired\x10\x05\x12\x14\n\x10\x43onnectDuplicate\x10\x06\"b\n\tHeartbeat\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12&\n\x0cheartbeat_id\x18\x02 \x01(\x05H\x00R\x0bheartbeatId\x88\x01\x01\x42\x0f\n\r_heartbeat_id\"\xae\x01\n\x0b\x41uthRequest\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\x12L\n\x08metadata\x18\x02 \x03(\x0b\x32\x30.longbridge.control.v1.AuthRequest.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"u\n\x0c\x41uthResponse\x12\x1d\n\nsession_id\x18\x01 \x01(\tR\tsessionId\x12\x18\n\x07\x65xpires\x18\x02 \x01(\x03R\x07\x65xpires\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x16\n\x06online\x18\x04 \x01(\rR\x06online\"\xc1\x01\n\x10ReconnectRequest\x12\x1d\n\nsession_id\x18\x01 \x01(\tR\tsessionId\x12Q\n\x08metadata\x18\x02 \x03(\x0b\x32\x35.longbridge.control.v1.ReconnectRequest.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"z\n\x11ReconnectResponse\x12\x1d\n\nsession_id\x18\x01 \x01(\tR\tsessionId\x12\x18\n\x07\x65xpires\x18\x02 \x01(\x03R\x07\x65xpires\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x16\n\x06online\x18\x04 \x01(\rR\x06online*L\n\x07\x43ommand\x12\r\n\tCMD_CLOSE\x10\x00\x12\x11\n\rCMD_HEARTBEAT\x10\x01\x12\x0c\n\x08\x43MD_AUTH\x10\x02\x12\x11\n\rCMD_RECONNECT\x10\x03\x42\xe1\x01\n\x19\x63om.longbridge.control.v1B\x0c\x43ontrolProtoP\x01Z@github.com/longbridge/openapi-protobufs/gen/go/control;controlv1\xa2\x02\x03LCX\xaa\x02\x15Longbridge.Control.V1\xca\x02\x15Longbridge\\Control\\V1\xe2\x02!Longbridge\\Control\\V1\\GPBMetadata\xea\x02\x17Longbridge::Control::V1b\x06proto3')

_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'control.control_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'\n\031com.longbridge.control.v1B\014ControlProtoP\001Z@github.com/longbridge/openapi-protobufs/gen/go/control;controlv1\242\002\003LCX\252\002\025Longbridge.Control.V1\312\002\025Longbridge\\Control\\V1\342\002!Longbridge\\Control\\V1\\GPBMetadata\352\002\027Longbridge::Control::V1'
  _AUTHREQUEST_METADATAENTRY._options = None
  _AUTHREQUEST_METADATAENTRY._serialized_options = b'8\001'
  _RECONNECTREQUEST_METADATAENTRY._options = None
  _RECONNECTREQUEST_METADATAENTRY._serialized_options = b'8\001'
  _COMMAND._serialized_start=992
  _COMMAND._serialized_end=1068
  _CLOSE._serialized_start=49
  _CLOSE._serialized_end=274
  _CLOSE_CODE._serialized_start=138
  _CLOSE_CODE._serialized_end=274
  _HEARTBEAT._serialized_start=276
  _HEARTBEAT._serialized_end=374
  _AUTHREQUEST._serialized_start=377
  _AUTHREQUEST._serialized_end=551
  _AUTHREQUEST_METADATAENTRY._serialized_start=492
  _AUTHREQUEST_METADATAENTRY._serialized_end=551
  _AUTHRESPONSE._serialized_start=553
  _AUTHRESPONSE._serialized_end=670
  _RECONNECTREQUEST._serialized_start=673
  _RECONNECTREQUEST._serialized_end=866
  _RECONNECTREQUEST_METADATAENTRY._serialized_start=492
  _RECONNECTREQUEST_METADATAENTRY._serialized_end=551
  _RECONNECTRESPONSE._serialized_start=868
  _RECONNECTRESPONSE._serialized_end=990
# @@protoc_insertion_point(module_scope)
