# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: policy.proto
"""Generated protocol buffer code."""
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
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from . import context_pb2 as context__pb2
from . import policy_condition_pb2 as policy__condition__pb2
from . import policy_action_pb2 as policy__action__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='policy.proto',
  package='policy',
  syntax='proto3',
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n\x0cpolicy.proto\x12\x06policy\x1a\rcontext.proto\x1a\x16policy-condition.proto\x1a\x13policy-action.proto\"+\n\x0cPolicyRuleId\x12\x1b\n\x04uuid\x18\x01 \x01(\x0b\x32\r.context.Uuid\"b\n\x0fPolicyRuleState\x12#\n\x0cpolicyRuleId\x18\x01 \x01(\x0b\x32\r.context.Uuid\x12*\n\x0fpolicyRuleState\x18\x02 \x01(\x0e\x32\x11.policy.RuleState\"0\n\x0fPolicyRuleEvent\x12\x1d\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x0e.context.Event\"\x84\x03\n\nPolicyRule\x12*\n\x0cpolicyRuleId\x18\x01 \x01(\x0b\x32\x14.policy.PolicyRuleId\x12.\n\x0epolicyRuleType\x18\x02 \x01(\x0e\x32\x16.policy.PolicyRuleType\x12\x10\n\x08priority\x18\x03 \x01(\r\x12&\n\x05\x65vent\x18\x04 \x01(\x0b\x32\x17.policy.PolicyRuleEvent\x12\x32\n\rconditionList\x18\x05 \x03(\x0b\x32\x1b.policy.PolicyRuleCondition\x12\x30\n\x0f\x62ooleanOperator\x18\x06 \x01(\x0e\x32\x17.policy.BooleanOperator\x12,\n\nactionList\x18\x07 \x03(\x0b\x32\x18.policy.PolicyRuleAction\x12%\n\tserviceId\x18\x08 \x01(\x0b\x32\x12.context.ServiceId\x12%\n\ndeviceList\x18\t \x03(\x0b\x32\x11.context.DeviceId\"<\n\x0ePolicyRuleList\x12*\n\x0epolicyRuleList\x18\x01 \x03(\x0b\x32\x12.policy.PolicyRule\"?\n\x10PolicyRuleIdList\x12+\n\rpolicyRuleIds\x18\x01 \x03(\x0b\x32\x14.policy.PolicyRuleId*G\n\tRuleState\x12\x13\n\x0fPOLICY_INACTIVE\x10\x00\x12\x12\n\x0ePOLICY_PLANNED\x10\x01\x12\x11\n\rPOLICY_ACTIVE\x10\x02*?\n\x0ePolicyRuleType\x12\x15\n\x11POLICYTYPE_DEVICE\x10\x00\x12\x16\n\x12POLICYTYPE_NETWORK\x10\x01\x32\x8c\x03\n\rPolicyService\x12:\n\tPolicyAdd\x12\x12.policy.PolicyRule\x1a\x17.policy.PolicyRuleState\"\x00\x12=\n\x0cPolicyUpdate\x12\x12.policy.PolicyRule\x1a\x17.policy.PolicyRuleState\"\x00\x12=\n\x0cPolicyDelete\x12\x12.policy.PolicyRule\x1a\x17.policy.PolicyRuleState\"\x00\x12\x37\n\tGetPolicy\x12\x14.policy.PolicyRuleId\x1a\x12.policy.PolicyRule\"\x00\x12\x42\n\x13GetPolicyByDeviceId\x12\x11.context.DeviceId\x1a\x16.policy.PolicyRuleList\"\x00\x12\x44\n\x14GetPolicyByServiceId\x12\x12.context.ServiceId\x1a\x16.policy.PolicyRuleList\"\x00\x62\x06proto3'
  ,
  dependencies=[context__pb2.DESCRIPTOR,policy__condition__pb2.DESCRIPTOR,policy__action__pb2.DESCRIPTOR,])

_RULESTATE = _descriptor.EnumDescriptor(
  name='RuleState',
  full_name='policy.RuleState',
  filename=None,
  file=DESCRIPTOR,
  create_key=_descriptor._internal_create_key,
  values=[
    _descriptor.EnumValueDescriptor(
      name='POLICY_INACTIVE', index=0, number=0,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='POLICY_PLANNED', index=1, number=1,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='POLICY_ACTIVE', index=2, number=2,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=797,
  serialized_end=868,
)
_sym_db.RegisterEnumDescriptor(_RULESTATE)

RuleState = enum_type_wrapper.EnumTypeWrapper(_RULESTATE)
_POLICYRULETYPE = _descriptor.EnumDescriptor(
  name='PolicyRuleType',
  full_name='policy.PolicyRuleType',
  filename=None,
  file=DESCRIPTOR,
  create_key=_descriptor._internal_create_key,
  values=[
    _descriptor.EnumValueDescriptor(
      name='POLICYTYPE_DEVICE', index=0, number=0,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='POLICYTYPE_NETWORK', index=1, number=1,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=870,
  serialized_end=933,
)
_sym_db.RegisterEnumDescriptor(_POLICYRULETYPE)

PolicyRuleType = enum_type_wrapper.EnumTypeWrapper(_POLICYRULETYPE)
POLICY_INACTIVE = 0
POLICY_PLANNED = 1
POLICY_ACTIVE = 2
POLICYTYPE_DEVICE = 0
POLICYTYPE_NETWORK = 1



_POLICYRULEID = _descriptor.Descriptor(
  name='PolicyRuleId',
  full_name='policy.PolicyRuleId',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='uuid', full_name='policy.PolicyRuleId.uuid', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=84,
  serialized_end=127,
)


_POLICYRULESTATE = _descriptor.Descriptor(
  name='PolicyRuleState',
  full_name='policy.PolicyRuleState',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='policyRuleId', full_name='policy.PolicyRuleState.policyRuleId', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='policyRuleState', full_name='policy.PolicyRuleState.policyRuleState', index=1,
      number=2, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=129,
  serialized_end=227,
)


_POLICYRULEEVENT = _descriptor.Descriptor(
  name='PolicyRuleEvent',
  full_name='policy.PolicyRuleEvent',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='event', full_name='policy.PolicyRuleEvent.event', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=229,
  serialized_end=277,
)


_POLICYRULE = _descriptor.Descriptor(
  name='PolicyRule',
  full_name='policy.PolicyRule',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='policyRuleId', full_name='policy.PolicyRule.policyRuleId', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='policyRuleType', full_name='policy.PolicyRule.policyRuleType', index=1,
      number=2, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='priority', full_name='policy.PolicyRule.priority', index=2,
      number=3, type=13, cpp_type=3, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='event', full_name='policy.PolicyRule.event', index=3,
      number=4, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='conditionList', full_name='policy.PolicyRule.conditionList', index=4,
      number=5, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='booleanOperator', full_name='policy.PolicyRule.booleanOperator', index=5,
      number=6, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='actionList', full_name='policy.PolicyRule.actionList', index=6,
      number=7, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='serviceId', full_name='policy.PolicyRule.serviceId', index=7,
      number=8, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='deviceList', full_name='policy.PolicyRule.deviceList', index=8,
      number=9, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=280,
  serialized_end=668,
)


_POLICYRULELIST = _descriptor.Descriptor(
  name='PolicyRuleList',
  full_name='policy.PolicyRuleList',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='policyRuleList', full_name='policy.PolicyRuleList.policyRuleList', index=0,
      number=1, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=670,
  serialized_end=730,
)


_POLICYRULEIDLIST = _descriptor.Descriptor(
  name='PolicyRuleIdList',
  full_name='policy.PolicyRuleIdList',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='policyRuleIds', full_name='policy.PolicyRuleIdList.policyRuleIds', index=0,
      number=1, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=732,
  serialized_end=795,
)

_POLICYRULEID.fields_by_name['uuid'].message_type = context__pb2._UUID
_POLICYRULESTATE.fields_by_name['policyRuleId'].message_type = context__pb2._UUID
_POLICYRULESTATE.fields_by_name['policyRuleState'].enum_type = _RULESTATE
_POLICYRULEEVENT.fields_by_name['event'].message_type = context__pb2._EVENT
_POLICYRULE.fields_by_name['policyRuleId'].message_type = _POLICYRULEID
_POLICYRULE.fields_by_name['policyRuleType'].enum_type = _POLICYRULETYPE
_POLICYRULE.fields_by_name['event'].message_type = _POLICYRULEEVENT
_POLICYRULE.fields_by_name['conditionList'].message_type = policy__condition__pb2._POLICYRULECONDITION
_POLICYRULE.fields_by_name['booleanOperator'].enum_type = policy__condition__pb2._BOOLEANOPERATOR
_POLICYRULE.fields_by_name['actionList'].message_type = policy__action__pb2._POLICYRULEACTION
_POLICYRULE.fields_by_name['serviceId'].message_type = context__pb2._SERVICEID
_POLICYRULE.fields_by_name['deviceList'].message_type = context__pb2._DEVICEID
_POLICYRULELIST.fields_by_name['policyRuleList'].message_type = _POLICYRULE
_POLICYRULEIDLIST.fields_by_name['policyRuleIds'].message_type = _POLICYRULEID
DESCRIPTOR.message_types_by_name['PolicyRuleId'] = _POLICYRULEID
DESCRIPTOR.message_types_by_name['PolicyRuleState'] = _POLICYRULESTATE
DESCRIPTOR.message_types_by_name['PolicyRuleEvent'] = _POLICYRULEEVENT
DESCRIPTOR.message_types_by_name['PolicyRule'] = _POLICYRULE
DESCRIPTOR.message_types_by_name['PolicyRuleList'] = _POLICYRULELIST
DESCRIPTOR.message_types_by_name['PolicyRuleIdList'] = _POLICYRULEIDLIST
DESCRIPTOR.enum_types_by_name['RuleState'] = _RULESTATE
DESCRIPTOR.enum_types_by_name['PolicyRuleType'] = _POLICYRULETYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

PolicyRuleId = _reflection.GeneratedProtocolMessageType('PolicyRuleId', (_message.Message,), {
  'DESCRIPTOR' : _POLICYRULEID,
  '__module__' : 'policy_pb2'
  # @@protoc_insertion_point(class_scope:policy.PolicyRuleId)
  })
_sym_db.RegisterMessage(PolicyRuleId)

PolicyRuleState = _reflection.GeneratedProtocolMessageType('PolicyRuleState', (_message.Message,), {
  'DESCRIPTOR' : _POLICYRULESTATE,
  '__module__' : 'policy_pb2'
  # @@protoc_insertion_point(class_scope:policy.PolicyRuleState)
  })
_sym_db.RegisterMessage(PolicyRuleState)

PolicyRuleEvent = _reflection.GeneratedProtocolMessageType('PolicyRuleEvent', (_message.Message,), {
  'DESCRIPTOR' : _POLICYRULEEVENT,
  '__module__' : 'policy_pb2'
  # @@protoc_insertion_point(class_scope:policy.PolicyRuleEvent)
  })
_sym_db.RegisterMessage(PolicyRuleEvent)

PolicyRule = _reflection.GeneratedProtocolMessageType('PolicyRule', (_message.Message,), {
  'DESCRIPTOR' : _POLICYRULE,
  '__module__' : 'policy_pb2'
  # @@protoc_insertion_point(class_scope:policy.PolicyRule)
  })
_sym_db.RegisterMessage(PolicyRule)

PolicyRuleList = _reflection.GeneratedProtocolMessageType('PolicyRuleList', (_message.Message,), {
  'DESCRIPTOR' : _POLICYRULELIST,
  '__module__' : 'policy_pb2'
  # @@protoc_insertion_point(class_scope:policy.PolicyRuleList)
  })
_sym_db.RegisterMessage(PolicyRuleList)

PolicyRuleIdList = _reflection.GeneratedProtocolMessageType('PolicyRuleIdList', (_message.Message,), {
  'DESCRIPTOR' : _POLICYRULEIDLIST,
  '__module__' : 'policy_pb2'
  # @@protoc_insertion_point(class_scope:policy.PolicyRuleIdList)
  })
_sym_db.RegisterMessage(PolicyRuleIdList)



_POLICYSERVICE = _descriptor.ServiceDescriptor(
  name='PolicyService',
  full_name='policy.PolicyService',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_start=936,
  serialized_end=1332,
  methods=[
  _descriptor.MethodDescriptor(
    name='PolicyAdd',
    full_name='policy.PolicyService.PolicyAdd',
    index=0,
    containing_service=None,
    input_type=_POLICYRULE,
    output_type=_POLICYRULESTATE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='PolicyUpdate',
    full_name='policy.PolicyService.PolicyUpdate',
    index=1,
    containing_service=None,
    input_type=_POLICYRULE,
    output_type=_POLICYRULESTATE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='PolicyDelete',
    full_name='policy.PolicyService.PolicyDelete',
    index=2,
    containing_service=None,
    input_type=_POLICYRULE,
    output_type=_POLICYRULESTATE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='GetPolicy',
    full_name='policy.PolicyService.GetPolicy',
    index=3,
    containing_service=None,
    input_type=_POLICYRULEID,
    output_type=_POLICYRULE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='GetPolicyByDeviceId',
    full_name='policy.PolicyService.GetPolicyByDeviceId',
    index=4,
    containing_service=None,
    input_type=context__pb2._DEVICEID,
    output_type=_POLICYRULELIST,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='GetPolicyByServiceId',
    full_name='policy.PolicyService.GetPolicyByServiceId',
    index=5,
    containing_service=None,
    input_type=context__pb2._SERVICEID,
    output_type=_POLICYRULELIST,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
])
_sym_db.RegisterServiceDescriptor(_POLICYSERVICE)

DESCRIPTOR.services_by_name['PolicyService'] = _POLICYSERVICE

# @@protoc_insertion_point(module_scope)
