-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsensor_pb2.py
71 lines (64 loc) · 6.09 KB
/
sensor_pb2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: sensor.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
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
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0csensor.proto\x12\x04grpc\"T\n\x11\x44isconnectRequest\x12\x16\n\x0erequester_port\x18\x01 \x01(\x05\x12\x14\n\x0creplier_port\x18\x02 \x01(\x05\x12\x11\n\tis_master\x18\x03 \x01(\x08\"1\n\x0f\x44isconnectReply\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"A\n\x11\x41\x64\x64\x43onnectRequest\x12\x16\n\x0erequester_port\x18\x01 \x01(\x05\x12\x14\n\x0creplier_port\x18\x02 \x01(\x05\"1\n\x0f\x41\x64\x64\x43onnectReply\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x11\n\x0fIsMasterRequest\"\x1f\n\rIsMasterReply\x12\x0e\n\x06master\x18\x01 \x01(\x08\"8\n\x14SensorConnectRequest\x12\x11\n\tsensor_id\x18\x01 \x01(\x05\x12\r\n\x05\x61larm\x18\x02 \x01(\x08\"7\n\x15SensorConnectResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x14\n\x12ResetSensorRequest\"5\n\x13ResetSensorResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\"\n\x0eSignoutRequest\x12\x10\n\x08train_id\x18\x01 \x01(\x05\".\n\x0cSignoutReply\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"!\n\rSignupRequest\x12\x10\n\x08train_id\x18\x01 \x01(\x05\"-\n\x0bSignupReply\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\'\n\x13TrainConnectRequest\x12\x10\n\x08train_id\x18\x01 \x01(\x05\"X\n\x11TrainConnectReply\x12\x10\n\x08train_id\x18\x01 \x01(\x05\x12\r\n\x05\x61larm\x18\x02 \x01(\x08\x12\x11\n\tnew_speed\x18\x03 \x01(\x05\x12\x0f\n\x07message\x18\x04 \x01(\t\"B\n\x14SensorMessageRequest\x12\n\n\x02id\x18\x01 \x01(\x05\x12\r\n\x05\x61larm\x18\x02 \x01(\x08\x12\x0f\n\x07message\x18\x03 \x01(\t\"D\n\x0eSensorResponse\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x15\n\rerror_message\x18\x03 \x01(\t\"N\n\x17OtherTrainStatusRequest\x12\x1b\n\x13requesting_train_id\x18\x01 \x01(\x05\x12\x16\n\x0eother_train_id\x18\x02 \x01(\x05\"&\n\x12TrainStatusRequest\x12\x10\n\x08train_id\x18\x01 \x01(\x05\"H\n\x13TrainStatusResponse\x12\x10\n\x08train_id\x18\x01 \x01(\x05\x12\x10\n\x08location\x18\x02 \x01(\x01\x12\r\n\x05speed\x18\x03 \x01(\x01\"G\n\x12TrainUpdateRequest\x12\x10\n\x08train_id\x18\x01 \x01(\x05\x12\x10\n\x08location\x18\x02 \x01(\x01\x12\r\n\x05speed\x18\x03 \x01(\x01\"&\n\x13TrainUpdateResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x32\xb8\x06\n\x06Server\x12\x30\n\x06Signup\x12\x13.grpc.SignupRequest\x1a\x11.grpc.SignupReply\x12\x33\n\x07Signout\x12\x14.grpc.SignoutRequest\x1a\x12.grpc.SignoutReply\x12G\n\x0eGetTrainStatus\x12\x18.grpc.TrainStatusRequest\x1a\x19.grpc.TrainStatusResponse\"\x00\x12J\n\x11UpdateTrainStatus\x12\x18.grpc.TrainUpdateRequest\x1a\x19.grpc.TrainUpdateResponse\"\x00\x12Q\n\x13GetOtherTrainStatus\x12\x1d.grpc.OtherTrainStatusRequest\x1a\x19.grpc.TrainStatusResponse\"\x00\x12G\n\x11SendSensorMessage\x12\x1a.grpc.SensorMessageRequest\x1a\x14.grpc.SensorResponse\"\x00\x12K\n\x11TrainSensorStream\x12\x19.grpc.TrainConnectRequest\x1a\x17.grpc.TrainConnectReply\"\x00\x30\x01\x12\x44\n\x0bResetSensor\x12\x18.grpc.ResetSensorRequest\x1a\x19.grpc.ResetSensorResponse\"\x00\x12J\n\rSensorConnect\x12\x1a.grpc.SensorConnectRequest\x1a\x1b.grpc.SensorConnectResponse\"\x00\x12;\n\rIsMasterQuery\x12\x15.grpc.IsMasterRequest\x1a\x13.grpc.IsMasterReply\x12<\n\nAddConnect\x12\x17.grpc.AddConnectRequest\x1a\x15.grpc.AddConnectReply\x12<\n\nDisconnect\x12\x17.grpc.DisconnectRequest\x1a\x15.grpc.DisconnectReplyb\x06proto3')
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sensor_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_DISCONNECTREQUEST._serialized_start=22
_DISCONNECTREQUEST._serialized_end=106
_DISCONNECTREPLY._serialized_start=108
_DISCONNECTREPLY._serialized_end=157
_ADDCONNECTREQUEST._serialized_start=159
_ADDCONNECTREQUEST._serialized_end=224
_ADDCONNECTREPLY._serialized_start=226
_ADDCONNECTREPLY._serialized_end=275
_ISMASTERREQUEST._serialized_start=277
_ISMASTERREQUEST._serialized_end=294
_ISMASTERREPLY._serialized_start=296
_ISMASTERREPLY._serialized_end=327
_SENSORCONNECTREQUEST._serialized_start=329
_SENSORCONNECTREQUEST._serialized_end=385
_SENSORCONNECTRESPONSE._serialized_start=387
_SENSORCONNECTRESPONSE._serialized_end=442
_RESETSENSORREQUEST._serialized_start=444
_RESETSENSORREQUEST._serialized_end=464
_RESETSENSORRESPONSE._serialized_start=466
_RESETSENSORRESPONSE._serialized_end=519
_SIGNOUTREQUEST._serialized_start=521
_SIGNOUTREQUEST._serialized_end=555
_SIGNOUTREPLY._serialized_start=557
_SIGNOUTREPLY._serialized_end=603
_SIGNUPREQUEST._serialized_start=605
_SIGNUPREQUEST._serialized_end=638
_SIGNUPREPLY._serialized_start=640
_SIGNUPREPLY._serialized_end=685
_TRAINCONNECTREQUEST._serialized_start=687
_TRAINCONNECTREQUEST._serialized_end=726
_TRAINCONNECTREPLY._serialized_start=728
_TRAINCONNECTREPLY._serialized_end=816
_SENSORMESSAGEREQUEST._serialized_start=818
_SENSORMESSAGEREQUEST._serialized_end=884
_SENSORRESPONSE._serialized_start=886
_SENSORRESPONSE._serialized_end=954
_OTHERTRAINSTATUSREQUEST._serialized_start=956
_OTHERTRAINSTATUSREQUEST._serialized_end=1034
_TRAINSTATUSREQUEST._serialized_start=1036
_TRAINSTATUSREQUEST._serialized_end=1074
_TRAINSTATUSRESPONSE._serialized_start=1076
_TRAINSTATUSRESPONSE._serialized_end=1148
_TRAINUPDATEREQUEST._serialized_start=1150
_TRAINUPDATEREQUEST._serialized_end=1221
_TRAINUPDATERESPONSE._serialized_start=1223
_TRAINUPDATERESPONSE._serialized_end=1261
_SERVER._serialized_start=1264
_SERVER._serialized_end=2088
# @@protoc_insertion_point(module_scope)