# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: automation.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() import context_pb2 as context__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='automation.proto', package='automation', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, serialized_pb=b'\n\x10\x61utomation.proto\x12\nautomation\x1a\rcontext.proto\"R\n\x0c\x44\x65viceRoleId\x12 \n\tdevRoleId\x18\x01 \x01(\x0b\x32\r.context.Uuid\x12 \n\x05\x64\x65vId\x18\x02 \x01(\x0b\x32\x11.context.DeviceId\"j\n\nDeviceRole\x12+\n\tdevRoleId\x18\x01 \x01(\x0b\x32\x18.automation.DeviceRoleId\x12/\n\x0b\x64\x65vRoleType\x18\x02 \x01(\x0e\x32\x1a.automation.DeviceRoleType\"9\n\x0e\x44\x65viceRoleList\x12\'\n\x07\x64\x65vRole\x18\x01 \x03(\x0b\x32\x16.automation.DeviceRole\"p\n\x0f\x44\x65viceRoleState\x12+\n\tdevRoleId\x18\x01 \x01(\x0b\x32\x18.automation.DeviceRoleId\x12\x30\n\x0c\x64\x65vRoleState\x18\x02 \x01(\x0e\x32\x1a.automation.ZtpDeviceState*H\n\x0e\x44\x65viceRoleType\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07\x44\x45V_OPS\x10\x01\x12\x0c\n\x08\x44\x45V_CONF\x10\x02\x12\x11\n\rPIPELINE_CONF\x10\x03*n\n\x0eZtpDeviceState\x12\x0b\n\x07PLANNED\x10\x00\x12\x17\n\x13POTENCIAL_AVAILABLE\x10\x01\x12\x12\n\x0ePOTENCIAL_BUSY\x10\x02\x12\r\n\tINSTALLED\x10\x03\x12\x13\n\x0fPENDING_REMOVAL\x10\x04\x32\xc0\x03\n\x11\x41utomationService\x12\x46\n\x10ZtpGetDeviceRole\x12\x18.automation.DeviceRoleId\x1a\x16.automation.DeviceRole\"\x00\x12N\n\x1bZtpGetDeviceRolesByDeviceId\x12\x11.context.DeviceId\x1a\x1a.automation.DeviceRoleList\"\x00\x12?\n\x06ZtpAdd\x12\x16.automation.DeviceRole\x1a\x1b.automation.DeviceRoleState\"\x00\x12\x42\n\tZtpUpdate\x12\x16.automation.DeviceRole\x1a\x1b.automation.DeviceRoleState\"\x00\x12\x42\n\tZtpDelete\x12\x16.automation.DeviceRole\x1a\x1b.automation.DeviceRoleState\"\x00\x12J\n\x16ZtpDeleteAllByDeviceId\x12\x11.context.DeviceId\x1a\x1b.automation.DeviceRoleState\"\x00\x62\x06proto3' , dependencies=[context__pb2.DESCRIPTOR,]) _DEVICEROLETYPE = _descriptor.EnumDescriptor( name='DeviceRoleType', full_name='automation.DeviceRoleType', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='NONE', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='DEV_OPS', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='DEV_CONF', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='PIPELINE_CONF', index=3, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=412, serialized_end=484, ) _sym_db.RegisterEnumDescriptor(_DEVICEROLETYPE) DeviceRoleType = enum_type_wrapper.EnumTypeWrapper(_DEVICEROLETYPE) _ZTPDEVICESTATE = _descriptor.EnumDescriptor( name='ZtpDeviceState', full_name='automation.ZtpDeviceState', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='PLANNED', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='POTENCIAL_AVAILABLE', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='POTENCIAL_BUSY', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='INSTALLED', index=3, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='PENDING_REMOVAL', index=4, number=4, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=486, serialized_end=596, ) _sym_db.RegisterEnumDescriptor(_ZTPDEVICESTATE) ZtpDeviceState = enum_type_wrapper.EnumTypeWrapper(_ZTPDEVICESTATE) NONE = 0 DEV_OPS = 1 DEV_CONF = 2 PIPELINE_CONF = 3 PLANNED = 0 POTENCIAL_AVAILABLE = 1 POTENCIAL_BUSY = 2 INSTALLED = 3 PENDING_REMOVAL = 4 _DEVICEROLEID = _descriptor.Descriptor( name='DeviceRoleId', full_name='automation.DeviceRoleId', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='devRoleId', full_name='automation.DeviceRoleId.devRoleId', 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='devId', full_name='automation.DeviceRoleId.devId', 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, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=47, serialized_end=129, ) _DEVICEROLE = _descriptor.Descriptor( name='DeviceRole', full_name='automation.DeviceRole', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='devRoleId', full_name='automation.DeviceRole.devRoleId', 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='devRoleType', full_name='automation.DeviceRole.devRoleType', 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=131, serialized_end=237, ) _DEVICEROLELIST = _descriptor.Descriptor( name='DeviceRoleList', full_name='automation.DeviceRoleList', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='devRole', full_name='automation.DeviceRoleList.devRole', 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=239, serialized_end=296, ) _DEVICEROLESTATE = _descriptor.Descriptor( name='DeviceRoleState', full_name='automation.DeviceRoleState', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='devRoleId', full_name='automation.DeviceRoleState.devRoleId', 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='devRoleState', full_name='automation.DeviceRoleState.devRoleState', 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=298, serialized_end=410, ) _DEVICEROLEID.fields_by_name['devRoleId'].message_type = context__pb2._UUID _DEVICEROLEID.fields_by_name['devId'].message_type = context__pb2._DEVICEID _DEVICEROLE.fields_by_name['devRoleId'].message_type = _DEVICEROLEID _DEVICEROLE.fields_by_name['devRoleType'].enum_type = _DEVICEROLETYPE _DEVICEROLELIST.fields_by_name['devRole'].message_type = _DEVICEROLE _DEVICEROLESTATE.fields_by_name['devRoleId'].message_type = _DEVICEROLEID _DEVICEROLESTATE.fields_by_name['devRoleState'].enum_type = _ZTPDEVICESTATE DESCRIPTOR.message_types_by_name['DeviceRoleId'] = _DEVICEROLEID DESCRIPTOR.message_types_by_name['DeviceRole'] = _DEVICEROLE DESCRIPTOR.message_types_by_name['DeviceRoleList'] = _DEVICEROLELIST DESCRIPTOR.message_types_by_name['DeviceRoleState'] = _DEVICEROLESTATE DESCRIPTOR.enum_types_by_name['DeviceRoleType'] = _DEVICEROLETYPE DESCRIPTOR.enum_types_by_name['ZtpDeviceState'] = _ZTPDEVICESTATE _sym_db.RegisterFileDescriptor(DESCRIPTOR) DeviceRoleId = _reflection.GeneratedProtocolMessageType('DeviceRoleId', (_message.Message,), { 'DESCRIPTOR' : _DEVICEROLEID, '__module__' : 'automation_pb2' # @@protoc_insertion_point(class_scope:automation.DeviceRoleId) }) _sym_db.RegisterMessage(DeviceRoleId) DeviceRole = _reflection.GeneratedProtocolMessageType('DeviceRole', (_message.Message,), { 'DESCRIPTOR' : _DEVICEROLE, '__module__' : 'automation_pb2' # @@protoc_insertion_point(class_scope:automation.DeviceRole) }) _sym_db.RegisterMessage(DeviceRole) DeviceRoleList = _reflection.GeneratedProtocolMessageType('DeviceRoleList', (_message.Message,), { 'DESCRIPTOR' : _DEVICEROLELIST, '__module__' : 'automation_pb2' # @@protoc_insertion_point(class_scope:automation.DeviceRoleList) }) _sym_db.RegisterMessage(DeviceRoleList) DeviceRoleState = _reflection.GeneratedProtocolMessageType('DeviceRoleState', (_message.Message,), { 'DESCRIPTOR' : _DEVICEROLESTATE, '__module__' : 'automation_pb2' # @@protoc_insertion_point(class_scope:automation.DeviceRoleState) }) _sym_db.RegisterMessage(DeviceRoleState) _AUTOMATIONSERVICE = _descriptor.ServiceDescriptor( name='AutomationService', full_name='automation.AutomationService', file=DESCRIPTOR, index=0, serialized_options=None, create_key=_descriptor._internal_create_key, serialized_start=599, serialized_end=1047, methods=[ _descriptor.MethodDescriptor( name='ZtpGetDeviceRole', full_name='automation.AutomationService.ZtpGetDeviceRole', index=0, containing_service=None, input_type=_DEVICEROLEID, output_type=_DEVICEROLE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ZtpGetDeviceRolesByDeviceId', full_name='automation.AutomationService.ZtpGetDeviceRolesByDeviceId', index=1, containing_service=None, input_type=context__pb2._DEVICEID, output_type=_DEVICEROLELIST, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ZtpAdd', full_name='automation.AutomationService.ZtpAdd', index=2, containing_service=None, input_type=_DEVICEROLE, output_type=_DEVICEROLESTATE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ZtpUpdate', full_name='automation.AutomationService.ZtpUpdate', index=3, containing_service=None, input_type=_DEVICEROLE, output_type=_DEVICEROLESTATE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ZtpDelete', full_name='automation.AutomationService.ZtpDelete', index=4, containing_service=None, input_type=_DEVICEROLE, output_type=_DEVICEROLESTATE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ZtpDeleteAllByDeviceId', full_name='automation.AutomationService.ZtpDeleteAllByDeviceId', index=5, containing_service=None, input_type=context__pb2._DEVICEID, output_type=_DEVICEROLESTATE, serialized_options=None, create_key=_descriptor._internal_create_key, ), ]) _sym_db.RegisterServiceDescriptor(_AUTOMATIONSERVICE) DESCRIPTOR.services_by_name['AutomationService'] = _AUTOMATIONSERVICE # @@protoc_insertion_point(module_scope)