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
a98cdd43
Commit
a98cdd43
authored
Feb 23, 2023
by
Wei Shoulin
Browse files
find sls by qc1 status
parent
0984ca62
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_dfs_proto/facility/level1/level1_pb2.py
View file @
a98cdd43
...
...
@@ -19,7 +19,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package
=
'dfs.facility.level1'
,
syntax
=
'proto3'
,
serialized_options
=
b
'Z$cnlab.net/csst/proto/facility/level1'
,
serialized_pb
=
b
'
\n\x1c\x66\x61\x63
ility/level1/level1.proto
\x12\x13\x64\x66
s.facility.level1
\x1a\x12\x63
ommon/error.proto
\"\x9e\x03\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\x11\n\t
module_id
\x18\x05
\x01
(
\t\x12\x12\n\n
prc_params
\x18\x06
\x01
(
\t\x12\x0e\n\x06\x66
ilter
\x18\x07
\x01
(
\t\x12\x10\n\x08\x66
ilename
\x18\x08
\x01
(
\t\x12\x11\n\t
file_path
\x18\t
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\n
\x01
(
\x05\x12\x10\n\x08
qc1_time
\x18\x0b
\x01
(
\t\x12\x12\n\n
prc_status
\x18\x0c
\x01
(
\x05\x12\x10\n\x08
prc_time
\x18\r
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x0e
\x01
(
\t\x12\x13\n\x0b
pipeline_id
\x18\x0f
\x01
(
\t\x12\x0e\n\x06
header
\x18\x10
\x01
(
\t\x12\x39\n\x04
refs
\x18\x11
\x03
(
\x0b\x32
+.dfs.facility.level1.Level1Record.RefsEntry
\x1a
+
\n\t
RefsEntry
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\r\n\x05
value
\x18\x02
\x01
(
\t
:
\x02\x38\x01\"\xd0\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\x11\n\t
module_id
\x18\x03
\x01
(
\t\x12\x19\n\x11\x63
reate_time_start
\x18\x04
\x01
(
\t\x12\x17\n\x0f\x63
reate_time_end
\x18\x05
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\x06
\x01
(
\x05\x12\x12\n\n
prc_status
\x18\x07
\x01
(
\x05\x12\x10\n\x08\x66
ilename
\x18\x08
\x01
(
\t\x12\r\n\x05
limit
\x18\t
\x01
(
\x05\x12
Q
\n\x10
other_conditions
\x18\n
\x03
(
\x0b\x32\x37
.dfs.facility.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\"\x87\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\x32\n\x07
records
\x18\x04
\x03
(
\x0b\x32
!.dfs.facility.level1.Level1Record
\"
&
\n\x11\x46
indByBrickIdsReq
\x12\x11\n\t
brick_ids
\x18\x01
\x03
(
\x05\"
w
\n\x12\x46
indByBrickIdsResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error
\x12\x32\n\x07
records
\x18\x03
\x03
(
\x0b\x32
!.dfs.facility.level1.Level1Record
\"
@
\n\x0c
GetLevel1Req
\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\"
B
\n\r
GetLevel1Resp
\x12\x31\n\x06
record
\x18\x01
\x01
(
\x0b\x32
!.dfs.facility.level1.Level1Record
\"
Q
\n\x0e
WriteLevel1Req
\x12\x31\n\x06
record
\x18\x01
\x01
(
\x0b\x32
!.dfs.facility.level1.Level1Record
\x12\x0c\n\x04\x64\x61
ta
\x18\x02
\x01
(
\x0c\"
s
\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\x31\n\x06
record
\x18\x03
\x01
(
\x0b\x32
!.dfs.facility.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
\x
be
\x0
4
\n\t
Level1Srv
\x12
Q
\n\x04\x46
ind
\x12\"
.dfs.facility.level1.FindLevel1Req
\x1a
#.dfs.facility.level1.FindLevel1Resp
\"\x00\x12\x63\n\x0e\x46
indByBrickIds
\x12
&.dfs.facility.level1.FindByBrickIdsReq
\x1a\'
.dfs.facility.level1.FindByBrickIdsResp
\"\x00\x12
N
\n\x03
Get
\x12
!.dfs.facility.level1.GetLevel1Req
\x1a\"
.dfs.facility.level1.GetLevel1Resp
\"\x00\x12
V
\n\x05
Write
\x12
#.dfs.facility.level1.WriteLevel1Req
\x1a
$.dfs.facility.level1.WriteLevel1Resp
\"\x00
(
\x01\x12\x66\n\x0f
UpdateQc1Status
\x12\'
.dfs.facility.level1.UpdateQc1StatusReq
\x1a
(.dfs.facility.level1.UpdateQc1StatusResp
\"\x00\x12
i
\n\x10
UpdateProcStatus
\x12
(.dfs.facility.level1.UpdateProcStatusReq
\x1a
).dfs.facility.level1.UpdateProcStatusResp
\"\x00\x42
&Z$cnlab.net/csst/proto/facility/level1b
\x06
proto3'
serialized_pb
=
b
'
\n\x1c\x66\x61\x63
ility/level1/level1.proto
\x12\x13\x64\x66
s.facility.level1
\x1a\x12\x63
ommon/error.proto
\"\x9e\x03\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\x11\n\t
module_id
\x18\x05
\x01
(
\t\x12\x12\n\n
prc_params
\x18\x06
\x01
(
\t\x12\x0e\n\x06\x66
ilter
\x18\x07
\x01
(
\t\x12\x10\n\x08\x66
ilename
\x18\x08
\x01
(
\t\x12\x11\n\t
file_path
\x18\t
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\n
\x01
(
\x05\x12\x10\n\x08
qc1_time
\x18\x0b
\x01
(
\t\x12\x12\n\n
prc_status
\x18\x0c
\x01
(
\x05\x12\x10\n\x08
prc_time
\x18\r
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x0e
\x01
(
\t\x12\x13\n\x0b
pipeline_id
\x18\x0f
\x01
(
\t\x12\x0e\n\x06
header
\x18\x10
\x01
(
\t\x12\x39\n\x04
refs
\x18\x11
\x03
(
\x0b\x32
+.dfs.facility.level1.Level1Record.RefsEntry
\x1a
+
\n\t
RefsEntry
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12\r\n\x05
value
\x18\x02
\x01
(
\t
:
\x02\x38\x01\"\xd0\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\x11\n\t
module_id
\x18\x03
\x01
(
\t\x12\x19\n\x11\x63
reate_time_start
\x18\x04
\x01
(
\t\x12\x17\n\x0f\x63
reate_time_end
\x18\x05
\x01
(
\t\x12\x12\n\n
qc1_status
\x18\x06
\x01
(
\x05\x12\x12\n\n
prc_status
\x18\x07
\x01
(
\x05\x12\x10\n\x08\x66
ilename
\x18\x08
\x01
(
\t\x12\r\n\x05
limit
\x18\t
\x01
(
\x05\x12
Q
\n\x10
other_conditions
\x18\n
\x03
(
\x0b\x32\x37
.dfs.facility.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\"\x87\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\x32\n\x07
records
\x18\x04
\x03
(
\x0b\x32
!.dfs.facility.level1.Level1Record
\"
&
\n\x11\x46
indByBrickIdsReq
\x12\x11\n\t
brick_ids
\x18\x01
\x03
(
\x05\"
w
\n\x12\x46
indByBrickIdsResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error
\x12\x32\n\x07
records
\x18\x03
\x03
(
\x0b\x32
!.dfs.facility.level1.Level1Record
\"
@
\n\x0c
GetLevel1Req
\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\"
B
\n\r
GetLevel1Resp
\x12\x31\n\x06
record
\x18\x01
\x01
(
\x0b\x32
!.dfs.facility.level1.Level1Record
\"
Q
\n\x0e
WriteLevel1Req
\x12\x31\n\x06
record
\x18\x01
\x01
(
\x0b\x32
!.dfs.facility.level1.Level1Record
\x12\x0c\n\x04\x64\x61
ta
\x18\x02
\x01
(
\x0c\"
s
\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\x31\n\x06
record
\x18\x03
\x01
(
\x0b\x32
!.dfs.facility.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
\x
9c
\x0
5
\n\t
Level1Srv
\x12
Q
\n\x04\x46
ind
\x12\"
.dfs.facility.level1.FindLevel1Req
\x1a
#.dfs.facility.level1.FindLevel1Resp
\"\x00\x12\x63\n\x0e\x46
indByBrickIds
\x12
&.dfs.facility.level1.FindByBrickIdsReq
\x1a\'
.dfs.facility.level1.FindByBrickIdsResp
\"\x00\
x12\\\n\x0f\x46
indByQc1Status
\x12\"
.dfs.facility.level1.FindLevel1Req
\x1a
#.dfs.facility.level1.FindLevel1Resp
\"\x00\
x12
N
\n\x03
Get
\x12
!.dfs.facility.level1.GetLevel1Req
\x1a\"
.dfs.facility.level1.GetLevel1Resp
\"\x00\x12
V
\n\x05
Write
\x12
#.dfs.facility.level1.WriteLevel1Req
\x1a
$.dfs.facility.level1.WriteLevel1Resp
\"\x00
(
\x01\x12\x66\n\x0f
UpdateQc1Status
\x12\'
.dfs.facility.level1.UpdateQc1StatusReq
\x1a
(.dfs.facility.level1.UpdateQc1StatusResp
\"\x00\x12
i
\n\x10
UpdateProcStatus
\x12
(.dfs.facility.level1.UpdateProcStatusReq
\x1a
).dfs.facility.level1.UpdateProcStatusResp
\"\x00\x42
&Z$cnlab.net/csst/proto/facility/level1b
\x06
proto3'
,
dependencies
=
[
common_dot_error__pb2
.
DESCRIPTOR
,])
...
...
@@ -923,7 +923,7 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
index
=
0
,
serialized_options
=
None
,
serialized_start
=
1705
,
serialized_end
=
2
279
,
serialized_end
=
2
373
,
methods
=
[
_descriptor
.
MethodDescriptor
(
name
=
'Find'
,
...
...
@@ -943,10 +943,19 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
output_type
=
_FINDBYBRICKIDSRESP
,
serialized_options
=
None
,
),
_descriptor
.
MethodDescriptor
(
name
=
'FindByQc1Status'
,
full_name
=
'dfs.facility.level1.Level1Srv.FindByQc1Status'
,
index
=
2
,
containing_service
=
None
,
input_type
=
_FINDLEVEL1REQ
,
output_type
=
_FINDLEVEL1RESP
,
serialized_options
=
None
,
),
_descriptor
.
MethodDescriptor
(
name
=
'Get'
,
full_name
=
'dfs.facility.level1.Level1Srv.Get'
,
index
=
2
,
index
=
3
,
containing_service
=
None
,
input_type
=
_GETLEVEL1REQ
,
output_type
=
_GETLEVEL1RESP
,
...
...
@@ -955,7 +964,7 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
_descriptor
.
MethodDescriptor
(
name
=
'Write'
,
full_name
=
'dfs.facility.level1.Level1Srv.Write'
,
index
=
3
,
index
=
4
,
containing_service
=
None
,
input_type
=
_WRITELEVEL1REQ
,
output_type
=
_WRITELEVEL1RESP
,
...
...
@@ -964,7 +973,7 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
_descriptor
.
MethodDescriptor
(
name
=
'UpdateQc1Status'
,
full_name
=
'dfs.facility.level1.Level1Srv.UpdateQc1Status'
,
index
=
4
,
index
=
5
,
containing_service
=
None
,
input_type
=
_UPDATEQC1STATUSREQ
,
output_type
=
_UPDATEQC1STATUSRESP
,
...
...
@@ -973,7 +982,7 @@ _LEVEL1SRV = _descriptor.ServiceDescriptor(
_descriptor
.
MethodDescriptor
(
name
=
'UpdateProcStatus'
,
full_name
=
'dfs.facility.level1.Level1Srv.UpdateProcStatus'
,
index
=
5
,
index
=
6
,
containing_service
=
None
,
input_type
=
_UPDATEPROCSTATUSREQ
,
output_type
=
_UPDATEPROCSTATUSRESP
,
...
...
csst_dfs_proto/facility/level1/level1_pb2_grpc.py
View file @
a98cdd43
...
...
@@ -23,6 +23,11 @@ class Level1SrvStub(object):
request_serializer
=
facility_dot_level1_dot_level1__pb2
.
FindByBrickIdsReq
.
SerializeToString
,
response_deserializer
=
facility_dot_level1_dot_level1__pb2
.
FindByBrickIdsResp
.
FromString
,
)
self
.
FindByQc1Status
=
channel
.
unary_unary
(
'/dfs.facility.level1.Level1Srv/FindByQc1Status'
,
request_serializer
=
facility_dot_level1_dot_level1__pb2
.
FindLevel1Req
.
SerializeToString
,
response_deserializer
=
facility_dot_level1_dot_level1__pb2
.
FindLevel1Resp
.
FromString
,
)
self
.
Get
=
channel
.
unary_unary
(
'/dfs.facility.level1.Level1Srv/Get'
,
request_serializer
=
facility_dot_level1_dot_level1__pb2
.
GetLevel1Req
.
SerializeToString
,
...
...
@@ -60,6 +65,12 @@ class Level1SrvServicer(object):
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
FindByQc1Status
(
self
,
request
,
context
):
"""Missing associated documentation comment in .proto file"""
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"""
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
...
...
@@ -97,6 +108,11 @@ def add_Level1SrvServicer_to_server(servicer, server):
request_deserializer
=
facility_dot_level1_dot_level1__pb2
.
FindByBrickIdsReq
.
FromString
,
response_serializer
=
facility_dot_level1_dot_level1__pb2
.
FindByBrickIdsResp
.
SerializeToString
,
),
'FindByQc1Status'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
FindByQc1Status
,
request_deserializer
=
facility_dot_level1_dot_level1__pb2
.
FindLevel1Req
.
FromString
,
response_serializer
=
facility_dot_level1_dot_level1__pb2
.
FindLevel1Resp
.
SerializeToString
,
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
request_deserializer
=
facility_dot_level1_dot_level1__pb2
.
GetLevel1Req
.
FromString
,
...
...
@@ -159,6 +175,22 @@ class Level1Srv(object):
options
,
channel_credentials
,
call_credentials
,
compression
,
wait_for_ready
,
timeout
,
metadata
)
@
staticmethod
def
FindByQc1Status
(
request
,
target
,
options
=
(),
channel_credentials
=
None
,
call_credentials
=
None
,
compression
=
None
,
wait_for_ready
=
None
,
timeout
=
None
,
metadata
=
None
):
return
grpc
.
experimental
.
unary_unary
(
request
,
target
,
'/dfs.facility.level1.Level1Srv/FindByQc1Status'
,
facility_dot_level1_dot_level1__pb2
.
FindLevel1Req
.
SerializeToString
,
facility_dot_level1_dot_level1__pb2
.
FindLevel1Resp
.
FromString
,
options
,
channel_credentials
,
call_credentials
,
compression
,
wait_for_ready
,
timeout
,
metadata
)
@
staticmethod
def
Get
(
request
,
target
,
...
...
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