# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Connection.proto

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor.FileDescriptor(
  name='Connection.proto',
  package='connection',
  syntax='proto2',
  serialized_pb=_b('\n\x10\x43onnection.proto\x12\nconnection\"\xbe\x02\n\x11\x43onnectionMessage\x12\x34\n\x04mode\x18\x01 \x02(\x0e\x32&.connection.ConnectionMessage.ModeType\x12\x14\n\x0c\x63onnectionId\x18\x02 \x02(\t\x12\x15\n\rtargetAddress\x18\x03 \x01(\t\x12\x12\n\nlistenPort\x18\x04 \x01(\x05\x12\x13\n\x0breceiveHash\x18\x05 \x01(\t\x12\x10\n\x08sendHash\x18\x06 \x01(\t\x12\x19\n\x11remoteInterfaceId\x18\x07 \x01(\t\x12\x17\n\x0fremoteProcessId\x18\x08 \x01(\t\x12\x17\n\x0fremoteServiceId\x18\t \x01(\t\">\n\x08ModeType\x12\n\n\x06\x43REATE\x10\x00\x12\x0b\n\x07SUSPEND\x10\x01\x12\n\n\x06RESUME\x10\x02\x12\r\n\tTERMINATE\x10\x03\"\x88\x01\n\x13\x43onnectionHandshake\x12\x34\n\x0f\x63onnectionState\x18\x01 \x02(\x0e\x32\x1b.connection.ConnectionState\x12\x14\n\x0c\x63onnectionId\x18\x02 \x02(\t\x12\x13\n\x0breceiveHash\x18\x03 \x01(\t\x12\x10\n\x08sendHash\x18\x04 \x01(\t*^\n\x0f\x43onnectionState\x12\x0c\n\x08STARTING\x10\x00\x12\r\n\tCONNECTED\x10\x01\x12\r\n\tSUSPENDED\x10\x02\x12\x0f\n\x0bINTERRUPTED\x10\x03\x12\x0e\n\nTERMINATED\x10\x04\x42*\n\x17org.flexiblepower.protoB\x0f\x43onnectionProto')
)

_CONNECTIONSTATE = _descriptor.EnumDescriptor(
  name='ConnectionState',
  full_name='connection.ConnectionState',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='STARTING', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='CONNECTED', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='SUSPENDED', index=2, number=2,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='INTERRUPTED', index=3, number=3,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='TERMINATED', index=4, number=4,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=492,
  serialized_end=586,
)
_sym_db.RegisterEnumDescriptor(_CONNECTIONSTATE)

ConnectionState = enum_type_wrapper.EnumTypeWrapper(_CONNECTIONSTATE)
STARTING = 0
CONNECTED = 1
SUSPENDED = 2
INTERRUPTED = 3
TERMINATED = 4


_CONNECTIONMESSAGE_MODETYPE = _descriptor.EnumDescriptor(
  name='ModeType',
  full_name='connection.ConnectionMessage.ModeType',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='CREATE', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='SUSPEND', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='RESUME', index=2, number=2,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='TERMINATE', index=3, number=3,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=289,
  serialized_end=351,
)
_sym_db.RegisterEnumDescriptor(_CONNECTIONMESSAGE_MODETYPE)


_CONNECTIONMESSAGE = _descriptor.Descriptor(
  name='ConnectionMessage',
  full_name='connection.ConnectionMessage',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='mode', full_name='connection.ConnectionMessage.mode', index=0,
      number=1, type=14, cpp_type=8, label=2,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='connectionId', full_name='connection.ConnectionMessage.connectionId', index=1,
      number=2, type=9, cpp_type=9, label=2,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='targetAddress', full_name='connection.ConnectionMessage.targetAddress', index=2,
      number=3, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='listenPort', full_name='connection.ConnectionMessage.listenPort', index=3,
      number=4, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='receiveHash', full_name='connection.ConnectionMessage.receiveHash', index=4,
      number=5, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='sendHash', full_name='connection.ConnectionMessage.sendHash', index=5,
      number=6, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='remoteInterfaceId', full_name='connection.ConnectionMessage.remoteInterfaceId', index=6,
      number=7, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='remoteProcessId', full_name='connection.ConnectionMessage.remoteProcessId', index=7,
      number=8, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='remoteServiceId', full_name='connection.ConnectionMessage.remoteServiceId', index=8,
      number=9, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
    _CONNECTIONMESSAGE_MODETYPE,
  ],
  options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=33,
  serialized_end=351,
)


_CONNECTIONHANDSHAKE = _descriptor.Descriptor(
  name='ConnectionHandshake',
  full_name='connection.ConnectionHandshake',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='connectionState', full_name='connection.ConnectionHandshake.connectionState', index=0,
      number=1, type=14, cpp_type=8, label=2,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='connectionId', full_name='connection.ConnectionHandshake.connectionId', index=1,
      number=2, type=9, cpp_type=9, label=2,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='receiveHash', full_name='connection.ConnectionHandshake.receiveHash', index=2,
      number=3, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='sendHash', full_name='connection.ConnectionHandshake.sendHash', index=3,
      number=4, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=354,
  serialized_end=490,
)

_CONNECTIONMESSAGE.fields_by_name['mode'].enum_type = _CONNECTIONMESSAGE_MODETYPE
_CONNECTIONMESSAGE_MODETYPE.containing_type = _CONNECTIONMESSAGE
_CONNECTIONHANDSHAKE.fields_by_name['connectionState'].enum_type = _CONNECTIONSTATE
DESCRIPTOR.message_types_by_name['ConnectionMessage'] = _CONNECTIONMESSAGE
DESCRIPTOR.message_types_by_name['ConnectionHandshake'] = _CONNECTIONHANDSHAKE
DESCRIPTOR.enum_types_by_name['ConnectionState'] = _CONNECTIONSTATE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

ConnectionMessage = _reflection.GeneratedProtocolMessageType('ConnectionMessage', (_message.Message,), dict(
  DESCRIPTOR = _CONNECTIONMESSAGE,
  __module__ = 'Connection_pb2'
  # @@protoc_insertion_point(class_scope:connection.ConnectionMessage)
  ))
_sym_db.RegisterMessage(ConnectionMessage)

ConnectionHandshake = _reflection.GeneratedProtocolMessageType('ConnectionHandshake', (_message.Message,), dict(
  DESCRIPTOR = _CONNECTIONHANDSHAKE,
  __module__ = 'Connection_pb2'
  # @@protoc_insertion_point(class_scope:connection.ConnectionHandshake)
  ))
_sym_db.RegisterMessage(ConnectionHandshake)


DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027org.flexiblepower.protoB\017ConnectionProto'))
# @@protoc_insertion_point(module_scope)
