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
d9e935a3
Commit
d9e935a3
authored
Jun 07, 2021
by
Wei Shoulin
Browse files
c3
parent
f439da0e
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
csst_dfs_proto/facility/calmerge/calmerge_pb2.py
0 → 100644
View file @
d9e935a3
This diff is collapsed.
Click to expand it.
csst_dfs_proto/facility/calmerge/calmerge_pb2_grpc.py
0 → 100644
View file @
d9e935a3
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
.
import
calmerge_pb2
as
facility_dot_calmerge_dot_calmerge__pb2
class
CalMergeSrvStub
(
object
):
# missing associated documentation comment in .proto file
pass
def
__init__
(
self
,
channel
):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/calmerge.CalMergeSrv/Find'
,
request_serializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
FindCalMergeReq
.
SerializeToString
,
response_deserializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
FindCalMergeResp
.
FromString
,
)
self
.
Get
=
channel
.
unary_unary
(
'/calmerge.CalMergeSrv/Get'
,
request_serializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
GetCalMergeReq
.
SerializeToString
,
response_deserializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
GetCalMergeResp
.
FromString
,
)
self
.
Write
=
channel
.
unary_unary
(
'/calmerge.CalMergeSrv/Write'
,
request_serializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
WriteCalMergeReq
.
SerializeToString
,
response_deserializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
WriteCalMergeResp
.
FromString
,
)
self
.
UpdateQc1Status
=
channel
.
unary_unary
(
'/calmerge.CalMergeSrv/UpdateQc1Status'
,
request_serializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
UpdateQc1StatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
UpdateQc1StatusResp
.
FromString
,
)
self
.
UpdateProcStatus
=
channel
.
unary_unary
(
'/calmerge.CalMergeSrv/UpdateProcStatus'
,
request_serializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
UpdateProcStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
UpdateProcStatusResp
.
FromString
,
)
class
CalMergeSrvServicer
(
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
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
UpdateQc1Status
(
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_CalMergeSrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
request_deserializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
FindCalMergeReq
.
FromString
,
response_serializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
FindCalMergeResp
.
SerializeToString
,
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
request_deserializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
GetCalMergeReq
.
FromString
,
response_serializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
GetCalMergeResp
.
SerializeToString
,
),
'Write'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
WriteCalMergeReq
.
FromString
,
response_serializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
WriteCalMergeResp
.
SerializeToString
,
),
'UpdateQc1Status'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateQc1Status
,
request_deserializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
UpdateQc1StatusReq
.
FromString
,
response_serializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
UpdateQc1StatusResp
.
SerializeToString
,
),
'UpdateProcStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateProcStatus
,
request_deserializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
UpdateProcStatusReq
.
FromString
,
response_serializer
=
facility_dot_calmerge_dot_calmerge__pb2
.
UpdateProcStatusResp
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'calmerge.CalMergeSrv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
csst_dfs_proto/facility/detector/detector_pb2.py
View file @
d9e935a3
This diff is collapsed.
Click to expand it.
csst_dfs_proto/facility/detector/detector_pb2_grpc.py
View file @
d9e935a3
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
.
import
detector_pb2
as
facility_dot_detector_dot_detector__pb2
from
.
..facility.detector
import
detector_pb2
as
facility_dot_detector_dot_detector__pb2
class
DetectorSrvStub
(
object
):
...
...
@@ -15,42 +15,42 @@ class DetectorSrvStub(object):
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/detector.DetectorSrv/Find'
,
'/
facility.
detector.DetectorSrv/Find'
,
request_serializer
=
facility_dot_detector_dot_detector__pb2
.
FindDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector_dot_detector__pb2
.
FindDetectorResp
.
FromString
,
)
self
.
Get
=
channel
.
unary_unary
(
'/detector.DetectorSrv/Get'
,
'/
facility.
detector.DetectorSrv/Get'
,
request_serializer
=
facility_dot_detector_dot_detector__pb2
.
GetDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector_dot_detector__pb2
.
GetDetectorResp
.
FromString
,
)
self
.
Write
=
channel
.
unary_unary
(
'/detector.DetectorSrv/Write'
,
'/
facility.
detector.DetectorSrv/Write'
,
request_serializer
=
facility_dot_detector_dot_detector__pb2
.
WriteDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector_dot_detector__pb2
.
WriteDetectorResp
.
FromString
,
)
self
.
Update
=
channel
.
unary_unary
(
'/detector.DetectorSrv/Update'
,
'/
facility.
detector.DetectorSrv/Update'
,
request_serializer
=
facility_dot_detector_dot_detector__pb2
.
UpdateDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector_dot_detector__pb2
.
UpdateDetectorResp
.
FromString
,
)
self
.
Delete
=
channel
.
unary_unary
(
'/detector.DetectorSrv/Delete'
,
'/
facility.
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
(
'/detector.DetectorSrv/FindStatus'
,
'/
facility.
detector.DetectorSrv/FindStatus'
,
request_serializer
=
facility_dot_detector_dot_detector__pb2
.
FindStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector_dot_detector__pb2
.
FindStatusResp
.
FromString
,
)
self
.
GetStatus
=
channel
.
unary_unary
(
'/detector.DetectorSrv/GetStatus'
,
'/
facility.
detector.DetectorSrv/GetStatus'
,
request_serializer
=
facility_dot_detector_dot_detector__pb2
.
GetStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector_dot_detector__pb2
.
GetStatusResp
.
FromString
,
)
self
.
WriteStatus
=
channel
.
unary_unary
(
'/detector.DetectorSrv/WriteStatus'
,
'/
facility.
detector.DetectorSrv/WriteStatus'
,
request_serializer
=
facility_dot_detector_dot_detector__pb2
.
WriteStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector_dot_detector__pb2
.
WriteStatusResp
.
FromString
,
)
...
...
@@ -161,5 +161,5 @@ def add_DetectorSrvServicer_to_server(servicer, server):
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'detector.DetectorSrv'
,
rpc_method_handlers
)
'
facility.
detector.DetectorSrv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
csst_dfs_proto/facility/level0/level0_pb2.py
View file @
d9e935a3
...
...
@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package
=
'level0'
,
syntax
=
'proto3'
,
serialized_options
=
_b
(
'Z$cnlab.net/csst/proto/facility/level0'
),
serialized_pb
=
_b
(
'
\n\x1c\x66\x61\x63
ility/level0/level0.proto
\x12\x06
level0
\x1a\x12\x63
ommon/error.proto
\"\x97\x02\n\x0c
Level0Record
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
obs_id
\x18\x02
\x01
(
\x03\x12\x13\n\x0b\x64\x65
tector_no
\x18\x03
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x04
\x01
(
\t\x12\x10\n\x08
obs_time
\x18\x05
\x01
(
\t\x12\x10\n\x08\x65
xp_time
\x18\x06
\x01
(
\x02\x12\x1a\n\x12\x64\x65
tector_status_id
\x18\x07
\x01
(
\x03\x12\x10\n\x08\x66
ilename
\x18\x08
\x01
(
\t\x12\x11\n\t
file_path
\x18\t
\x01
(
\t\x12\x12\n\n
qc0_status
\x18\n
\x01
(
\r\x12\x10\n\x08
qc0_time
\x18\x0b
\x01
(
\t\x12\x12\n\n
prc_status
\x18\x0c
\x01
(
\r\x12\x10\n\x08
prc_time
\x18\r
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x0e
\x01
(
\t\"\xc4\x02\n\x11\x46
indLevel0DataReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\x03\x12\x13\n\x0b\x64\x65
tector_no
\x18\x02
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x03
\x01
(
\t\x12\x16\n\x0e\x65
xp_time_start
\x18\x04
\x01
(
\t\x12\x14\n\x0c\x65
xp_time_end
\x18\x05
\x01
(
\t\x12\x12\n\n
qc0_status
\x18\x06
\x01
(
\r\x12\x12\n\n
prc_status
\x18\x07
\x01
(
\r\x12\x11\n\t
file_name
\x18\x08
\x01
(
\t\x12\r\n\x05
limit
\x18\t
\x01
(
\r\x12
H
\n\x10
other_conditions
\x18\n
\x03
(
\x0b\x32
..level0.FindLevel0DataReq.OtherConditionsEntry
\x1a\x36\n\x14
OtherConditionsEntry
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\r\n\x05
value
\x18\x02
\x01
(
\t
:
\x02\x38\x01\"
~
\n\x12\x46
indLevel0DataResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x12\n\n
totalCount
\x18\x02
\x01
(
\x05\x12\x1c\n\x05\x65
rror
\x18\x03
\x01
(
\x0b\x32\r
.common.Error
\x12
%
\n\x07
records
\x18\x04
\x03
(
\x0b\x32\x14
.level0.Level0Record
\"\x1e\n\x10
GetLevel0DataReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\"
9
\n\x11
GetLevel0DataResp
\x12
$
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x14
.level0.Level0Record
\"
0
\n\x12
UpdateQc0StatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\r\"
D
\n\x13
UpdateQc0StatusResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error
\"
1
\n\x13
UpdateProcStatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\r\"
E
\n\x14
UpdateProcStatusResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error2
\x
a9
\x02\n\t
Level0Srv
\x12
?
\n\x04\x46
ind
\x12\x19
.level0.FindLevel0DataReq
\x1a\x1a
.level0.FindLevel0DataResp
\"\x00\x12
<
\n\x03
Get
\x12\x18
.level0.GetLevel0DataReq
\x1a\x19
.level0.GetLevel0DataResp
\"\x00\x12
L
\n\x0f
UpdateQc0Status
\x12\x1a
.level0.UpdateQc0StatusReq
\x1a\x1b
.level0.UpdateQc0StatusResp
\"\x00\x12
O
\n\x10
UpdateProcStatus
\x12\x1b
.level0.UpdateProcStatusReq
\x1a\x1c
.level0.UpdateProcStatusResp
\"\x00\x42
&Z$cnlab.net/csst/proto/facility/level0b
\x06
proto3'
)
serialized_pb
=
_b
(
'
\n\x1c\x66\x61\x63
ility/level0/level0.proto
\x12\x06
level0
\x1a\x12\x63
ommon/error.proto
\"\x97\x02\n\x0c
Level0Record
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
obs_id
\x18\x02
\x01
(
\x03\x12\x13\n\x0b\x64\x65
tector_no
\x18\x03
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x04
\x01
(
\t\x12\x10\n\x08
obs_time
\x18\x05
\x01
(
\t\x12\x10\n\x08\x65
xp_time
\x18\x06
\x01
(
\x02\x12\x1a\n\x12\x64\x65
tector_status_id
\x18\x07
\x01
(
\x03\x12\x10\n\x08\x66
ilename
\x18\x08
\x01
(
\t\x12\x11\n\t
file_path
\x18\t
\x01
(
\t\x12\x12\n\n
qc0_status
\x18\n
\x01
(
\r\x12\x10\n\x08
qc0_time
\x18\x0b
\x01
(
\t\x12\x12\n\n
prc_status
\x18\x0c
\x01
(
\r\x12\x10\n\x08
prc_time
\x18\r
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x0e
\x01
(
\t\"\xc4\x02\n\x11\x46
indLevel0DataReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\x03\x12\x13\n\x0b\x64\x65
tector_no
\x18\x02
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x03
\x01
(
\t\x12\x16\n\x0e\x65
xp_time_start
\x18\x04
\x01
(
\t\x12\x14\n\x0c\x65
xp_time_end
\x18\x05
\x01
(
\t\x12\x12\n\n
qc0_status
\x18\x06
\x01
(
\r\x12\x12\n\n
prc_status
\x18\x07
\x01
(
\r\x12\x11\n\t
file_name
\x18\x08
\x01
(
\t\x12\r\n\x05
limit
\x18\t
\x01
(
\r\x12
H
\n\x10
other_conditions
\x18\n
\x03
(
\x0b\x32
..level0.FindLevel0DataReq.OtherConditionsEntry
\x1a\x36\n\x14
OtherConditionsEntry
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\r\n\x05
value
\x18\x02
\x01
(
\t
:
\x02\x38\x01\"
~
\n\x12\x46
indLevel0DataResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x12\n\n
totalCount
\x18\x02
\x01
(
\x05\x12\x1c\n\x05\x65
rror
\x18\x03
\x01
(
\x0b\x32\r
.common.Error
\x12
%
\n\x07
records
\x18\x04
\x03
(
\x0b\x32\x14
.level0.Level0Record
\"\x1e\n\x10
GetLevel0DataReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\"
9
\n\x11
GetLevel0DataResp
\x12
$
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x14
.level0.Level0Record
\"
:
\n\x12
WriteLevel0DataReq
\x12
$
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x14
.level0.Level0Record
\"
j
\n\x13
WriteLevel0DataResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error
\x12
$
\n\x06
record
\x18\x03
\x01
(
\x0b\x32\x14
.level0.Level0Record
\"
0
\n\x12
UpdateQc0StatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\r\"
D
\n\x13
UpdateQc0StatusResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error
\"
1
\n\x13
UpdateProcStatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\r\"
E
\n\x14
UpdateProcStatusResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error2
\x
ed
\x02\n\t
Level0Srv
\x12
?
\n\x04\x46
ind
\x12\x19
.level0.FindLevel0DataReq
\x1a\x1a
.level0.FindLevel0DataResp
\"\x00\x12
<
\n\x03
Get
\x12\x18
.level0.GetLevel0DataReq
\x1a\x19
.level0.GetLevel0DataResp
\"\x00\
x12\x42\n\x05
Write
\x12\x1a
.level0.WriteLevel0DataReq
\x1a\x1b
.level0.WriteLevel0DataResp
\"\x00\
x12
L
\n\x0f
UpdateQc0Status
\x12\x1a
.level0.UpdateQc0StatusReq
\x1a\x1b
.level0.UpdateQc0StatusResp
\"\x00\x12
O
\n\x10
UpdateProcStatus
\x12\x1b
.level0.UpdateProcStatusReq
\x1a\x1c
.level0.UpdateProcStatusResp
\"\x00\x42
&Z$cnlab.net/csst/proto/facility/level0b
\x06
proto3'
)
,
dependencies
=
[
common_dot_error__pb2
.
DESCRIPTOR
,])
...
...
@@ -395,6 +395,82 @@ _GETLEVEL0DATARESP = _descriptor.Descriptor(
)
_WRITELEVEL0DATAREQ
=
_descriptor
.
Descriptor
(
name
=
'WriteLevel0DataReq'
,
full_name
=
'level0.WriteLevel0DataReq'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'record'
,
full_name
=
'level0.WriteLevel0DataReq.record'
,
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
=
888
,
serialized_end
=
946
,
)
_WRITELEVEL0DATARESP
=
_descriptor
.
Descriptor
(
name
=
'WriteLevel0DataResp'
,
full_name
=
'level0.WriteLevel0DataResp'
,
filename
=
None
,
file
=
DESCRIPTOR
,
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'success'
,
full_name
=
'level0.WriteLevel0DataResp.success'
,
index
=
0
,
number
=
1
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
has_default_value
=
False
,
default_value
=
False
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'error'
,
full_name
=
'level0.WriteLevel0DataResp.error'
,
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
),
_descriptor
.
FieldDescriptor
(
name
=
'record'
,
full_name
=
'level0.WriteLevel0DataResp.record'
,
index
=
2
,
number
=
3
,
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
=
948
,
serialized_end
=
1054
,
)
_UPDATEQC0STATUSREQ
=
_descriptor
.
Descriptor
(
name
=
'UpdateQc0StatusReq'
,
full_name
=
'level0.UpdateQc0StatusReq'
,
...
...
@@ -428,8 +504,8 @@ _UPDATEQC0STATUSREQ = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
888
,
serialized_end
=
936
,
serialized_start
=
1056
,
serialized_end
=
1104
,
)
...
...
@@ -466,8 +542,8 @@ _UPDATEQC0STATUSRESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
938
,
serialized_end
=
1
006
,
serialized_start
=
1106
,
serialized_end
=
1
174
,
)
...
...
@@ -504,8 +580,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
1
008
,
serialized_end
=
1
057
,
serialized_start
=
1
176
,
serialized_end
=
1
225
,
)
...
...
@@ -542,8 +618,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
1
059
,
serialized_end
=
1
128
,
serialized_start
=
1
227
,
serialized_end
=
1
296
,
)
_FINDLEVEL0DATAREQ_OTHERCONDITIONSENTRY
.
containing_type
=
_FINDLEVEL0DATAREQ
...
...
@@ -551,6 +627,9 @@ _FINDLEVEL0DATAREQ.fields_by_name['other_conditions'].message_type = _FINDLEVEL0
_FINDLEVEL0DATARESP
.
fields_by_name
[
'error'
].
message_type
=
common_dot_error__pb2
.
_ERROR
_FINDLEVEL0DATARESP
.
fields_by_name
[
'records'
].
message_type
=
_LEVEL0RECORD
_GETLEVEL0DATARESP
.
fields_by_name
[
'record'
].
message_type
=
_LEVEL0RECORD
_WRITELEVEL0DATAREQ
.
fields_by_name
[
'record'
].
message_type
=
_LEVEL0RECORD
_WRITELEVEL0DATARESP
.
fields_by_name
[
'error'
].
message_type
=
common_dot_error__pb2
.
_ERROR
_WRITELEVEL0DATARESP
.
fields_by_name
[
'record'
].
message_type
=
_LEVEL0RECORD
_UPDATEQC0STATUSRESP
.
fields_by_name
[
'error'
].
message_type
=
common_dot_error__pb2
.
_ERROR
_UPDATEPROCSTATUSRESP
.
fields_by_name
[
'error'
].
message_type
=
common_dot_error__pb2
.
_ERROR
DESCRIPTOR
.
message_types_by_name
[
'Level0Record'
]
=
_LEVEL0RECORD
...
...
@@ -558,6 +637,8 @@ DESCRIPTOR.message_types_by_name['FindLevel0DataReq'] = _FINDLEVEL0DATAREQ
DESCRIPTOR
.
message_types_by_name
[
'FindLevel0DataResp'
]
=
_FINDLEVEL0DATARESP
DESCRIPTOR
.
message_types_by_name
[
'GetLevel0DataReq'
]
=
_GETLEVEL0DATAREQ
DESCRIPTOR
.
message_types_by_name
[
'GetLevel0DataResp'
]
=
_GETLEVEL0DATARESP
DESCRIPTOR
.
message_types_by_name
[
'WriteLevel0DataReq'
]
=
_WRITELEVEL0DATAREQ
DESCRIPTOR
.
message_types_by_name
[
'WriteLevel0DataResp'
]
=
_WRITELEVEL0DATARESP
DESCRIPTOR
.
message_types_by_name
[
'UpdateQc0StatusReq'
]
=
_UPDATEQC0STATUSREQ
DESCRIPTOR
.
message_types_by_name
[
'UpdateQc0StatusResp'
]
=
_UPDATEQC0STATUSRESP
DESCRIPTOR
.
message_types_by_name
[
'UpdateProcStatusReq'
]
=
_UPDATEPROCSTATUSREQ
...
...
@@ -607,6 +688,20 @@ GetLevel0DataResp = _reflection.GeneratedProtocolMessageType('GetLevel0DataResp'
})
_sym_db
.
RegisterMessage
(
GetLevel0DataResp
)
WriteLevel0DataReq
=
_reflection
.
GeneratedProtocolMessageType
(
'WriteLevel0DataReq'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_WRITELEVEL0DATAREQ
,
'__module__'
:
'facility.level0.level0_pb2'
# @@protoc_insertion_point(class_scope:level0.WriteLevel0DataReq)
})
_sym_db
.
RegisterMessage
(
WriteLevel0DataReq
)
WriteLevel0DataResp
=
_reflection
.
GeneratedProtocolMessageType
(
'WriteLevel0DataResp'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_WRITELEVEL0DATARESP
,
'__module__'
:
'facility.level0.level0_pb2'
# @@protoc_insertion_point(class_scope:level0.WriteLevel0DataResp)
})
_sym_db
.
RegisterMessage
(
WriteLevel0DataResp
)
UpdateQc0StatusReq
=
_reflection
.
GeneratedProtocolMessageType
(
'UpdateQc0StatusReq'
,
(
_message
.
Message
,),
{
'DESCRIPTOR'
:
_UPDATEQC0STATUSREQ
,
'__module__'
:
'facility.level0.level0_pb2'
...
...
@@ -645,8 +740,8 @@ _LEVEL0SRV = _descriptor.ServiceDescriptor(
file
=
DESCRIPTOR
,
index
=
0
,
serialized_options
=
None
,
serialized_start
=
1
131
,
serialized_end
=
1
428
,
serialized_start
=
1
299
,
serialized_end
=
1
664
,
methods
=
[
_descriptor
.
MethodDescriptor
(
name
=
'Find'
,
...
...
@@ -666,10 +761,19 @@ _LEVEL0SRV = _descriptor.ServiceDescriptor(
output_type
=
_GETLEVEL0DATARESP
,
serialized_options
=
None
,
),
_descriptor
.
MethodDescriptor
(
name
=
'Write'
,
full_name
=
'level0.Level0Srv.Write'
,
index
=
2
,
containing_service
=
None
,
input_type
=
_WRITELEVEL0DATAREQ
,
output_type
=
_WRITELEVEL0DATARESP
,
serialized_options
=
None
,
),
_descriptor
.
MethodDescriptor
(
name
=
'UpdateQc0Status'
,
full_name
=
'level0.Level0Srv.UpdateQc0Status'
,
index
=
2
,
index
=
3
,
containing_service
=
None
,
input_type
=
_UPDATEQC0STATUSREQ
,
output_type
=
_UPDATEQC0STATUSRESP
,
...
...
@@ -678,7 +782,7 @@ _LEVEL0SRV = _descriptor.ServiceDescriptor(
_descriptor
.
MethodDescriptor
(
name
=
'UpdateProcStatus'
,
full_name
=
'level0.Level0Srv.UpdateProcStatus'
,
index
=
3
,
index
=
4
,
containing_service
=
None
,
input_type
=
_UPDATEPROCSTATUSREQ
,
output_type
=
_UPDATEPROCSTATUSRESP
,
...
...
csst_dfs_proto/facility/level0/level0_pb2_grpc.py
View file @
d9e935a3
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
.
import
level0_pb2
as
facility_dot_level0_dot_level0__pb2
from
.
..facility.level0
import
level0_pb2
as
facility_dot_level0_dot_level0__pb2
class
Level0SrvStub
(
object
):
...
...
@@ -24,6 +24,11 @@ class Level0SrvStub(object):
request_serializer
=
facility_dot_level0_dot_level0__pb2
.
GetLevel0DataReq
.
SerializeToString
,
response_deserializer
=
facility_dot_level0_dot_level0__pb2
.
GetLevel0DataResp
.
FromString
,
)
self
.
Write
=
channel
.
unary_unary
(
'/level0.Level0Srv/Write'
,
request_serializer
=
facility_dot_level0_dot_level0__pb2
.
WriteLevel0DataReq
.
SerializeToString
,
response_deserializer
=
facility_dot_level0_dot_level0__pb2
.
WriteLevel0DataResp
.
FromString
,
)
self
.
UpdateQc0Status
=
channel
.
unary_unary
(
'/level0.Level0Srv/UpdateQc0Status'
,
request_serializer
=
facility_dot_level0_dot_level0__pb2
.
UpdateQc0StatusReq
.
SerializeToString
,
...
...
@@ -54,6 +59,13 @@ class Level0SrvServicer(object):
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
UpdateQc0Status
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
...
...
@@ -81,6 +93,11 @@ def add_Level0SrvServicer_to_server(servicer, server):
request_deserializer
=
facility_dot_level0_dot_level0__pb2
.
GetLevel0DataReq
.
FromString
,
response_serializer
=
facility_dot_level0_dot_level0__pb2
.
GetLevel0DataResp
.
SerializeToString
,
),
'Write'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
facility_dot_level0_dot_level0__pb2
.
WriteLevel0DataReq
.
FromString
,
response_serializer
=
facility_dot_level0_dot_level0__pb2
.
WriteLevel0DataResp
.
SerializeToString
,
),
'UpdateQc0Status'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateQc0Status
,
request_deserializer
=
facility_dot_level0_dot_level0__pb2
.
UpdateQc0StatusReq
.
FromString
,
...
...
csst_dfs_proto/facility/observation/observation_pb2.py
View file @
d9e935a3
...
...
@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package
=
'observation'
,
syntax
=
'proto3'
,
serialized_options
=
_b
(
'Z)cnlab.net/csst/proto/facility/observation'
),
serialized_pb
=
_b
(
'
\n
&facility/observation/observation.proto
\x12\x0b
observation
\x1a\x12\x63
ommon/error.proto
\"\x90\x02\n\x0b
Observation
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x10\n\x08
obs_time
\x18\x02
\x01
(
\t\x12\x10\n\x08\x65
xp_time
\x18\x03
\x01
(
\x02\x12\x11\n\t
module_id
\x18\x04
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x05
\x01
(
\t\x12\x1a\n\x12\x66\x61\x63
ility_status_id
\x18\x06
\x01
(
\x03\x12\x18\n\x10
module_status_id
\x18\x07
\x01
(
\x03\x12\x12\n\n
qc0_status
\x18\x08
\x01
(
\r\x12\x10\n\x08
qc0_time
\x18\t
\x01
(
\t\x12\x12\n\n
prc_status
\x18\n
\x01
(
\r\x12\x10\n\x08
prc_time
\x18\x0b
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x0c
\x01
(
\t\x12\x15\n\r
import_status
\x18\r
\x01
(
\r\"\xa6\x02\n\x12\x46
indObservationReq
\x12\x11\n\t
module_id
\x18\x01
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x02
\x01
(
\t\x12\x16\n\x0e\x65
xp_time_start
\x18\x03
\x01
(
\t\x12\x14\n\x0c\x65
xp_time_end
\x18\x04
\x01
(
\t\x12\x12\n\n
qc0_status
\x18\x05
\x01
(
\r\x12\x12\n\n
prc_status
\x18\x06
\x01
(
\r\x12\r\n\x05
limit
\x18\x07
\x01
(
\r\x12
N
\n\x10
other_conditions
\x18\x08
\x03
(
\x0b\x32\x34
.observation.FindObservationReq.OtherConditionsEntry
\x1a\x36\n\x14
OtherConditionsEntry
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\r\n\x05
value
\x18\x02
\x01
(
\t
:
\x02\x38\x01\"\x83\x01\n\x13\x46
indObservationResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x12\n\n
totalCount
\x18\x02
\x01
(
\x05\x12\x1c\n\x05\x65
rror
\x18\x03
\x01
(
\x0b\x32\r
.common.Error
\x12
)
\n\x07
records
\x18\x04
\x03
(
\x0b\x32\x18
.observation.Observation
\"
#
\n\x11
GetObservationReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\x03\"
C
\n\x12
GetObservationResp
\x12
-
\n\x0b
observation
\x18\x01
\x01
(
\x0b\x32\x18
.observation.Observation
\"
\xaa\x01
\n\x13
WriteObservationReq
\x12
\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x16\n\x0e\x65
xp_begin_time
\x18\x02
\x01
(
\x03\x12\x14\n\x0c\x65
xp_end_time
\x18\x0
3
\x01
(
\x0
3
\x
1
2\x1
1\n\t
module_id
\x18\x04
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x05
\x01
(
\t\x12\x1a\n\x12\x66\x61\x63
ility_status_id
\x18\x06
\x01
(
\x03\x12\x18\n\x10
module_status_id
\x18\x07
\x01
(
\x03
\"
t
\n\x14
WriteObservationResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error
\x12
-
\n\x0
b
observation
\x18\x03
\x01
(
\x0b\x32\x18
.observation.Observation
\"
4
\n\x12
UpdateQc0StatusReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\r\"
D
\n\x13
UpdateQc0StatusResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error
\"
5
\n\x13
UpdateProcStatusReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\r\"
E
\n\x14
UpdateProcStatusResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error2
\xa
c
\x03\n\x0e
ObservationSrv
\x12
K
\n\x04\x46
ind
\x12\x1f
.observation.FindObservationReq
\x1a
.observation.FindObservationResp
\"\x00\x12
H
\n\x03
Get
\x12\x1e
.observation.GetObservationReq
\x1a\x1f
.observation.GetObservationResp
\"\x00\x12
P
\n\x05
Write
\x12
.observation.WriteObservationReq
\x1a
!.observation.WriteObservationResp
\"\x00
(
\x01
\x12
V
\n\x0f
UpdateQc0Status
\x12\x1f
.observation.UpdateQc0StatusReq
\x1a
.observation.UpdateQc0StatusResp
\"\x00\x12
Y
\n\x10
UpdateProcStatus
\x12
.observation.UpdateProcStatusReq
\x1a
!.observation.UpdateProcStatusResp
\"\x00\x42
+Z)cnlab.net/csst/proto/facility/observationb
\x06
proto3'
)
serialized_pb
=
_b
(
'
\n
&facility/observation/observation.proto
\x12\x0b
observation
\x1a\x12\x63
ommon/error.proto
\"\x90\x02\n\x0b
Observation
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x10\n\x08
obs_time
\x18\x02
\x01
(
\t\x12\x10\n\x08\x65
xp_time
\x18\x03
\x01
(
\x02\x12\x11\n\t
module_id
\x18\x04
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x05
\x01
(
\t\x12\x1a\n\x12\x66\x61\x63
ility_status_id
\x18\x06
\x01
(
\x03\x12\x18\n\x10
module_status_id
\x18\x07
\x01
(
\x03\x12\x12\n\n
qc0_status
\x18\x08
\x01
(
\r\x12\x10\n\x08
qc0_time
\x18\t
\x01
(
\t\x12\x12\n\n
prc_status
\x18\n
\x01
(
\r\x12\x10\n\x08
prc_time
\x18\x0b
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x0c
\x01
(
\t\x12\x15\n\r
import_status
\x18\r
\x01
(
\r\"\xa6\x02\n\x12\x46
indObservationReq
\x12\x11\n\t
module_id
\x18\x01
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x02
\x01
(
\t\x12\x16\n\x0e\x65
xp_time_start
\x18\x03
\x01
(
\t\x12\x14\n\x0c\x65
xp_time_end
\x18\x04
\x01
(
\t\x12\x12\n\n
qc0_status
\x18\x05
\x01
(
\r\x12\x12\n\n
prc_status
\x18\x06
\x01
(
\r\x12\r\n\x05
limit
\x18\x07
\x01
(
\r\x12
N
\n\x10
other_conditions
\x18\x08
\x03
(
\x0b\x32\x34
.observation.FindObservationReq.OtherConditionsEntry
\x1a\x36\n\x14
OtherConditionsEntry
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\r\n\x05
value
\x18\x02
\x01
(
\t
:
\x02\x38\x01\"\x83\x01\n\x13\x46
indObservationResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x12\n\n
totalCount
\x18\x02
\x01
(
\x05\x12\x1c\n\x05\x65
rror
\x18\x03
\x01
(
\x0b\x32\r
.common.Error
\x12
)
\n\x07
records
\x18\x04
\x03
(
\x0b\x32\x18
.observation.Observation
\"
#
\n\x11
GetObservationReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\x03\"
C
\n\x12
GetObservationResp
\x12
-
\n\x0b
observation
\x18\x01
\x01
(
\x0b\x32\x18
.observation.Observation
\"
?
\n\x13
WriteObservationReq
\x12
(
\n\x06
record
\x18\x0
1
\x01
(
\x0
b
\x
3
2\x1
8
.observation.Observation
\"
o
\n\x14
WriteObservationResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error
\x12
(
\n\x0
6
record
\x18\x03
\x01
(
\x0b\x32\x18
.observation.Observation
\"
4
\n\x12
UpdateQc0StatusReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\r\"
D
\n\x13
UpdateQc0StatusResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error
\"
5
\n\x13
UpdateProcStatusReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\r\"
E
\n\x14
UpdateProcStatusResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error2
\xa
a
\x03\n\x0e
ObservationSrv
\x12
K
\n\x04\x46
ind
\x12\x1f
.observation.FindObservationReq
\x1a
.observation.FindObservationResp
\"\x00\x12
H
\n\x03
Get
\x12\x1e
.observation.GetObservationReq
\x1a\x1f
.observation.GetObservationResp
\"\x00\x12
N
\n\x05
Write
\x12
.observation.WriteObservationReq
\x1a
!.observation.WriteObservationResp
\"\x00\x12
V
\n\x0f
UpdateQc0Status
\x12\x1f
.observation.UpdateQc0StatusReq
\x1a
.observation.UpdateQc0StatusResp
\"\x00\x12
Y
\n\x10
UpdateProcStatus
\x12
.observation.UpdateProcStatusReq
\x1a
!.observation.UpdateProcStatusResp
\"\x00\x42
+Z)cnlab.net/csst/proto/facility/observationb
\x06
proto3'
)
,
dependencies
=
[
common_dot_error__pb2
.
DESCRIPTOR
,])
...
...
@@ -382,51 +382,9 @@ _WRITEOBSERVATIONREQ = _descriptor.Descriptor(
containing_type
=
None
,
fields
=
[
_descriptor
.
FieldDescriptor
(
name
=
'id'
,
full_name
=
'observation.WriteObservationReq.id'
,
index
=
0
,
number
=
1
,
type
=
3
,
cpp_type
=
2
,
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
),
_descriptor
.
FieldDescriptor
(
name
=
'exp_begin_time'
,
full_name
=
'observation.WriteObservationReq.exp_begin_time'
,
index
=
1
,
number
=
2
,
type
=
3
,
cpp_type
=
2
,
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
),
_descriptor
.
FieldDescriptor
(
name
=
'exp_end_time'
,
full_name
=
'observation.WriteObservationReq.exp_end_time'
,
index
=
2
,
number
=
3
,
type
=
3
,
cpp_type
=
2
,
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
),
_descriptor
.
FieldDescriptor
(
name
=
'module_id'
,
full_name
=
'observation.WriteObservationReq.module_id'
,
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
=
'obs_type'
,
full_name
=
'observation.WriteObservationReq.obs_type'
,
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
=
'facility_status_id'
,
full_name
=
'observation.WriteObservationReq.facility_status_id'
,
index
=
5
,
number
=
6
,
type
=
3
,
cpp_type
=
2
,
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
),
_descriptor
.
FieldDescriptor
(
name
=
'module_status_id'
,
full_name
=
'observation.WriteObservationReq.module_status_id'
,
index
=
6
,
number
=
7
,
type
=
3
,
cpp_type
=
2
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
name
=
'record'
,
full_name
=
'observation.WriteObservationReq.record'
,
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
),
...
...
@@ -442,8 +400,8 @@ _WRITEOBSERVATIONREQ = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
88
8
,
serialized_end
=
1058
,
serialized_start
=
88
7
,
serialized_end
=
950
,
)
...
...
@@ -469,7 +427,7 @@ _WRITEOBSERVATIONRESP = _descriptor.Descriptor(
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'
observation
'
,
full_name
=
'observation.WriteObservationResp.
observation
'
,
index
=
2
,
name
=
'
record
'
,
full_name
=
'observation.WriteObservationResp.
record
'
,
index
=
2
,
number
=
3
,
type
=
11
,
cpp_type
=
10
,
label
=
1
,
has_default_value
=
False
,
default_value
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
...
...
@@ -487,8 +445,8 @@ _WRITEOBSERVATIONRESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
1060
,
serialized_end
=
1
176
,
serialized_start
=
952
,
serialized_end
=
1
063
,
)
...
...
@@ -525,8 +483,8 @@ _UPDATEQC0STATUSREQ = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
1
178
,
serialized_end
=
1
230
,
serialized_start
=
1
065
,
serialized_end
=
1
117
,
)
...
...
@@ -563,8 +521,8 @@ _UPDATEQC0STATUSRESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
1
232
,
serialized_end
=
1
300
,
serialized_start
=
1
119
,
serialized_end
=
1
187
,
)
...
...
@@ -601,8 +559,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
1
302
,
serialized_end
=
1
355
,
serialized_start
=
1
189
,
serialized_end
=
1
242
,
)
...
...
@@ -639,8 +597,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
1
357
,
serialized_end
=
1
426
,
serialized_start
=
1
244
,
serialized_end
=
1
313
,
)
_FINDOBSERVATIONREQ_OTHERCONDITIONSENTRY
.
containing_type
=
_FINDOBSERVATIONREQ
...
...
@@ -648,8 +606,9 @@ _FINDOBSERVATIONREQ.fields_by_name['other_conditions'].message_type = _FINDOBSER
_FINDOBSERVATIONRESP
.
fields_by_name
[
'error'
].
message_type
=
common_dot_error__pb2
.
_ERROR
_FINDOBSERVATIONRESP
.
fields_by_name
[
'records'
].
message_type
=
_OBSERVATION
_GETOBSERVATIONRESP
.
fields_by_name
[
'observation'
].
message_type
=
_OBSERVATION
_WRITEOBSERVATIONREQ
.
fields_by_name
[
'record'
].
message_type
=
_OBSERVATION
_WRITEOBSERVATIONRESP
.
fields_by_name
[
'error'
].
message_type
=
common_dot_error__pb2
.
_ERROR
_WRITEOBSERVATIONRESP
.
fields_by_name
[
'
observation
'
].
message_type
=
_OBSERVATION
_WRITEOBSERVATIONRESP
.
fields_by_name
[
'
record
'
].
message_type
=
_OBSERVATION
_UPDATEQC0STATUSRESP
.
fields_by_name
[
'error'
].
message_type
=
common_dot_error__pb2
.
_ERROR
_UPDATEPROCSTATUSRESP
.
fields_by_name
[
'error'
].
message_type
=
common_dot_error__pb2
.
_ERROR
DESCRIPTOR
.
message_types_by_name
[
'Observation'
]
=
_OBSERVATION
...
...
@@ -760,8 +719,8 @@ _OBSERVATIONSRV = _descriptor.ServiceDescriptor(
file
=
DESCRIPTOR
,
index
=
0
,
serialized_options
=
None
,
serialized_start
=
1
429
,
serialized_end
=
1
857
,
serialized_start
=
1
316
,
serialized_end
=
1
742
,
methods
=
[
_descriptor
.
MethodDescriptor
(
name
=
'Find'
,
...
...
csst_dfs_proto/facility/observation/observation_pb2_grpc.py
View file @
d9e935a3
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
.
import
observation_pb2
as
facility_dot_observation_dot_observation__pb2
from
.
..facility.observation
import
observation_pb2
as
facility_dot_observation_dot_observation__pb2
class
ObservationSrvStub
(
object
):
...
...
@@ -24,7 +24,7 @@ class ObservationSrvStub(object):
request_serializer
=
facility_dot_observation_dot_observation__pb2
.
GetObservationReq
.
SerializeToString
,
response_deserializer
=
facility_dot_observation_dot_observation__pb2
.
GetObservationResp
.
FromString
,
)
self
.
Write
=
channel
.
stream
_unary
(
self
.
Write
=
channel
.
unary
_unary
(
'/observation.ObservationSrv/Write'
,
request_serializer
=
facility_dot_observation_dot_observation__pb2
.
WriteObservationReq
.
SerializeToString
,
response_deserializer
=
facility_dot_observation_dot_observation__pb2
.
WriteObservationResp
.
FromString
,
...
...
@@ -59,7 +59,7 @@ class ObservationSrvServicer(object):
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Write
(
self
,
request
_iterator
,
context
):
def
Write
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
...
...
@@ -93,7 +93,7 @@ def add_ObservationSrvServicer_to_server(servicer, server):
request_deserializer
=
facility_dot_observation_dot_observation__pb2
.
GetObservationReq
.
FromString
,
response_serializer
=
facility_dot_observation_dot_observation__pb2
.
GetObservationResp
.
SerializeToString
,
),
'Write'
:
grpc
.
stream
_unary_rpc_method_handler
(
'Write'
:
grpc
.
unary
_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
facility_dot_observation_dot_observation__pb2
.
WriteObservationReq
.
FromString
,
response_serializer
=
facility_dot_observation_dot_observation__pb2
.
WriteObservationResp
.
SerializeToString
,
...
...
csst_dfs_proto/ifs/level1/level1_pb2.py
0 → 100644
View file @
d9e935a3
This diff is collapsed.
Click to expand it.
csst_dfs_proto/ifs/level1/level1_pb2_grpc.py
0 → 100644
View file @
d9e935a3
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
...ifs.level1
import
level1_pb2
as
ifs_dot_level1_dot_level1__pb2
class
Level1SrvStub
(
object
):
# missing associated documentation comment in .proto file
pass
def
__init__
(
self
,
channel
):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/ifs.level1.Level1Srv/Find'
,
request_serializer
=
ifs_dot_level1_dot_level1__pb2
.
FindLevel1Req
.
SerializeToString
,
response_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
FindLevel1Resp
.
FromString
,
)
self
.
Get
=
channel
.
unary_unary
(
'/ifs.level1.Level1Srv/Get'
,
request_serializer
=
ifs_dot_level1_dot_level1__pb2
.
GetLevel1Req
.
SerializeToString
,
response_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
GetLevel1Resp
.
FromString
,
)
self
.
Write
=
channel
.
unary_unary
(
'/ifs.level1.Level1Srv/Write'
,
request_serializer
=
ifs_dot_level1_dot_level1__pb2
.
WriteLevel1Req
.
SerializeToString
,
response_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
WriteLevel1Resp
.
FromString
,
)
self
.
UpdateQc1Status
=
channel
.
unary_unary
(
'/ifs.level1.Level1Srv/UpdateQc1Status'
,
request_serializer
=
ifs_dot_level1_dot_level1__pb2
.
UpdateQc1StatusReq
.
SerializeToString
,
response_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
UpdateQc1StatusResp
.
FromString
,
)
self
.
UpdateProcStatus
=
channel
.
unary_unary
(
'/ifs.level1.Level1Srv/UpdateProcStatus'
,
request_serializer
=
ifs_dot_level1_dot_level1__pb2
.
UpdateProcStatusReq
.
SerializeToString
,
response_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
UpdateProcStatusResp
.
FromString
,
)
class
Level1SrvServicer
(
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
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
UpdateQc1Status
(
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_Level1SrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
request_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
FindLevel1Req
.
FromString
,
response_serializer
=
ifs_dot_level1_dot_level1__pb2
.
FindLevel1Resp
.
SerializeToString
,
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
request_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
GetLevel1Req
.
FromString
,
response_serializer
=
ifs_dot_level1_dot_level1__pb2
.
GetLevel1Resp
.
SerializeToString
,
),
'Write'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
WriteLevel1Req
.
FromString
,
response_serializer
=
ifs_dot_level1_dot_level1__pb2
.
WriteLevel1Resp
.
SerializeToString
,
),
'UpdateQc1Status'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateQc1Status
,
request_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
UpdateQc1StatusReq
.
FromString
,
response_serializer
=
ifs_dot_level1_dot_level1__pb2
.
UpdateQc1StatusResp
.
SerializeToString
,
),
'UpdateProcStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateProcStatus
,
request_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
UpdateProcStatusReq
.
FromString
,
response_serializer
=
ifs_dot_level1_dot_level1__pb2
.
UpdateProcStatusResp
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'ifs.level1.Level1Srv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
csst_dfs_proto/msc/level1/__init__.py
0 → 100644
View file @
d9e935a3
csst_dfs_proto/msc/level1/level1_pb2.py
0 → 100644
View file @
d9e935a3
This diff is collapsed.
Click to expand it.
csst_dfs_proto/msc/level1/level1_pb2_grpc.py
0 → 100644
View file @
d9e935a3
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
...msc.level1
import
level1_pb2
as
msc_dot_level1_dot_level1__pb2
class
Level1SrvStub
(
object
):
# missing associated documentation comment in .proto file
pass
def
__init__
(
self
,
channel
):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/msc.level1.Level1Srv/Find'
,
request_serializer
=
msc_dot_level1_dot_level1__pb2
.
FindLevel1Req
.
SerializeToString
,
response_deserializer
=
msc_dot_level1_dot_level1__pb2
.
FindLevel1Resp
.
FromString
,
)
self
.
Get
=
channel
.
unary_unary
(
'/msc.level1.Level1Srv/Get'
,
request_serializer
=
msc_dot_level1_dot_level1__pb2
.
GetLevel1Req
.
SerializeToString
,
response_deserializer
=
msc_dot_level1_dot_level1__pb2
.
GetLevel1Resp
.
FromString
,
)
self
.
Write
=
channel
.
unary_unary
(
'/msc.level1.Level1Srv/Write'
,
request_serializer
=
msc_dot_level1_dot_level1__pb2
.
WriteLevel1Req
.
SerializeToString
,
response_deserializer
=
msc_dot_level1_dot_level1__pb2
.
WriteLevel1Resp
.
FromString
,
)
self
.
UpdateQc1Status
=
channel
.
unary_unary
(
'/msc.level1.Level1Srv/UpdateQc1Status'
,
request_serializer
=
msc_dot_level1_dot_level1__pb2
.
UpdateQc1StatusReq
.
SerializeToString
,
response_deserializer
=
msc_dot_level1_dot_level1__pb2
.
UpdateQc1StatusResp
.
FromString
,
)
self
.
UpdateProcStatus
=
channel
.
unary_unary
(
'/msc.level1.Level1Srv/UpdateProcStatus'
,
request_serializer
=
msc_dot_level1_dot_level1__pb2
.
UpdateProcStatusReq
.
SerializeToString
,
response_deserializer
=
msc_dot_level1_dot_level1__pb2
.
UpdateProcStatusResp
.
FromString
,
)
class
Level1SrvServicer
(
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
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
UpdateQc1Status
(
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_Level1SrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
request_deserializer
=
msc_dot_level1_dot_level1__pb2
.
FindLevel1Req
.
FromString
,
response_serializer
=
msc_dot_level1_dot_level1__pb2
.
FindLevel1Resp
.
SerializeToString
,
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
request_deserializer
=
msc_dot_level1_dot_level1__pb2
.
GetLevel1Req
.
FromString
,
response_serializer
=
msc_dot_level1_dot_level1__pb2
.
GetLevel1Resp
.
SerializeToString
,
),
'Write'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
msc_dot_level1_dot_level1__pb2
.
WriteLevel1Req
.
FromString
,
response_serializer
=
msc_dot_level1_dot_level1__pb2
.
WriteLevel1Resp
.
SerializeToString
,
),
'UpdateQc1Status'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateQc1Status
,
request_deserializer
=
msc_dot_level1_dot_level1__pb2
.
UpdateQc1StatusReq
.
FromString
,
response_serializer
=
msc_dot_level1_dot_level1__pb2
.
UpdateQc1StatusResp
.
SerializeToString
,
),
'UpdateProcStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateProcStatus
,
request_deserializer
=
msc_dot_level1_dot_level1__pb2
.
UpdateProcStatusReq
.
FromString
,
response_serializer
=
msc_dot_level1_dot_level1__pb2
.
UpdateProcStatusResp
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'msc.level1.Level1Srv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
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