Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-proto-py
Commits
f439da0e
Commit
f439da0e
authored
Jun 04, 2021
by
Wei Shoulin
Browse files
leve0
parent
60afdbeb
Changes
17
Expand all
Show whitespace changes
Inline
Side-by-side
csst_dfs_proto/cpic/__init__.py
0 → 100644
View file @
f439da0e
csst_dfs_proto/facility/calmerge/__init__.py
0 → 100644
View file @
f439da0e
csst_dfs_proto/facility/detector/__init__.py
0 → 100644
View file @
f439da0e
csst_dfs_proto/facility/detector_pb2.py
→
csst_dfs_proto/facility/detector
/detector
_pb2.py
View file @
f439da0e
This diff is collapsed.
Click to expand it.
csst_dfs_proto/facility/detector_pb2_grpc.py
→
csst_dfs_proto/facility/detector
/detector
_pb2_grpc.py
View file @
f439da0e
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
import
grpc
from
.
import
detector_pb2
as
facility_dot_detector__pb2
from
.
import
detector_pb2
as
facility_dot_detector_
dot_detector_
_pb2
class
DetectorSrvStub
(
object
):
class
DetectorSrvStub
(
object
):
...
@@ -15,39 +15,44 @@ class DetectorSrvStub(object):
...
@@ -15,39 +15,44 @@ class DetectorSrvStub(object):
channel: A grpc.Channel.
channel: A grpc.Channel.
"""
"""
self
.
Find
=
channel
.
unary_unary
(
self
.
Find
=
channel
.
unary_unary
(
'/
facility
.DetectorSrv/Find'
,
'/
detector
.DetectorSrv/Find'
,
request_serializer
=
facility_dot_detector__pb2
.
FindDetectorReq
.
SerializeToString
,
request_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
FindDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
FindDetectorResp
.
FromString
,
response_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
FindDetectorResp
.
FromString
,
)
)
self
.
Get
=
channel
.
unary_unary
(
self
.
Get
=
channel
.
unary_unary
(
'/
facility
.DetectorSrv/Get'
,
'/
detector
.DetectorSrv/Get'
,
request_serializer
=
facility_dot_detector__pb2
.
GetDetectorReq
.
SerializeToString
,
request_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
GetDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
GetDetectorResp
.
FromString
,
response_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
GetDetectorResp
.
FromString
,
)
)
self
.
Write
=
channel
.
unary_unary
(
self
.
Write
=
channel
.
unary_unary
(
'/
facility
.DetectorSrv/Write'
,
'/
detector
.DetectorSrv/Write'
,
request_serializer
=
facility_dot_detector__pb2
.
WriteDetectorReq
.
SerializeToString
,
request_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
WriteDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
WriteDetectorResp
.
FromString
,
response_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
WriteDetectorResp
.
FromString
,
)
)
self
.
Update
=
channel
.
unary_unary
(
self
.
Update
=
channel
.
unary_unary
(
'/facility.DetectorSrv/Update'
,
'/detector.DetectorSrv/Update'
,
request_serializer
=
facility_dot_detector__pb2
.
UpdateDetectorReq
.
SerializeToString
,
request_serializer
=
facility_dot_detector_dot_detector__pb2
.
UpdateDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
UpdateDetectorResp
.
FromString
,
response_deserializer
=
facility_dot_detector_dot_detector__pb2
.
UpdateDetectorResp
.
FromString
,
)
self
.
Delete
=
channel
.
unary_unary
(
'/detector.DetectorSrv/Delete'
,
request_serializer
=
facility_dot_detector_dot_detector__pb2
.
DeleteDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector_dot_detector__pb2
.
DeleteDetectorResp
.
FromString
,
)
)
self
.
FindStatus
=
channel
.
unary_unary
(
self
.
FindStatus
=
channel
.
unary_unary
(
'/
facility
.DetectorSrv/FindStatus'
,
'/
detector
.DetectorSrv/FindStatus'
,
request_serializer
=
facility_dot_detector__pb2
.
FindStatusReq
.
SerializeToString
,
request_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
FindStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
FindStatusResp
.
FromString
,
response_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
FindStatusResp
.
FromString
,
)
)
self
.
GetStatus
=
channel
.
unary_unary
(
self
.
GetStatus
=
channel
.
unary_unary
(
'/
facility
.DetectorSrv/GetStatus'
,
'/
detector
.DetectorSrv/GetStatus'
,
request_serializer
=
facility_dot_detector__pb2
.
GetStatusReq
.
SerializeToString
,
request_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
GetStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
GetStatusResp
.
FromString
,
response_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
GetStatusResp
.
FromString
,
)
)
self
.
WriteStatus
=
channel
.
unary_unary
(
self
.
WriteStatus
=
channel
.
unary_unary
(
'/
facility
.DetectorSrv/WriteStatus'
,
'/
detector
.DetectorSrv/WriteStatus'
,
request_serializer
=
facility_dot_detector__pb2
.
WriteStatusReq
.
SerializeToString
,
request_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
WriteStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
WriteStatusResp
.
FromString
,
response_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
WriteStatusResp
.
FromString
,
)
)
...
@@ -83,6 +88,13 @@ class DetectorSrvServicer(object):
...
@@ -83,6 +88,13 @@ class DetectorSrvServicer(object):
context
.
set_details
(
'Method not implemented!'
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Delete
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
FindStatus
(
self
,
request
,
context
):
def
FindStatus
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
# missing associated documentation comment in .proto file
pass
pass
...
@@ -109,40 +121,45 @@ def add_DetectorSrvServicer_to_server(servicer, server):
...
@@ -109,40 +121,45 @@ def add_DetectorSrvServicer_to_server(servicer, server):
rpc_method_handlers
=
{
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
servicer
.
Find
,
request_deserializer
=
facility_dot_detector__pb2
.
FindDetectorReq
.
FromString
,
request_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
FindDetectorReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
FindDetectorResp
.
SerializeToString
,
response_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
FindDetectorResp
.
SerializeToString
,
),
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
servicer
.
Get
,
request_deserializer
=
facility_dot_detector__pb2
.
GetDetectorReq
.
FromString
,
request_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
GetDetectorReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
GetDetectorResp
.
SerializeToString
,
response_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
GetDetectorResp
.
SerializeToString
,
),
),
'Write'
:
grpc
.
unary_unary_rpc_method_handler
(
'Write'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Write
,
servicer
.
Write
,
request_deserializer
=
facility_dot_detector__pb2
.
WriteDetectorReq
.
FromString
,
request_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
WriteDetectorReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
WriteDetectorResp
.
SerializeToString
,
response_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
WriteDetectorResp
.
SerializeToString
,
),
),
'Update'
:
grpc
.
unary_unary_rpc_method_handler
(
'Update'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Update
,
servicer
.
Update
,
request_deserializer
=
facility_dot_detector__pb2
.
UpdateDetectorReq
.
FromString
,
request_deserializer
=
facility_dot_detector_dot_detector__pb2
.
UpdateDetectorReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
UpdateDetectorResp
.
SerializeToString
,
response_serializer
=
facility_dot_detector_dot_detector__pb2
.
UpdateDetectorResp
.
SerializeToString
,
),
'Delete'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Delete
,
request_deserializer
=
facility_dot_detector_dot_detector__pb2
.
DeleteDetectorReq
.
FromString
,
response_serializer
=
facility_dot_detector_dot_detector__pb2
.
DeleteDetectorResp
.
SerializeToString
,
),
),
'FindStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
'FindStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
FindStatus
,
servicer
.
FindStatus
,
request_deserializer
=
facility_dot_detector__pb2
.
FindStatusReq
.
FromString
,
request_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
FindStatusReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
FindStatusResp
.
SerializeToString
,
response_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
FindStatusResp
.
SerializeToString
,
),
),
'GetStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
'GetStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
GetStatus
,
servicer
.
GetStatus
,
request_deserializer
=
facility_dot_detector__pb2
.
GetStatusReq
.
FromString
,
request_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
GetStatusReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
GetStatusResp
.
SerializeToString
,
response_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
GetStatusResp
.
SerializeToString
,
),
),
'WriteStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
'WriteStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
WriteStatus
,
servicer
.
WriteStatus
,
request_deserializer
=
facility_dot_detector__pb2
.
WriteStatusReq
.
FromString
,
request_deserializer
=
facility_dot_detector_
dot_detector_
_pb2
.
WriteStatusReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
WriteStatusResp
.
SerializeToString
,
response_serializer
=
facility_dot_detector_
dot_detector_
_pb2
.
WriteStatusResp
.
SerializeToString
,
),
),
}
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'
facility
.DetectorSrv'
,
rpc_method_handlers
)
'
detector
.DetectorSrv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
server
.
add_generic_rpc_handlers
((
generic_handler
,))
csst_dfs_proto/facility/level0/__init__.py
0 → 100644
View file @
f439da0e
csst_dfs_proto/facility/level0/level0_pb2.py
0 → 100644
View file @
f439da0e
This diff is collapsed.
Click to expand it.
csst_dfs_proto/facility/level0/level0_pb2_grpc.py
0 → 100644
View file @
f439da0e
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
.
import
level0_pb2
as
facility_dot_level0_dot_level0__pb2
class
Level0SrvStub
(
object
):
# missing associated documentation comment in .proto file
pass
def
__init__
(
self
,
channel
):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/level0.Level0Srv/Find'
,
request_serializer
=
facility_dot_level0_dot_level0__pb2
.
FindLevel0DataReq
.
SerializeToString
,
response_deserializer
=
facility_dot_level0_dot_level0__pb2
.
FindLevel0DataResp
.
FromString
,
)
self
.
Get
=
channel
.
unary_unary
(
'/level0.Level0Srv/Get'
,
request_serializer
=
facility_dot_level0_dot_level0__pb2
.
GetLevel0DataReq
.
SerializeToString
,
response_deserializer
=
facility_dot_level0_dot_level0__pb2
.
GetLevel0DataResp
.
FromString
,
)
self
.
UpdateQc0Status
=
channel
.
unary_unary
(
'/level0.Level0Srv/UpdateQc0Status'
,
request_serializer
=
facility_dot_level0_dot_level0__pb2
.
UpdateQc0StatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_level0_dot_level0__pb2
.
UpdateQc0StatusResp
.
FromString
,
)
self
.
UpdateProcStatus
=
channel
.
unary_unary
(
'/level0.Level0Srv/UpdateProcStatus'
,
request_serializer
=
facility_dot_level0_dot_level0__pb2
.
UpdateProcStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_level0_dot_level0__pb2
.
UpdateProcStatusResp
.
FromString
,
)
class
Level0SrvServicer
(
object
):
# missing associated documentation comment in .proto file
pass
def
Find
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Get
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
UpdateQc0Status
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
UpdateProcStatus
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
add_Level0SrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
request_deserializer
=
facility_dot_level0_dot_level0__pb2
.
FindLevel0DataReq
.
FromString
,
response_serializer
=
facility_dot_level0_dot_level0__pb2
.
FindLevel0DataResp
.
SerializeToString
,
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
request_deserializer
=
facility_dot_level0_dot_level0__pb2
.
GetLevel0DataReq
.
FromString
,
response_serializer
=
facility_dot_level0_dot_level0__pb2
.
GetLevel0DataResp
.
SerializeToString
,
),
'UpdateQc0Status'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateQc0Status
,
request_deserializer
=
facility_dot_level0_dot_level0__pb2
.
UpdateQc0StatusReq
.
FromString
,
response_serializer
=
facility_dot_level0_dot_level0__pb2
.
UpdateQc0StatusResp
.
SerializeToString
,
),
'UpdateProcStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateProcStatus
,
request_deserializer
=
facility_dot_level0_dot_level0__pb2
.
UpdateProcStatusReq
.
FromString
,
response_serializer
=
facility_dot_level0_dot_level0__pb2
.
UpdateProcStatusResp
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'level0.Level0Srv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
csst_dfs_proto/facility/level0prc/__init__.py
0 → 100644
View file @
f439da0e
csst_dfs_proto/facility/level0prc/level0prc_pb2.py
0 → 100644
View file @
f439da0e
This diff is collapsed.
Click to expand it.
csst_dfs_proto/facility/level0prc/level0prc_pb2_grpc.py
0 → 100644
View file @
f439da0e
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
.
import
level0prc_pb2
as
facility_dot_level0prc_dot_level0prc__pb2
class
Level0PrcSrvStub
(
object
):
# missing associated documentation comment in .proto file
pass
def
__init__
(
self
,
channel
):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/level0prc.Level0PrcSrv/Find'
,
request_serializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
FindLevel0PrcReq
.
SerializeToString
,
response_deserializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
FindLevel0PrcResp
.
FromString
,
)
self
.
Write
=
channel
.
unary_unary
(
'/level0prc.Level0PrcSrv/Write'
,
request_serializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
WriteLevel0PrcReq
.
SerializeToString
,
response_deserializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
WriteLevel0PrcResp
.
FromString
,
)
self
.
UpdateProcStatus
=
channel
.
unary_unary
(
'/level0prc.Level0PrcSrv/UpdateProcStatus'
,
request_serializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
UpdateProcStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
UpdateProcStatusResp
.
FromString
,
)
class
Level0PrcSrvServicer
(
object
):
# missing associated documentation comment in .proto file
pass
def
Find
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Write
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
UpdateProcStatus
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
add_Level0PrcSrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
request_deserializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
FindLevel0PrcReq
.
FromString
,
response_serializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
FindLevel0PrcResp
.
SerializeToString
,
),
'Write'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
WriteLevel0PrcReq
.
FromString
,
response_serializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
WriteLevel0PrcResp
.
SerializeToString
,
),
'UpdateProcStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateProcStatus
,
request_deserializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
UpdateProcStatusReq
.
FromString
,
response_serializer
=
facility_dot_level0prc_dot_level0prc__pb2
.
UpdateProcStatusResp
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'level0prc.Level0PrcSrv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
csst_dfs_proto/facility/observation/__init__.py
0 → 100644
View file @
f439da0e
csst_dfs_proto/facility/
exposure
_pb2.py
→
csst_dfs_proto/facility/
observation/observation
_pb2.py
View file @
f439da0e
This diff is collapsed.
Click to expand it.
csst_dfs_proto/facility/
exposure
_pb2_grpc.py
→
csst_dfs_proto/facility/
observation/observation
_pb2_grpc.py
View file @
f439da0e
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
import
grpc
from
.
import
exposure
_pb2
as
facility_dot_
exposure
__pb2
from
.
import
observation
_pb2
as
facility_dot_
observation_dot_observation
__pb2
class
Exposure
SrvStub
(
object
):
class
Observation
SrvStub
(
object
):
# missing associated documentation comment in .proto file
# missing associated documentation comment in .proto file
pass
pass
...
@@ -15,33 +15,33 @@ class ExposureSrvStub(object):
...
@@ -15,33 +15,33 @@ class ExposureSrvStub(object):
channel: A grpc.Channel.
channel: A grpc.Channel.
"""
"""
self
.
Find
=
channel
.
unary_unary
(
self
.
Find
=
channel
.
unary_unary
(
'/
facility.Exposure
Srv/Find'
,
'/
observation.Observation
Srv/Find'
,
request_serializer
=
facility_dot_
exposure__pb2
.
FindExposure
Req
.
SerializeToString
,
request_serializer
=
facility_dot_
observation_dot_observation__pb2
.
FindObservation
Req
.
SerializeToString
,
response_deserializer
=
facility_dot_
exposure__pb2
.
FindExposure
Resp
.
FromString
,
response_deserializer
=
facility_dot_
observation_dot_observation__pb2
.
FindObservation
Resp
.
FromString
,
)
)
self
.
Get
=
channel
.
unary_unary
(
self
.
Get
=
channel
.
unary_unary
(
'/
facility.Exposure
Srv/Get'
,
'/
observation.Observation
Srv/Get'
,
request_serializer
=
facility_dot_
exposure__pb2
.
GetExposure
Req
.
SerializeToString
,
request_serializer
=
facility_dot_
observation_dot_observation__pb2
.
GetObservation
Req
.
SerializeToString
,
response_deserializer
=
facility_dot_
exposure__pb2
.
GetExposure
Resp
.
FromString
,
response_deserializer
=
facility_dot_
observation_dot_observation__pb2
.
GetObservation
Resp
.
FromString
,
)
)
self
.
Write
=
channel
.
stream_unary
(
self
.
Write
=
channel
.
stream_unary
(
'/
facility.Exposure
Srv/Write'
,
'/
observation.Observation
Srv/Write'
,
request_serializer
=
facility_dot_
exposure__pb2
.
WriteExposure
Req
.
SerializeToString
,
request_serializer
=
facility_dot_
observation_dot_observation__pb2
.
WriteObservation
Req
.
SerializeToString
,
response_deserializer
=
facility_dot_
exposure__pb2
.
WriteExposure
Resp
.
FromString
,
response_deserializer
=
facility_dot_
observation_dot_observation__pb2
.
WriteObservation
Resp
.
FromString
,
)
)
self
.
UpdateQc0Status
=
channel
.
unary_unary
(
self
.
UpdateQc0Status
=
channel
.
unary_unary
(
'/
facility.Exposure
Srv/UpdateQc0Status'
,
'/
observation.Observation
Srv/UpdateQc0Status'
,
request_serializer
=
facility_dot_
exposure
__pb2
.
UpdateQc0StatusReq
.
SerializeToString
,
request_serializer
=
facility_dot_
observation_dot_observation
__pb2
.
UpdateQc0StatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_
exposure
__pb2
.
UpdateQc0StatusResp
.
FromString
,
response_deserializer
=
facility_dot_
observation_dot_observation
__pb2
.
UpdateQc0StatusResp
.
FromString
,
)
)
self
.
UpdateProcStatus
=
channel
.
unary_unary
(
self
.
UpdateProcStatus
=
channel
.
unary_unary
(
'/
facility.Exposure
Srv/UpdateProcStatus'
,
'/
observation.Observation
Srv/UpdateProcStatus'
,
request_serializer
=
facility_dot_
exposure
__pb2
.
UpdateProcStatusReq
.
SerializeToString
,
request_serializer
=
facility_dot_
observation_dot_observation
__pb2
.
UpdateProcStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_
exposure
__pb2
.
UpdateProcStatusResp
.
FromString
,
response_deserializer
=
facility_dot_
observation_dot_observation
__pb2
.
UpdateProcStatusResp
.
FromString
,
)
)
class
Exposure
SrvServicer
(
object
):
class
Observation
SrvServicer
(
object
):
# missing associated documentation comment in .proto file
# missing associated documentation comment in .proto file
pass
pass
...
@@ -81,34 +81,34 @@ class ExposureSrvServicer(object):
...
@@ -81,34 +81,34 @@ class ExposureSrvServicer(object):
raise
NotImplementedError
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
add_
Exposure
SrvServicer_to_server
(
servicer
,
server
):
def
add_
Observation
SrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
servicer
.
Find
,
request_deserializer
=
facility_dot_
exposure__pb2
.
FindExposure
Req
.
FromString
,
request_deserializer
=
facility_dot_
observation_dot_observation__pb2
.
FindObservation
Req
.
FromString
,
response_serializer
=
facility_dot_
exposure__pb2
.
FindExposure
Resp
.
SerializeToString
,
response_serializer
=
facility_dot_
observation_dot_observation__pb2
.
FindObservation
Resp
.
SerializeToString
,
),
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
servicer
.
Get
,
request_deserializer
=
facility_dot_
exposure__pb2
.
GetExposure
Req
.
FromString
,
request_deserializer
=
facility_dot_
observation_dot_observation__pb2
.
GetObservation
Req
.
FromString
,
response_serializer
=
facility_dot_
exposure__pb2
.
GetExposure
Resp
.
SerializeToString
,
response_serializer
=
facility_dot_
observation_dot_observation__pb2
.
GetObservation
Resp
.
SerializeToString
,
),
),
'Write'
:
grpc
.
stream_unary_rpc_method_handler
(
'Write'
:
grpc
.
stream_unary_rpc_method_handler
(
servicer
.
Write
,
servicer
.
Write
,
request_deserializer
=
facility_dot_
exposure__pb2
.
WriteExposure
Req
.
FromString
,
request_deserializer
=
facility_dot_
observation_dot_observation__pb2
.
WriteObservation
Req
.
FromString
,
response_serializer
=
facility_dot_
exposure__pb2
.
WriteExposure
Resp
.
SerializeToString
,
response_serializer
=
facility_dot_
observation_dot_observation__pb2
.
WriteObservation
Resp
.
SerializeToString
,
),
),
'UpdateQc0Status'
:
grpc
.
unary_unary_rpc_method_handler
(
'UpdateQc0Status'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateQc0Status
,
servicer
.
UpdateQc0Status
,
request_deserializer
=
facility_dot_
exposure
__pb2
.
UpdateQc0StatusReq
.
FromString
,
request_deserializer
=
facility_dot_
observation_dot_observation
__pb2
.
UpdateQc0StatusReq
.
FromString
,
response_serializer
=
facility_dot_
exposure
__pb2
.
UpdateQc0StatusResp
.
SerializeToString
,
response_serializer
=
facility_dot_
observation_dot_observation
__pb2
.
UpdateQc0StatusResp
.
SerializeToString
,
),
),
'UpdateProcStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
'UpdateProcStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateProcStatus
,
servicer
.
UpdateProcStatus
,
request_deserializer
=
facility_dot_
exposure
__pb2
.
UpdateProcStatusReq
.
FromString
,
request_deserializer
=
facility_dot_
observation_dot_observation
__pb2
.
UpdateProcStatusReq
.
FromString
,
response_serializer
=
facility_dot_
exposure
__pb2
.
UpdateProcStatusResp
.
SerializeToString
,
response_serializer
=
facility_dot_
observation_dot_observation
__pb2
.
UpdateProcStatusResp
.
SerializeToString
,
),
),
}
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'
facility.Exposure
Srv'
,
rpc_method_handlers
)
'
observation.Observation
Srv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
server
.
add_generic_rpc_handlers
((
generic_handler
,))
csst_dfs_proto/hstdm/__init__.py
0 → 100644
View file @
f439da0e
csst_dfs_proto/mci/__init__.py
0 → 100644
View file @
f439da0e
csst_dfs_proto/msc/__init__.py
0 → 100644
View file @
f439da0e
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment