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
4df23c34
Commit
4df23c34
authored
Aug 01, 2021
by
Wei Shoulin
Browse files
level1 file
parent
508b78ca
Changes
4
Hide whitespace changes
Inline
Side-by-side
csst_dfs_proto/ifs/level1/level1_pb2.py
View file @
4df23c34
...
...
@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package
=
'dfs.ifs.level1'
,
syntax
=
'proto3'
,
serialized_options
=
_b
(
'Z
\037
cnlab.net/csst/proto/ifs/level1'
),
serialized_pb
=
_b
(
'
\n\x17
ifs/level1/level1.proto
\x12\x0e\x64\x66
s.ifs.level1
\x1a\x12\x63
ommon/error.proto
\"\xe7\x02\n\x0c
Level1Record
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\x12\x11\n\t
data_type
\x18\x03
\x01
(
\t\x12\x12\n\n
cor_sci_id
\x18\x04
\x01
(
\x03\x12\x12\n\n
prc_params
\x18\x05
\x01
(
\t\x12\x0f\n\x07\x66
lat_id
\x18\x06
\x01
(
\x03\x12\x0f\n\x07\x64\x61
rk_id
\x18\x07
\x01
(
\x03\x12\x0f\n\x07\x62
ias_id
\x18\x08
\x01
(
\x03\x12\x0f\n\x07
lamp_id
\x18\t
\x01
(
\x03\x12\x0e\n\x06\x61
rc_id
\x18\n
\x01
(
\x03\x12\x0e\n\x06
sky_id
\x18\x0b
\x01
(
\x03\x12\x10\n\x08\x66
ilename
\x18\x0c
\x01
(
\t\x12\x11\n\t
file_path
\x18\r
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\x0e
\x01
(
\x05\x12\x10\n\x08
qc1_time
\x18\x0f
\x01
(
\t\x12\x12\n\n
prc_status
\x18\x10
\x01
(
\x05\x12\x10\n\x08
prc_time
\x18\x11
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x12
\x01
(
\t\x12\x13\n\x0b
pipeline_id
\x18\x13
\x01
(
\t\"\xb8\x02\n\r
FindLevel1Req
\x12\x11\n\t
level0_id
\x18\x01
\x01
(
\t\x12\x11\n\t
data_type
\x18\x02
\x01
(
\t\x12\x19\n\x11\x63
reate_time_start
\x18\x03
\x01
(
\t\x12\x17\n\x0f\x63
reate_time_end
\x18\x04
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\x05
\x01
(
\x05\x12\x12\n\n
prc_status
\x18\x06
\x01
(
\x05\x12\x10\n\x08\x66
ilename
\x18\x07
\x01
(
\t\x12\r\n\x05
limit
\x18\x08
\x01
(
\x05\x12
L
\n\x10
other_conditions
\x18\t
\x03
(
\x0b\x32\x32
.dfs.ifs.level1.FindLevel1Req.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\"\x82\x01\n\x0e\x46
indLevel1Resp
\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\x1c
.dfs.ifs.level1.Level1Record
\"\x1a\n\x0c
GetLevel1Req
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\"
=
\n\r
GetLevel1Resp
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.ifs.level1.Level1Record
\"
>
\n\x0e
WriteLevel1Req
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.ifs.level1.Level1Record
\"
n
\n\x0f
WriteLevel1Resp
\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\x1c
.dfs.ifs.level1.Level1Record
\"
0
\n\x12
UpdateQc1StatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\x05\"
D
\n\x13
UpdateQc1StatusResp
\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
(
\x05\"
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
5
\x03\n\t
Level1Srv
\x12
G
\n\x04\x46
ind
\x12\x1d
.dfs.ifs.level1.FindLevel1Req
\x1a\x1e
.dfs.ifs.level1.FindLevel1Resp
\"\x00\x12\x44\n\x03
Get
\x12\x1c
.dfs.ifs.level1.GetLevel1Req
\x1a\x1d
.dfs.ifs.level1.GetLevel1Resp
\"\x00\x12
J
\n\x05
Write
\x12\x1e
.dfs.ifs.level1.WriteLevel1Req
\x1a\x1f
.dfs.ifs.level1.WriteLevel1Resp
\"\x00\x12\\\n\x0f
UpdateQc1Status
\x12\"
.dfs.ifs.level1.UpdateQc1StatusReq
\x1a
#.dfs.ifs.level1.UpdateQc1StatusResp
\"\x00\x12
_
\n\x10
UpdateProcStatus
\x12
#.dfs.ifs.level1.UpdateProcStatusReq
\x1a
$.dfs.ifs.level1.UpdateProcStatusResp
\"\x00\x42
!Z
\x1f\x63
nlab.net/csst/proto/ifs/level1b
\x06
proto3'
)
serialized_pb
=
_b
(
'
\n\x17
ifs/level1/level1.proto
\x12\x0e\x64\x66
s.ifs.level1
\x1a\x12\x63
ommon/error.proto
\"\xe7\x02\n\x0c
Level1Record
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\x12\x11\n\t
data_type
\x18\x03
\x01
(
\t\x12\x12\n\n
cor_sci_id
\x18\x04
\x01
(
\x03\x12\x12\n\n
prc_params
\x18\x05
\x01
(
\t\x12\x0f\n\x07\x66
lat_id
\x18\x06
\x01
(
\x03\x12\x0f\n\x07\x64\x61
rk_id
\x18\x07
\x01
(
\x03\x12\x0f\n\x07\x62
ias_id
\x18\x08
\x01
(
\x03\x12\x0f\n\x07
lamp_id
\x18\t
\x01
(
\x03\x12\x0e\n\x06\x61
rc_id
\x18\n
\x01
(
\x03\x12\x0e\n\x06
sky_id
\x18\x0b
\x01
(
\x03\x12\x10\n\x08\x66
ilename
\x18\x0c
\x01
(
\t\x12\x11\n\t
file_path
\x18\r
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\x0e
\x01
(
\x05\x12\x10\n\x08
qc1_time
\x18\x0f
\x01
(
\t\x12\x12\n\n
prc_status
\x18\x10
\x01
(
\x05\x12\x10\n\x08
prc_time
\x18\x11
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x12
\x01
(
\t\x12\x13\n\x0b
pipeline_id
\x18\x13
\x01
(
\t\"\xb8\x02\n\r
FindLevel1Req
\x12\x11\n\t
level0_id
\x18\x01
\x01
(
\t\x12\x11\n\t
data_type
\x18\x02
\x01
(
\t\x12\x19\n\x11\x63
reate_time_start
\x18\x03
\x01
(
\t\x12\x17\n\x0f\x63
reate_time_end
\x18\x04
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\x05
\x01
(
\x05\x12\x12\n\n
prc_status
\x18\x06
\x01
(
\x05\x12\x10\n\x08\x66
ilename
\x18\x07
\x01
(
\t\x12\r\n\x05
limit
\x18\x08
\x01
(
\x05\x12
L
\n\x10
other_conditions
\x18\t
\x03
(
\x0b\x32\x32
.dfs.ifs.level1.FindLevel1Req.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\"\x82\x01\n\x0e\x46
indLevel1Resp
\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\x1c
.dfs.ifs.level1.Level1Record
\"\x1a\n\x0c
GetLevel1Req
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\"
=
\n\r
GetLevel1Resp
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.ifs.level1.Level1Record
\"
L
\n\x0e
WriteLevel1Req
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.ifs.level1.Level1Record
\
x12\x0c\n\x04\x64\x61
ta
\x18\x02
\x01
(
\x0c\
"
n
\n\x0f
WriteLevel1Resp
\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\x1c
.dfs.ifs.level1.Level1Record
\"
0
\n\x12
UpdateQc1StatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\x05\"
D
\n\x13
UpdateQc1StatusResp
\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
(
\x05\"
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
7
\x03\n\t
Level1Srv
\x12
G
\n\x04\x46
ind
\x12\x1d
.dfs.ifs.level1.FindLevel1Req
\x1a\x1e
.dfs.ifs.level1.FindLevel1Resp
\"\x00\x12\x44\n\x03
Get
\x12\x1c
.dfs.ifs.level1.GetLevel1Req
\x1a\x1d
.dfs.ifs.level1.GetLevel1Resp
\"\x00\x12
L
\n\x05
Write
\x12\x1e
.dfs.ifs.level1.WriteLevel1Req
\x1a\x1f
.dfs.ifs.level1.WriteLevel1Resp
\"\x00
(
\x01
\x12\\\n\x0f
UpdateQc1Status
\x12\"
.dfs.ifs.level1.UpdateQc1StatusReq
\x1a
#.dfs.ifs.level1.UpdateQc1StatusResp
\"\x00\x12
_
\n\x10
UpdateProcStatus
\x12
#.dfs.ifs.level1.UpdateProcStatusReq
\x1a
$.dfs.ifs.level1.UpdateProcStatusResp
\"\x00\x42
!Z
\x1f\x63
nlab.net/csst/proto/ifs/level1b
\x06
proto3'
)
,
dependencies
=
[
common_dot_error__pb2
.
DESCRIPTOR
,])
...
...
@@ -437,6 +437,13 @@ _WRITELEVEL1REQ = _descriptor.Descriptor(
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'data'
,
full_name
=
'dfs.ifs.level1.WriteLevel1Req.data'
,
index
=
1
,
number
=
2
,
type
=
12
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
extensions
=
[
],
...
...
@@ -450,7 +457,7 @@ _WRITELEVEL1REQ = _descriptor.Descriptor(
oneofs
=
[
],
serialized_start
=
964
,
serialized_end
=
10
26
,
serialized_end
=
10
40
,
)
...
...
@@ -494,8 +501,8 @@ _WRITELEVEL1RESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
102
8
,
serialized_end
=
11
38
,
serialized_start
=
10
4
2
,
serialized_end
=
11
52
,
)
...
...
@@ -532,8 +539,8 @@ _UPDATEQC1STATUSREQ = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
114
0
,
serialized_end
=
1
188
,
serialized_start
=
11
5
4
,
serialized_end
=
1
202
,
)
...
...
@@ -570,8 +577,8 @@ _UPDATEQC1STATUSRESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
1
190
,
serialized_end
=
12
58
,
serialized_start
=
1
204
,
serialized_end
=
12
72
,
)
...
...
@@ -608,8 +615,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
12
60
,
serialized_end
=
13
09
,
serialized_start
=
12
74
,
serialized_end
=
13
23
,
)
...
...
@@ -646,8 +653,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
13
11
,
serialized_end
=
13
80
,
serialized_start
=
13
25
,
serialized_end
=
13
94
,
)
_FINDLEVEL1REQ_OTHERCONDITIONSENTRY
.
containing_type
=
_FINDLEVEL1REQ
...
...
@@ -768,8 +775,8 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
file
=
DESCRIPTOR
,
index
=
0
,
serialized_options
=
None
,
serialized_start
=
13
83
,
serialized_end
=
180
4
,
serialized_start
=
13
97
,
serialized_end
=
18
2
0
,
methods
=
[
_descriptor
.
MethodDescriptor
(
name
=
'Find'
,
...
...
csst_dfs_proto/ifs/level1/level1_pb2_grpc.py
View file @
4df23c34
...
...
@@ -24,7 +24,7 @@ class Level1SrvStub(object):
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
(
self
.
Write
=
channel
.
stream
_unary
(
'/dfs.ifs.level1.Level1Srv/Write'
,
request_serializer
=
ifs_dot_level1_dot_level1__pb2
.
WriteLevel1Req
.
SerializeToString
,
response_deserializer
=
ifs_dot_level1_dot_level1__pb2
.
WriteLevel1Resp
.
FromString
,
...
...
@@ -59,7 +59,7 @@ class Level1SrvServicer(object):
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Write
(
self
,
request
,
context
):
def
Write
(
self
,
request
_iterator
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
...
...
@@ -93,7 +93,7 @@ def add_Level1SrvServicer_to_server(servicer, server):
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
(
'Write'
:
grpc
.
stream
_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
,
...
...
csst_dfs_proto/msc/level1/level1_pb2.py
View file @
4df23c34
...
...
@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package
=
'dfs.msc.level1'
,
syntax
=
'proto3'
,
serialized_options
=
_b
(
'Z
\037
cnlab.net/csst/proto/msc/level1'
),
serialized_pb
=
_b
(
'
\n\x17
msc/level1/level1.proto
\x12\x0e\x64\x66
s.msc.level1
\x1a\x12\x63
ommon/error.proto
\"\xb6\x02\n\x0c
Level1Record
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\x12\x11\n\t
data_type
\x18\x03
\x01
(
\t\x12\x12\n\n
cor_sci_id
\x18\x04
\x01
(
\x03\x12\x12\n\n
prc_params
\x18\x05
\x01
(
\t\x12\x0f\n\x07\x66
lat_id
\x18\x06
\x01
(
\x03\x12\x0f\n\x07\x64\x61
rk_id
\x18\x07
\x01
(
\x03\x12\x0f\n\x07\x62
ias_id
\x18\x08
\x01
(
\x03\x12\x10\n\x08\x66
ilename
\x18\t
\x01
(
\t\x12\x11\n\t
file_path
\x18\n
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\x0b
\x01
(
\x05\x12\x10\n\x08
qc1_time
\x18\x0c
\x01
(
\t\x12\x12\n\n
prc_status
\x18\r
\x01
(
\x05\x12\x10\n\x08
prc_time
\x18\x0e
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x0f
\x01
(
\t\x12\x13\n\x0b
pipeline_id
\x18\x10
\x01
(
\t\"\xb8\x02\n\r
FindLevel1Req
\x12\x11\n\t
level0_id
\x18\x01
\x01
(
\t\x12\x11\n\t
data_type
\x18\x02
\x01
(
\t\x12\x19\n\x11\x63
reate_time_start
\x18\x03
\x01
(
\t\x12\x17\n\x0f\x63
reate_time_end
\x18\x04
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\x05
\x01
(
\x05\x12\x12\n\n
prc_status
\x18\x06
\x01
(
\x05\x12\x10\n\x08\x66
ilename
\x18\x07
\x01
(
\t\x12\r\n\x05
limit
\x18\x08
\x01
(
\x05\x12
L
\n\x10
other_conditions
\x18\t
\x03
(
\x0b\x32\x32
.dfs.msc.level1.FindLevel1Req.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\"\x82\x01\n\x0e\x46
indLevel1Resp
\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\x1c
.dfs.msc.level1.Level1Record
\"\x1a\n\x0c
GetLevel1Req
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\"
=
\n\r
GetLevel1Resp
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.msc.level1.Level1Record
\"
>
\n\x0e
WriteLevel1Req
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.msc.level1.Level1Record
\"
n
\n\x0f
WriteLevel1Resp
\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\x1c
.dfs.msc.level1.Level1Record
\"
0
\n\x12
UpdateQc1StatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\x05\"
D
\n\x13
UpdateQc1StatusResp
\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
(
\x05\"
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
5
\x03\n\t
Level1Srv
\x12
G
\n\x04\x46
ind
\x12\x1d
.dfs.msc.level1.FindLevel1Req
\x1a\x1e
.dfs.msc.level1.FindLevel1Resp
\"\x00\x12\x44\n\x03
Get
\x12\x1c
.dfs.msc.level1.GetLevel1Req
\x1a\x1d
.dfs.msc.level1.GetLevel1Resp
\"\x00\x12
J
\n\x05
Write
\x12\x1e
.dfs.msc.level1.WriteLevel1Req
\x1a\x1f
.dfs.msc.level1.WriteLevel1Resp
\"\x00\x12\\\n\x0f
UpdateQc1Status
\x12\"
.dfs.msc.level1.UpdateQc1StatusReq
\x1a
#.dfs.msc.level1.UpdateQc1StatusResp
\"\x00\x12
_
\n\x10
UpdateProcStatus
\x12
#.dfs.msc.level1.UpdateProcStatusReq
\x1a
$.dfs.msc.level1.UpdateProcStatusResp
\"\x00\x42
!Z
\x1f\x63
nlab.net/csst/proto/msc/level1b
\x06
proto3'
)
serialized_pb
=
_b
(
'
\n\x17
msc/level1/level1.proto
\x12\x0e\x64\x66
s.msc.level1
\x1a\x12\x63
ommon/error.proto
\"\xb6\x02\n\x0c
Level1Record
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\x12\x11\n\t
data_type
\x18\x03
\x01
(
\t\x12\x12\n\n
cor_sci_id
\x18\x04
\x01
(
\x03\x12\x12\n\n
prc_params
\x18\x05
\x01
(
\t\x12\x0f\n\x07\x66
lat_id
\x18\x06
\x01
(
\x03\x12\x0f\n\x07\x64\x61
rk_id
\x18\x07
\x01
(
\x03\x12\x0f\n\x07\x62
ias_id
\x18\x08
\x01
(
\x03\x12\x10\n\x08\x66
ilename
\x18\t
\x01
(
\t\x12\x11\n\t
file_path
\x18\n
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\x0b
\x01
(
\x05\x12\x10\n\x08
qc1_time
\x18\x0c
\x01
(
\t\x12\x12\n\n
prc_status
\x18\r
\x01
(
\x05\x12\x10\n\x08
prc_time
\x18\x0e
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x0f
\x01
(
\t\x12\x13\n\x0b
pipeline_id
\x18\x10
\x01
(
\t\"\xb8\x02\n\r
FindLevel1Req
\x12\x11\n\t
level0_id
\x18\x01
\x01
(
\t\x12\x11\n\t
data_type
\x18\x02
\x01
(
\t\x12\x19\n\x11\x63
reate_time_start
\x18\x03
\x01
(
\t\x12\x17\n\x0f\x63
reate_time_end
\x18\x04
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\x05
\x01
(
\x05\x12\x12\n\n
prc_status
\x18\x06
\x01
(
\x05\x12\x10\n\x08\x66
ilename
\x18\x07
\x01
(
\t\x12\r\n\x05
limit
\x18\x08
\x01
(
\x05\x12
L
\n\x10
other_conditions
\x18\t
\x03
(
\x0b\x32\x32
.dfs.msc.level1.FindLevel1Req.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\"\x82\x01\n\x0e\x46
indLevel1Resp
\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\x1c
.dfs.msc.level1.Level1Record
\"\x1a\n\x0c
GetLevel1Req
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\"
=
\n\r
GetLevel1Resp
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.msc.level1.Level1Record
\"
L
\n\x0e
WriteLevel1Req
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.msc.level1.Level1Record
\
x12\x0c\n\x04\x64\x61
ta
\x18\x02
\x01
(
\x0c\
"
n
\n\x0f
WriteLevel1Resp
\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\x1c
.dfs.msc.level1.Level1Record
\"
0
\n\x12
UpdateQc1StatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
status
\x18\x02
\x01
(
\x05\"
D
\n\x13
UpdateQc1StatusResp
\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
(
\x05\"
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
7
\x03\n\t
Level1Srv
\x12
G
\n\x04\x46
ind
\x12\x1d
.dfs.msc.level1.FindLevel1Req
\x1a\x1e
.dfs.msc.level1.FindLevel1Resp
\"\x00\x12\x44\n\x03
Get
\x12\x1c
.dfs.msc.level1.GetLevel1Req
\x1a\x1d
.dfs.msc.level1.GetLevel1Resp
\"\x00\x12
L
\n\x05
Write
\x12\x1e
.dfs.msc.level1.WriteLevel1Req
\x1a\x1f
.dfs.msc.level1.WriteLevel1Resp
\"\x00
(
\x01
\x12\\\n\x0f
UpdateQc1Status
\x12\"
.dfs.msc.level1.UpdateQc1StatusReq
\x1a
#.dfs.msc.level1.UpdateQc1StatusResp
\"\x00\x12
_
\n\x10
UpdateProcStatus
\x12
#.dfs.msc.level1.UpdateProcStatusReq
\x1a
$.dfs.msc.level1.UpdateProcStatusResp
\"\x00\x42
!Z
\x1f\x63
nlab.net/csst/proto/msc/level1b
\x06
proto3'
)
,
dependencies
=
[
common_dot_error__pb2
.
DESCRIPTOR
,])
...
...
@@ -416,6 +416,13 @@ _WRITELEVEL1REQ = _descriptor.Descriptor(
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'data'
,
full_name
=
'dfs.msc.level1.WriteLevel1Req.data'
,
index
=
1
,
number
=
2
,
type
=
12
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
extensions
=
[
],
...
...
@@ -429,7 +436,7 @@ _WRITELEVEL1REQ = _descriptor.Descriptor(
oneofs
=
[
],
serialized_start
=
915
,
serialized_end
=
9
77
,
serialized_end
=
9
91
,
)
...
...
@@ -473,8 +480,8 @@ _WRITELEVEL1RESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
9
7
9
,
serialized_end
=
1
089
,
serialized_start
=
99
3
,
serialized_end
=
1
103
,
)
...
...
@@ -511,8 +518,8 @@ _UPDATEQC1STATUSREQ = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
1
091
,
serialized_end
=
113
9
,
serialized_start
=
1
105
,
serialized_end
=
11
5
3
,
)
...
...
@@ -549,8 +556,8 @@ _UPDATEQC1STATUSRESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
11
41
,
serialized_end
=
12
09
,
serialized_start
=
11
55
,
serialized_end
=
12
23
,
)
...
...
@@ -587,8 +594,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
12
11
,
serialized_end
=
12
60
,
serialized_start
=
12
25
,
serialized_end
=
12
74
,
)
...
...
@@ -625,8 +632,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
extension_ranges
=
[],
oneofs
=
[
],
serialized_start
=
126
2
,
serialized_end
=
13
31
,
serialized_start
=
12
7
6
,
serialized_end
=
13
45
,
)
_FINDLEVEL1REQ_OTHERCONDITIONSENTRY
.
containing_type
=
_FINDLEVEL1REQ
...
...
@@ -747,8 +754,8 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
file
=
DESCRIPTOR
,
index
=
0
,
serialized_options
=
None
,
serialized_start
=
13
3
4
,
serialized_end
=
17
55
,
serialized_start
=
134
8
,
serialized_end
=
17
71
,
methods
=
[
_descriptor
.
MethodDescriptor
(
name
=
'Find'
,
...
...
csst_dfs_proto/msc/level1/level1_pb2_grpc.py
View file @
4df23c34
...
...
@@ -24,7 +24,7 @@ class Level1SrvStub(object):
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
(
self
.
Write
=
channel
.
stream
_unary
(
'/dfs.msc.level1.Level1Srv/Write'
,
request_serializer
=
msc_dot_level1_dot_level1__pb2
.
WriteLevel1Req
.
SerializeToString
,
response_deserializer
=
msc_dot_level1_dot_level1__pb2
.
WriteLevel1Resp
.
FromString
,
...
...
@@ -59,7 +59,7 @@ class Level1SrvServicer(object):
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Write
(
self
,
request
,
context
):
def
Write
(
self
,
request
_iterator
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
...
...
@@ -93,7 +93,7 @@ def add_Level1SrvServicer_to_server(servicer, server):
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
(
'Write'
:
grpc
.
stream
_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
,
...
...
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