# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: deviceapis/device/v1/deviceapis_device_relay_v1.proto
"""Generated protocol buffer code."""
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
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
from deviceapis.device.v1 import deviceapis_device_common_v1_pb2 as deviceapis_dot_device_dot_v1_dot_deviceapis__device__common__v1__pb2
from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5deviceapis/device/v1/deviceapis_device_relay_v1.proto\x12\x14\x64\x65viceapis.device.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x36\x64\x65viceapis/device/v1/deviceapis_device_common_v1.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"I\n\x15PostRelayCloseRequest\x12\x30\n\x0brelay_index\x18\x01 \x01(\x05\x42\x1b\x92\x41\x15J\x01\x31Y\x00\x00\x00\x00\xc0\xff\xdf@i\x00\x00\x00\x00\x00\x00\xf0?\xe0\x41\x02\"\xb5\x01\n\x16PostRelayCloseResponse\x12\x43\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x32.deviceapis.device.v1.PostRelayCloseResponse.ErrorH\x00\x1aN\n\x05\x45rror\x12;\n\nvalidation\x18\x01 \x01(\x0b\x32%.deviceapis.device.v1.ValidationErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"S\n\x1fPostRelayOpenPermanentlyRequest\x12\x30\n\x0brelay_index\x18\x01 \x01(\x05\x42\x1b\x92\x41\x15J\x01\x31Y\x00\x00\x00\x00\xc0\xff\xdf@i\x00\x00\x00\x00\x00\x00\xf0?\xe0\x41\x02\"\xc9\x01\n PostRelayOpenPermanentlyResponse\x12M\n\x05\x65rror\x18\x01 \x01(\x0b\x32<.deviceapis.device.v1.PostRelayOpenPermanentlyResponse.ErrorH\x00\x1aN\n\x05\x45rror\x12;\n\nvalidation\x18\x01 \x01(\x0b\x32%.deviceapis.device.v1.ValidationErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"~\n\x14PostRelayOpenRequest\x12\x30\n\x0brelay_index\x18\x01 \x01(\x05\x42\x1b\x92\x41\x15J\x01\x31Y\x00\x00\x00\x00\xc0\xff\xdf@i\x00\x00\x00\x00\x00\x00\xf0?\xe0\x41\x02\x12\x34\n\x11\x63urrent_open_time\x18\x02 \x01(\x05\x42\x19\x92\x41\x16J\x02\x31\x30Y\x00\x00\x00\x00\x00\x00i@i\x00\x00\x00\x00\x00\x00\xf0?\"\xb3\x01\n\x15PostRelayOpenResponse\x12\x42\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x31.deviceapis.device.v1.PostRelayOpenResponse.ErrorH\x00\x1aN\n\x05\x45rror\x12;\n\nvalidation\x18\x01 \x01(\x0b\x32%.deviceapis.device.v1.ValidationErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"\x80\x01\n\x19\x45\x64itRelayPropsOpenRequest\x12\x32\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1f.deviceapis.device.v1.RelayOpenB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x80\x01\n\x19\x45\x64itRelayPropsDtmfRequest\x12\x32\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1f.deviceapis.device.v1.RelayDtmfB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xbd\x01\n\x1a\x45\x64itRelayPropsOpenResponse\x12G\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x36.deviceapis.device.v1.EditRelayPropsOpenResponse.ErrorH\x00\x1aN\n\x05\x45rror\x12;\n\nvalidation\x18\x01 \x01(\x0b\x32%.deviceapis.device.v1.ValidationErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"\xbd\x01\n\x1a\x45\x64itRelayPropsDtmfResponse\x12G\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x36.deviceapis.device.v1.EditRelayPropsDtmfResponse.ErrorH\x00\x1aN\n\x05\x45rror\x12;\n\nvalidation\x18\x01 \x01(\x0b\x32%.deviceapis.device.v1.ValidationErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"\x1b\n\x19GetRelayStatusListRequest\"\xe6\x01\n\nRelayState\x12\x30\n\x0brelay_index\x18\x01 \x01(\x05\x42\x1b\x92\x41\x15J\x01\x31Y\x00\x00\x00\x00\xc0\xff\xdf@i\x00\x00\x00\x00\x00\x00\xf0?\xe0\x41\x02\x12M\n\nstate_type\x18\x02 \x01(\x0e\x32*.deviceapis.device.v1.RelayState.StateTypeB\r\x92\x41\nJ\x08\"CLOSED\"\"W\n\tStateType\x12\x16\n\x12STATE_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0eOPEN_TEMPORARY\x10\x01\x12\n\n\x06\x43LOSED\x10\x02\x12\x12\n\x0eOPEN_PERMANENT\x10\x03\"L\n\x1aGetRelayStatusListResponse\x12.\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32 .deviceapis.device.v1.RelayState\"\x19\n\x17GetRelayOpenListRequest\"\x19\n\x17GetRelayDtmfListRequest\"\xc6\x02\n\tRelayOpen\x12\x30\n\x0brelay_index\x18\x01 \x01(\x05\x42\x1b\x92\x41\x15J\x01\x31Y\x00\x00\x00\x00\xc0\xff\xdf@i\x00\x00\x00\x00\x00\x00\xf0?\xe0\x41\x02\x12S\n\tlock_type\x18\x02 \x01(\x0e\x32(.deviceapis.device.v1.RelayOpen.LockTypeB\x16\x92\x41\x13J\x11\"ELECTROMAGNETIC\"\x12\x34\n\x11open_time_general\x18\x03 \x01(\x05\x42\x19\x92\x41\x16J\x02\x31\x30Y\x00\x00\x00\x00\x00\x00i@i\x00\x00\x00\x00\x00\x00\xf0?\x12-\n\x13open_time_emergency\x18\x04 \x01(\x05\x42\x10\x92\x41\rJ\x02\x31\x30Y\x00\x00\x00\x00\x00 \xac@\"M\n\x08LockType\x12\x15\n\x11LOCK_TYPE_UNKNOWN\x10\x00\x12\x13\n\x0f\x45LECTROMAGNETIC\x10\x01\x12\x15\n\x11\x45LECTROMECHANICAL\x10\x02\"I\n\x18GetRelayOpenListResponse\x12-\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x1f.deviceapis.device.v1.RelayOpen\"n\n\tRelayDtmf\x12\x30\n\x0brelay_index\x18\x01 \x01(\x05\x42\x1b\x92\x41\x15J\x01\x31Y\x00\x00\x00\x00\xc0\xff\xdf@i\x00\x00\x00\x00\x00\x00\xf0?\xe0\x41\x02\x12/\n\tdtmf_code\x18\x02 \x01(\tB\x1c\x92\x41\x19J\x01\x35x\x01\x80\x01\x01\x8a\x01\x0e^[0-9*#]{1,1}$\"I\n\x18GetRelayDtmfListResponse\x12-\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x1f.deviceapis.device.v1.RelayDtmf2\xea\n\n\x0cRelayService\x12\x9d\x01\n\x0ePostRelayClose\x12+.deviceapis.device.v1.PostRelayCloseRequest\x1a,.deviceapis.device.v1.PostRelayCloseResponse\"0\x82\xd3\xe4\x93\x02*\"(/device/api/v1/relay/{relay_index}/close\x12\x9c\x01\n\rPostRelayOpen\x12*.deviceapis.device.v1.PostRelayOpenRequest\x1a+.deviceapis.device.v1.PostRelayOpenResponse\"2\x82\xd3\xe4\x93\x02,\"\'/device/api/v1/relay/{relay_index}/open:\x01*\x12\xc6\x01\n\x18PostRelayOpenPermanently\x12\x35.deviceapis.device.v1.PostRelayOpenPermanentlyRequest\x1a\x36.deviceapis.device.v1.PostRelayOpenPermanentlyResponse\";\x82\xd3\xe4\x93\x02\x35\"3/device/api/v1/relay/{relay_index}/open_permanently\x12\xb9\x01\n\x12\x45\x64itRelayPropsOpen\x12/.deviceapis.device.v1.EditRelayPropsOpenRequest\x1a\x30.deviceapis.device.v1.EditRelayPropsOpenResponse\"@\x82\xd3\xe4\x93\x02:22/device/api/v1/relay/{data.relay_index}/props/open:\x04\x64\x61ta\x12\x99\x01\n\x10GetRelayOpenList\x12-.deviceapis.device.v1.GetRelayOpenListRequest\x1a..deviceapis.device.v1.GetRelayOpenListResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/device/api/v1/relay/open/list\x12\xb9\x01\n\x12\x45\x64itRelayPropsDtmf\x12/.deviceapis.device.v1.EditRelayPropsDtmfRequest\x1a\x30.deviceapis.device.v1.EditRelayPropsDtmfResponse\"@\x82\xd3\xe4\x93\x02:22/device/api/v1/relay/{data.relay_index}/props/dtmf:\x04\x64\x61ta\x12\x99\x01\n\x10GetRelayDtmfList\x12-.deviceapis.device.v1.GetRelayDtmfListRequest\x1a..deviceapis.device.v1.GetRelayDtmfListResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/device/api/v1/relay/dtmf/list\x12\xa1\x01\n\x12GetRelayStatusList\x12/.deviceapis.device.v1.GetRelayStatusListRequest\x1a\x30.deviceapis.device.v1.GetRelayStatusListResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /device/api/v1/relay/status/listB\xaf\x01\n\x17ru.deviceapis.device.v1B\x17\x44\x65viceapisDeviceV1ProtoH\x03P\x00Z\x15/deviceapis_device_v1\xd8\x01\x01\xf8\x01\x01\xa2\x02\x12\x44\x45VICEAPISDEVICEV1\xaa\x02\x14\x44\x65viceapis.Device.V1\xca\x02\x14\x44\x65viceapis\\Device\\V1\xea\x02\x16\x44\x65viceapis::Device::V1b\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'deviceapis.device.v1.deviceapis_device_relay_v1_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'\n\027ru.deviceapis.device.v1B\027DeviceapisDeviceV1ProtoH\003P\000Z\025/deviceapis_device_v1\330\001\001\370\001\001\242\002\022DEVICEAPISDEVICEV1\252\002\024Deviceapis.Device.V1\312\002\024Deviceapis\\Device\\V1\352\002\026Deviceapis::Device::V1'
  _POSTRELAYCLOSEREQUEST.fields_by_name['relay_index']._options = None
  _POSTRELAYCLOSEREQUEST.fields_by_name['relay_index']._serialized_options = b'\222A\025J\0011Y\000\000\000\000\300\377\337@i\000\000\000\000\000\000\360?\340A\002'
  _POSTRELAYOPENPERMANENTLYREQUEST.fields_by_name['relay_index']._options = None
  _POSTRELAYOPENPERMANENTLYREQUEST.fields_by_name['relay_index']._serialized_options = b'\222A\025J\0011Y\000\000\000\000\300\377\337@i\000\000\000\000\000\000\360?\340A\002'
  _POSTRELAYOPENREQUEST.fields_by_name['relay_index']._options = None
  _POSTRELAYOPENREQUEST.fields_by_name['relay_index']._serialized_options = b'\222A\025J\0011Y\000\000\000\000\300\377\337@i\000\000\000\000\000\000\360?\340A\002'
  _POSTRELAYOPENREQUEST.fields_by_name['current_open_time']._options = None
  _POSTRELAYOPENREQUEST.fields_by_name['current_open_time']._serialized_options = b'\222A\026J\00210Y\000\000\000\000\000\000i@i\000\000\000\000\000\000\360?'
  _EDITRELAYPROPSOPENREQUEST.fields_by_name['data']._options = None
  _EDITRELAYPROPSOPENREQUEST.fields_by_name['data']._serialized_options = b'\340A\002'
  _EDITRELAYPROPSDTMFREQUEST.fields_by_name['data']._options = None
  _EDITRELAYPROPSDTMFREQUEST.fields_by_name['data']._serialized_options = b'\340A\002'
  _RELAYSTATE.fields_by_name['relay_index']._options = None
  _RELAYSTATE.fields_by_name['relay_index']._serialized_options = b'\222A\025J\0011Y\000\000\000\000\300\377\337@i\000\000\000\000\000\000\360?\340A\002'
  _RELAYSTATE.fields_by_name['state_type']._options = None
  _RELAYSTATE.fields_by_name['state_type']._serialized_options = b'\222A\nJ\010\"CLOSED\"'
  _RELAYOPEN.fields_by_name['relay_index']._options = None
  _RELAYOPEN.fields_by_name['relay_index']._serialized_options = b'\222A\025J\0011Y\000\000\000\000\300\377\337@i\000\000\000\000\000\000\360?\340A\002'
  _RELAYOPEN.fields_by_name['lock_type']._options = None
  _RELAYOPEN.fields_by_name['lock_type']._serialized_options = b'\222A\023J\021\"ELECTROMAGNETIC\"'
  _RELAYOPEN.fields_by_name['open_time_general']._options = None
  _RELAYOPEN.fields_by_name['open_time_general']._serialized_options = b'\222A\026J\00210Y\000\000\000\000\000\000i@i\000\000\000\000\000\000\360?'
  _RELAYOPEN.fields_by_name['open_time_emergency']._options = None
  _RELAYOPEN.fields_by_name['open_time_emergency']._serialized_options = b'\222A\rJ\00210Y\000\000\000\000\000 \254@'
  _RELAYDTMF.fields_by_name['relay_index']._options = None
  _RELAYDTMF.fields_by_name['relay_index']._serialized_options = b'\222A\025J\0011Y\000\000\000\000\300\377\337@i\000\000\000\000\000\000\360?\340A\002'
  _RELAYDTMF.fields_by_name['dtmf_code']._options = None
  _RELAYDTMF.fields_by_name['dtmf_code']._serialized_options = b'\222A\031J\0015x\001\200\001\001\212\001\016^[0-9*#]{1,1}$'
  _RELAYSERVICE.methods_by_name['PostRelayClose']._options = None
  _RELAYSERVICE.methods_by_name['PostRelayClose']._serialized_options = b'\202\323\344\223\002*\"(/device/api/v1/relay/{relay_index}/close'
  _RELAYSERVICE.methods_by_name['PostRelayOpen']._options = None
  _RELAYSERVICE.methods_by_name['PostRelayOpen']._serialized_options = b'\202\323\344\223\002,\"\'/device/api/v1/relay/{relay_index}/open:\001*'
  _RELAYSERVICE.methods_by_name['PostRelayOpenPermanently']._options = None
  _RELAYSERVICE.methods_by_name['PostRelayOpenPermanently']._serialized_options = b'\202\323\344\223\0025\"3/device/api/v1/relay/{relay_index}/open_permanently'
  _RELAYSERVICE.methods_by_name['EditRelayPropsOpen']._options = None
  _RELAYSERVICE.methods_by_name['EditRelayPropsOpen']._serialized_options = b'\202\323\344\223\002:22/device/api/v1/relay/{data.relay_index}/props/open:\004data'
  _RELAYSERVICE.methods_by_name['GetRelayOpenList']._options = None
  _RELAYSERVICE.methods_by_name['GetRelayOpenList']._serialized_options = b'\202\323\344\223\002 \022\036/device/api/v1/relay/open/list'
  _RELAYSERVICE.methods_by_name['EditRelayPropsDtmf']._options = None
  _RELAYSERVICE.methods_by_name['EditRelayPropsDtmf']._serialized_options = b'\202\323\344\223\002:22/device/api/v1/relay/{data.relay_index}/props/dtmf:\004data'
  _RELAYSERVICE.methods_by_name['GetRelayDtmfList']._options = None
  _RELAYSERVICE.methods_by_name['GetRelayDtmfList']._serialized_options = b'\202\323\344\223\002 \022\036/device/api/v1/relay/dtmf/list'
  _RELAYSERVICE.methods_by_name['GetRelayStatusList']._options = None
  _RELAYSERVICE.methods_by_name['GetRelayStatusList']._serialized_options = b'\202\323\344\223\002\"\022 /device/api/v1/relay/status/list'
  _globals['_POSTRELAYCLOSEREQUEST']._serialized_start=280
  _globals['_POSTRELAYCLOSEREQUEST']._serialized_end=353
  _globals['_POSTRELAYCLOSERESPONSE']._serialized_start=356
  _globals['_POSTRELAYCLOSERESPONSE']._serialized_end=537
  _globals['_POSTRELAYCLOSERESPONSE_ERROR']._serialized_start=451
  _globals['_POSTRELAYCLOSERESPONSE_ERROR']._serialized_end=529
  _globals['_POSTRELAYOPENPERMANENTLYREQUEST']._serialized_start=539
  _globals['_POSTRELAYOPENPERMANENTLYREQUEST']._serialized_end=622
  _globals['_POSTRELAYOPENPERMANENTLYRESPONSE']._serialized_start=625
  _globals['_POSTRELAYOPENPERMANENTLYRESPONSE']._serialized_end=826
  _globals['_POSTRELAYOPENPERMANENTLYRESPONSE_ERROR']._serialized_start=451
  _globals['_POSTRELAYOPENPERMANENTLYRESPONSE_ERROR']._serialized_end=529
  _globals['_POSTRELAYOPENREQUEST']._serialized_start=828
  _globals['_POSTRELAYOPENREQUEST']._serialized_end=954
  _globals['_POSTRELAYOPENRESPONSE']._serialized_start=957
  _globals['_POSTRELAYOPENRESPONSE']._serialized_end=1136
  _globals['_POSTRELAYOPENRESPONSE_ERROR']._serialized_start=451
  _globals['_POSTRELAYOPENRESPONSE_ERROR']._serialized_end=529
  _globals['_EDITRELAYPROPSOPENREQUEST']._serialized_start=1139
  _globals['_EDITRELAYPROPSOPENREQUEST']._serialized_end=1267
  _globals['_EDITRELAYPROPSDTMFREQUEST']._serialized_start=1270
  _globals['_EDITRELAYPROPSDTMFREQUEST']._serialized_end=1398
  _globals['_EDITRELAYPROPSOPENRESPONSE']._serialized_start=1401
  _globals['_EDITRELAYPROPSOPENRESPONSE']._serialized_end=1590
  _globals['_EDITRELAYPROPSOPENRESPONSE_ERROR']._serialized_start=451
  _globals['_EDITRELAYPROPSOPENRESPONSE_ERROR']._serialized_end=529
  _globals['_EDITRELAYPROPSDTMFRESPONSE']._serialized_start=1593
  _globals['_EDITRELAYPROPSDTMFRESPONSE']._serialized_end=1782
  _globals['_EDITRELAYPROPSDTMFRESPONSE_ERROR']._serialized_start=451
  _globals['_EDITRELAYPROPSDTMFRESPONSE_ERROR']._serialized_end=529
  _globals['_GETRELAYSTATUSLISTREQUEST']._serialized_start=1784
  _globals['_GETRELAYSTATUSLISTREQUEST']._serialized_end=1811
  _globals['_RELAYSTATE']._serialized_start=1814
  _globals['_RELAYSTATE']._serialized_end=2044
  _globals['_RELAYSTATE_STATETYPE']._serialized_start=1957
  _globals['_RELAYSTATE_STATETYPE']._serialized_end=2044
  _globals['_GETRELAYSTATUSLISTRESPONSE']._serialized_start=2046
  _globals['_GETRELAYSTATUSLISTRESPONSE']._serialized_end=2122
  _globals['_GETRELAYOPENLISTREQUEST']._serialized_start=2124
  _globals['_GETRELAYOPENLISTREQUEST']._serialized_end=2149
  _globals['_GETRELAYDTMFLISTREQUEST']._serialized_start=2151
  _globals['_GETRELAYDTMFLISTREQUEST']._serialized_end=2176
  _globals['_RELAYOPEN']._serialized_start=2179
  _globals['_RELAYOPEN']._serialized_end=2505
  _globals['_RELAYOPEN_LOCKTYPE']._serialized_start=2428
  _globals['_RELAYOPEN_LOCKTYPE']._serialized_end=2505
  _globals['_GETRELAYOPENLISTRESPONSE']._serialized_start=2507
  _globals['_GETRELAYOPENLISTRESPONSE']._serialized_end=2580
  _globals['_RELAYDTMF']._serialized_start=2582
  _globals['_RELAYDTMF']._serialized_end=2692
  _globals['_GETRELAYDTMFLISTRESPONSE']._serialized_start=2694
  _globals['_GETRELAYDTMFLISTRESPONSE']._serialized_end=2767
  _globals['_RELAYSERVICE']._serialized_start=2770
  _globals['_RELAYSERVICE']._serialized_end=4156
# @@protoc_insertion_point(module_scope)
