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

_sym_db = _symbol_database.Default()


import context_pb2 as context__pb2
import service_pb2 as service__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='policy.proto',
  package='policy',
  syntax='proto3',
  serialized_options=None,
  serialized_pb=_b('\n\x0cpolicy.proto\x12\x06policy\x1a\rcontext.proto\x1a\rservice.proto\"<\n\x0ePolicyRuleList\x12*\n\x0epolicyRuleList\x18\x01 \x03(\x0b\x32\x12.policy.PolicyRule\"\xac\x02\n\nPolicyRule\x12*\n\x0cpolicyRuleId\x18\x01 \x01(\x0b\x32\x14.policy.PolicyRuleId\x12\'\n\x0bserviceList\x18\x02 \x03(\x0b\x32\x12.service.ServiceId\x12%\n\ndeviceList\x18\x03 \x03(\x0b\x32\x11.context.DeviceId\x12\x16\n\x0epolicyRuleType\x18\x04 \x01(\t\x12\x1a\n\x12PolicyRulePriority\x18\x05 \x01(\t\x12\x39\n\x14polRuleConditionList\x18\x06 \x03(\x0b\x32\x1b.policy.PolicyRuleCondition\x12\x33\n\x11polRuleActionList\x18\x07 \x03(\x0b\x32\x18.policy.PolicyRuleAction\"+\n\x0cPolicyRuleId\x12\x1b\n\x04uuid\x18\x01 \x01(\x0b\x32\r.context.Uuid\"\x84\x01\n\x13PolicyRuleCondition\x12\x37\n\x13polRuleConditionVar\x18\x01 \x01(\x0b\x32\x1a.policy.PolicyRuleVariable\x12\x34\n\x13polRuleConditionVal\x18\x02 \x01(\x0b\x32\x17.policy.PolicyRuleValue\"{\n\x10PolicyRuleAction\x12\x34\n\x10polRuleActionVar\x18\x01 \x01(\x0b\x32\x1a.policy.PolicyRuleVariable\x12\x31\n\x10polRuleActionVal\x18\x02 \x01(\x0b\x32\x17.policy.PolicyRuleValue\"0\n\x12PolicyRuleVariable\x12\x1a\n\x12policyRuleVariable\x18\x01 \x01(\t\"*\n\x0fPolicyRuleValue\x12\x17\n\x0fpolicyRuleValue\x18\x01 \x01(\t\"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*$\n\tRuleState\x12\x0b\n\x07PLANNED\x10\x00\x12\n\n\x06\x41\x43TIVE\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.service.ServiceId\x1a\x16.policy.PolicyRuleList\"\x00\x62\x06proto3')
  ,
  dependencies=[context__pb2.DESCRIPTOR,service__pb2.DESCRIPTOR,])

_RULESTATE = _descriptor.EnumDescriptor(
  name='RuleState',
  full_name='policy.RuleState',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='PLANNED', index=0, number=0,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ACTIVE', index=1, number=1,
      serialized_options=None,
      type=None),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=918,
  serialized_end=954,
)
_sym_db.RegisterEnumDescriptor(_RULESTATE)

RuleState = enum_type_wrapper.EnumTypeWrapper(_RULESTATE)
PLANNED = 0
ACTIVE = 1



_POLICYRULELIST = _descriptor.Descriptor(
  name='PolicyRuleList',
  full_name='policy.PolicyRuleList',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=54,
  serialized_end=114,
)


_POLICYRULE = _descriptor.Descriptor(
  name='PolicyRule',
  full_name='policy.PolicyRule',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  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),
    _descriptor.FieldDescriptor(
      name='serviceList', full_name='policy.PolicyRule.serviceList', index=1,
      number=2, 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),
    _descriptor.FieldDescriptor(
      name='deviceList', full_name='policy.PolicyRule.deviceList', index=2,
      number=3, 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),
    _descriptor.FieldDescriptor(
      name='policyRuleType', full_name='policy.PolicyRule.policyRuleType', 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,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='PolicyRulePriority', full_name='policy.PolicyRule.PolicyRulePriority', 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,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='polRuleConditionList', full_name='policy.PolicyRule.polRuleConditionList', index=5,
      number=6, 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),
    _descriptor.FieldDescriptor(
      name='polRuleActionList', full_name='policy.PolicyRule.polRuleActionList', 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=117,
  serialized_end=417,
)


_POLICYRULEID = _descriptor.Descriptor(
  name='PolicyRuleId',
  full_name='policy.PolicyRuleId',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=419,
  serialized_end=462,
)


_POLICYRULECONDITION = _descriptor.Descriptor(
  name='PolicyRuleCondition',
  full_name='policy.PolicyRuleCondition',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='polRuleConditionVar', full_name='policy.PolicyRuleCondition.polRuleConditionVar', 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),
    _descriptor.FieldDescriptor(
      name='polRuleConditionVal', full_name='policy.PolicyRuleCondition.polRuleConditionVal', index=1,
      number=2, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=465,
  serialized_end=597,
)


_POLICYRULEACTION = _descriptor.Descriptor(
  name='PolicyRuleAction',
  full_name='policy.PolicyRuleAction',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='polRuleActionVar', full_name='policy.PolicyRuleAction.polRuleActionVar', 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),
    _descriptor.FieldDescriptor(
      name='polRuleActionVal', full_name='policy.PolicyRuleAction.polRuleActionVal', index=1,
      number=2, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=599,
  serialized_end=722,
)


_POLICYRULEVARIABLE = _descriptor.Descriptor(
  name='PolicyRuleVariable',
  full_name='policy.PolicyRuleVariable',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='policyRuleVariable', full_name='policy.PolicyRuleVariable.policyRuleVariable', index=0,
      number=1, 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,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=724,
  serialized_end=772,
)


_POLICYRULEVALUE = _descriptor.Descriptor(
  name='PolicyRuleValue',
  full_name='policy.PolicyRuleValue',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='policyRuleValue', full_name='policy.PolicyRuleValue.policyRuleValue', index=0,
      number=1, 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,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=774,
  serialized_end=816,
)


_POLICYRULESTATE = _descriptor.Descriptor(
  name='PolicyRuleState',
  full_name='policy.PolicyRuleState',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  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),
    _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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=818,
  serialized_end=916,
)

_POLICYRULELIST.fields_by_name['policyRuleList'].message_type = _POLICYRULE
_POLICYRULE.fields_by_name['policyRuleId'].message_type = _POLICYRULEID
_POLICYRULE.fields_by_name['serviceList'].message_type = service__pb2._SERVICEID
_POLICYRULE.fields_by_name['deviceList'].message_type = context__pb2._DEVICEID
_POLICYRULE.fields_by_name['polRuleConditionList'].message_type = _POLICYRULECONDITION
_POLICYRULE.fields_by_name['polRuleActionList'].message_type = _POLICYRULEACTION
_POLICYRULEID.fields_by_name['uuid'].message_type = context__pb2._UUID
_POLICYRULECONDITION.fields_by_name['polRuleConditionVar'].message_type = _POLICYRULEVARIABLE
_POLICYRULECONDITION.fields_by_name['polRuleConditionVal'].message_type = _POLICYRULEVALUE
_POLICYRULEACTION.fields_by_name['polRuleActionVar'].message_type = _POLICYRULEVARIABLE
_POLICYRULEACTION.fields_by_name['polRuleActionVal'].message_type = _POLICYRULEVALUE
_POLICYRULESTATE.fields_by_name['policyRuleId'].message_type = context__pb2._UUID
_POLICYRULESTATE.fields_by_name['policyRuleState'].enum_type = _RULESTATE
DESCRIPTOR.message_types_by_name['PolicyRuleList'] = _POLICYRULELIST
DESCRIPTOR.message_types_by_name['PolicyRule'] = _POLICYRULE
DESCRIPTOR.message_types_by_name['PolicyRuleId'] = _POLICYRULEID
DESCRIPTOR.message_types_by_name['PolicyRuleCondition'] = _POLICYRULECONDITION
DESCRIPTOR.message_types_by_name['PolicyRuleAction'] = _POLICYRULEACTION
DESCRIPTOR.message_types_by_name['PolicyRuleVariable'] = _POLICYRULEVARIABLE
DESCRIPTOR.message_types_by_name['PolicyRuleValue'] = _POLICYRULEVALUE
DESCRIPTOR.message_types_by_name['PolicyRuleState'] = _POLICYRULESTATE
DESCRIPTOR.enum_types_by_name['RuleState'] = _RULESTATE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

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

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

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

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

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

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

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

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



_POLICYSERVICE = _descriptor.ServiceDescriptor(
  name='PolicyService',
  full_name='policy.PolicyService',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  serialized_start=957,
  serialized_end=1353,
  methods=[
  _descriptor.MethodDescriptor(
    name='PolicyAdd',
    full_name='policy.PolicyService.PolicyAdd',
    index=0,
    containing_service=None,
    input_type=_POLICYRULE,
    output_type=_POLICYRULESTATE,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='PolicyUpdate',
    full_name='policy.PolicyService.PolicyUpdate',
    index=1,
    containing_service=None,
    input_type=_POLICYRULE,
    output_type=_POLICYRULESTATE,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='PolicyDelete',
    full_name='policy.PolicyService.PolicyDelete',
    index=2,
    containing_service=None,
    input_type=_POLICYRULE,
    output_type=_POLICYRULESTATE,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='GetPolicy',
    full_name='policy.PolicyService.GetPolicy',
    index=3,
    containing_service=None,
    input_type=_POLICYRULEID,
    output_type=_POLICYRULE,
    serialized_options=None,
  ),
  _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,
  ),
  _descriptor.MethodDescriptor(
    name='GetPolicyByServiceId',
    full_name='policy.PolicyService.GetPolicyByServiceId',
    index=5,
    containing_service=None,
    input_type=service__pb2._SERVICEID,
    output_type=_POLICYRULELIST,
    serialized_options=None,
  ),
])
_sym_db.RegisterServiceDescriptor(_POLICYSERVICE)

DESCRIPTOR.services_by_name['PolicyService'] = _POLICYSERVICE

# @@protoc_insertion_point(module_scope)
