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
2c219ab9
Commit
2c219ab9
authored
Jun 16, 2022
by
Wei Shoulin
Browse files
object name and level2
parent
59d2e932
Pipeline
#10
canceled with stages
Changes
5
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
csst_dfs_proto/ifs/level0/level0_pb2.py
View file @
2c219ab9
...
@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
...
@@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package
=
'dfs.ifs.level0'
,
package
=
'dfs.ifs.level0'
,
syntax
=
'proto3'
,
syntax
=
'proto3'
,
serialized_options
=
_b
(
'Z
\037
cnlab.net/csst/proto/ifs/level0'
),
serialized_options
=
_b
(
'Z
\037
cnlab.net/csst/proto/ifs/level0'
),
serialized_pb
=
_b
(
'
\n\x17
ifs/level0/level0.proto
\x12\x0e\x64\x66
s.ifs.level0
\x1a\x12\x63
ommon/error.proto
\"\x
aa
\x02\n\x0c
Level0Record
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\x12\x0e\n\x06
obs_id
\x18\x03
\x01
(
\t\x12\x13\n\x0b\x64\x65
tector_no
\x18\x04
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x05
\x01
(
\t\x12\x10\n\x08
obs_time
\x18\x0
6
\x01
(
\t\x12\x10\n\x08\x65
xp_time
\x18\x0
7
\x01
(
\x02\x12\x1a\n\x12\x64\x65
tector_status_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
qc0_status
\x18\x0
b
\x01
(
\x05\x12\x10\n\x08
qc0_time
\x18\
x0c
\x01
(
\t\x12\x12\n\n
prc_status
\x18\
r
\x01
(
\x05\x12\x10\n\x08
prc_time
\x18\x0
e
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x0
f
\x01
(
\t\"\x
cc
\x02\n\x11\x46
indLevel0DataReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\t\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\x0
4
\x01
(
\t\x12\x14\n\x0c\x65
xp_time_end
\x18\x0
5
\x01
(
\t\x12\x12\n\n
qc0_status
\x18\x0
6
\x01
(
\x05\x12\x12\n\n
prc_status
\x18\x0
7
\x01
(
\x05\x12\x11\n\t
file_name
\x18\
x08
\x01
(
\t\x12\r\n\x05
limit
\x18\
t
\x01
(
\x05\x12
P
\n\x10
other_conditions
\x18\
n
\x03
(
\x0b\x32\x36
.dfs.ifs.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\"\x86\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\x1c
.dfs.ifs.level0.Level0Record
\"
1
\n\x10
GetLevel0DataReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\"
A
\n\x11
GetLevel0DataResp
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.ifs.level0.Level0Record
\"
B
\n\x12
WriteLevel0DataReq
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.ifs.level0.Level0Record
\"
r
\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\x1c
.dfs.ifs.level0.Level0Record
\"
C
\n\x12
UpdateQc0StatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\x12\x0e\n\x06
status
\x18\x03
\x01
(
\x05\"
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
\"
D
\n\x13
UpdateProcStatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\x12\x0e\n\x06
status
\x18\x03
\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
\xbd\x03\n\t
Level0Srv
\x12
O
\n\x04\x46
ind
\x12
!.dfs.ifs.level0.FindLevel0DataReq
\x1a\"
.dfs.ifs.level0.FindLevel0DataResp
\"\x00\x12
L
\n\x03
Get
\x12
.dfs.ifs.level0.GetLevel0DataReq
\x1a
!.dfs.ifs.level0.GetLevel0DataResp
\"\x00\x12
R
\n\x05
Write
\x12\"
.dfs.ifs.level0.WriteLevel0DataReq
\x1a
#.dfs.ifs.level0.WriteLevel0DataResp
\"\x00\x12\\\n\x0f
UpdateQc0Status
\x12\"
.dfs.ifs.level0.UpdateQc0StatusReq
\x1a
#.dfs.ifs.level0.UpdateQc0StatusResp
\"\x00\x12
_
\n\x10
UpdateProcStatus
\x12
#.dfs.ifs.level0.UpdateProcStatusReq
\x1a
$.dfs.ifs.level0.UpdateProcStatusResp
\"\x00\x42
!Z
\x1f\x63
nlab.net/csst/proto/ifs/level0b
\x06
proto3'
)
serialized_pb
=
_b
(
'
\n\x17
ifs/level0/level0.proto
\x12\x0e\x64\x66
s.ifs.level0
\x1a\x12\x63
ommon/error.proto
\"\x
bf
\x02\n\x0c
Level0Record
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\x12\x0e\n\x06
obs_id
\x18\x03
\x01
(
\t\x12\x13\n\x0b\x64\x65
tector_no
\x18\x04
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x05
\x01
(
\t\x12\x13\n\x0b
object_name
\x18\x06
\x01
(
\t\x12\x10\n\x08
obs_time
\x18\x0
7
\x01
(
\t\x12\x10\n\x08\x65
xp_time
\x18\x0
8
\x01
(
\x02\x12\x1a\n\x12\x64\x65
tector_status_id
\x18\
t
\x01
(
\x03\x12\x10\n\x08\x66
ilename
\x18\
n
\x01
(
\t\x12\x11\n\t
file_path
\x18\
x0b
\x01
(
\t\x12\x12\n\n
qc0_status
\x18\x0
c
\x01
(
\x05\x12\x10\n\x08
qc0_time
\x18\
r
\x01
(
\t\x12\x12\n\n
prc_status
\x18\
x0e
\x01
(
\x05\x12\x10\n\x08
prc_time
\x18\x0
f
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x
1
0
\x01
(
\t\"\x
e1
\x02\n\x11\x46
indLevel0DataReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\t\x12\x13\n\x0b\x64\x65
tector_no
\x18\x02
\x01
(
\t\x12\x10\n\x08
obs_type
\x18\x03
\x01
(
\t\x12\x13\n\x0b
object_name
\x18\x04
\x01
(
\t\x12\x16\n\x0e\x65
xp_time_start
\x18\x0
5
\x01
(
\t\x12\x14\n\x0c\x65
xp_time_end
\x18\x0
6
\x01
(
\t\x12\x12\n\n
qc0_status
\x18\x0
7
\x01
(
\x05\x12\x12\n\n
prc_status
\x18\x0
8
\x01
(
\x05\x12\x11\n\t
file_name
\x18\
t
\x01
(
\t\x12\r\n\x05
limit
\x18\
n
\x01
(
\x05\x12
P
\n\x10
other_conditions
\x18\
x0b
\x03
(
\x0b\x32\x36
.dfs.ifs.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\"\x86\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\x1c
.dfs.ifs.level0.Level0Record
\"
1
\n\x10
GetLevel0DataReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\"
A
\n\x11
GetLevel0DataResp
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.ifs.level0.Level0Record
\"
B
\n\x12
WriteLevel0DataReq
\x12
,
\n\x06
record
\x18\x01
\x01
(
\x0b\x32\x1c
.dfs.ifs.level0.Level0Record
\"
r
\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\x1c
.dfs.ifs.level0.Level0Record
\"
C
\n\x12
UpdateQc0StatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\x12\x0e\n\x06
status
\x18\x03
\x01
(
\x05\"
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
\"
D
\n\x13
UpdateProcStatusReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x11\n\t
level0_id
\x18\x02
\x01
(
\t\x12\x0e\n\x06
status
\x18\x03
\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
\xbd\x03\n\t
Level0Srv
\x12
O
\n\x04\x46
ind
\x12
!.dfs.ifs.level0.FindLevel0DataReq
\x1a\"
.dfs.ifs.level0.FindLevel0DataResp
\"\x00\x12
L
\n\x03
Get
\x12
.dfs.ifs.level0.GetLevel0DataReq
\x1a
!.dfs.ifs.level0.GetLevel0DataResp
\"\x00\x12
R
\n\x05
Write
\x12\"
.dfs.ifs.level0.WriteLevel0DataReq
\x1a
#.dfs.ifs.level0.WriteLevel0DataResp
\"\x00\x12\\\n\x0f
UpdateQc0Status
\x12\"
.dfs.ifs.level0.UpdateQc0StatusReq
\x1a
#.dfs.ifs.level0.UpdateQc0StatusResp
\"\x00\x12
_
\n\x10
UpdateProcStatus
\x12
#.dfs.ifs.level0.UpdateProcStatusReq
\x1a
$.dfs.ifs.level0.UpdateProcStatusResp
\"\x00\x42
!Z
\x1f\x63
nlab.net/csst/proto/ifs/level0b
\x06
proto3'
)
,
,
dependencies
=
[
common_dot_error__pb2
.
DESCRIPTOR
,])
dependencies
=
[
common_dot_error__pb2
.
DESCRIPTOR
,])
...
@@ -71,71 +71,78 @@ _LEVEL0RECORD = _descriptor.Descriptor(
...
@@ -71,71 +71,78 @@ _LEVEL0RECORD = _descriptor.Descriptor(
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'ob
s_ti
me'
,
full_name
=
'dfs.ifs.level0.Level0Record.ob
s_ti
me'
,
index
=
5
,
name
=
'ob
ject_na
me'
,
full_name
=
'dfs.ifs.level0.Level0Record.ob
ject_na
me'
,
index
=
5
,
number
=
6
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
number
=
6
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'exp_time'
,
full_name
=
'dfs.ifs.level0.Level0Record.exp_time'
,
index
=
6
,
name
=
'obs_time'
,
full_name
=
'dfs.ifs.level0.Level0Record.obs_time'
,
index
=
6
,
number
=
7
,
type
=
2
,
cpp_type
=
6
,
label
=
1
,
number
=
7
,
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
=
'exp_time'
,
full_name
=
'dfs.ifs.level0.Level0Record.exp_time'
,
index
=
7
,
number
=
8
,
type
=
2
,
cpp_type
=
6
,
label
=
1
,
has_default_value
=
False
,
default_value
=
float
(
0
),
has_default_value
=
False
,
default_value
=
float
(
0
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'detector_status_id'
,
full_name
=
'dfs.ifs.level0.Level0Record.detector_status_id'
,
index
=
7
,
name
=
'detector_status_id'
,
full_name
=
'dfs.ifs.level0.Level0Record.detector_status_id'
,
index
=
8
,
number
=
8
,
type
=
3
,
cpp_type
=
2
,
label
=
1
,
number
=
9
,
type
=
3
,
cpp_type
=
2
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'filename'
,
full_name
=
'dfs.ifs.level0.Level0Record.filename'
,
index
=
8
,
name
=
'filename'
,
full_name
=
'dfs.ifs.level0.Level0Record.filename'
,
index
=
9
,
number
=
9
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
number
=
10
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'file_path'
,
full_name
=
'dfs.ifs.level0.Level0Record.file_path'
,
index
=
9
,
name
=
'file_path'
,
full_name
=
'dfs.ifs.level0.Level0Record.file_path'
,
index
=
10
,
number
=
1
0
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
number
=
1
1
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'qc0_status'
,
full_name
=
'dfs.ifs.level0.Level0Record.qc0_status'
,
index
=
1
0
,
name
=
'qc0_status'
,
full_name
=
'dfs.ifs.level0.Level0Record.qc0_status'
,
index
=
1
1
,
number
=
1
1
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
number
=
1
2
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'qc0_time'
,
full_name
=
'dfs.ifs.level0.Level0Record.qc0_time'
,
index
=
1
1
,
name
=
'qc0_time'
,
full_name
=
'dfs.ifs.level0.Level0Record.qc0_time'
,
index
=
1
2
,
number
=
1
2
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
number
=
1
3
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'prc_status'
,
full_name
=
'dfs.ifs.level0.Level0Record.prc_status'
,
index
=
1
2
,
name
=
'prc_status'
,
full_name
=
'dfs.ifs.level0.Level0Record.prc_status'
,
index
=
1
3
,
number
=
1
3
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
number
=
1
4
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'prc_time'
,
full_name
=
'dfs.ifs.level0.Level0Record.prc_time'
,
index
=
1
3
,
name
=
'prc_time'
,
full_name
=
'dfs.ifs.level0.Level0Record.prc_time'
,
index
=
1
4
,
number
=
1
4
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
number
=
1
5
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'create_time'
,
full_name
=
'dfs.ifs.level0.Level0Record.create_time'
,
index
=
1
4
,
name
=
'create_time'
,
full_name
=
'dfs.ifs.level0.Level0Record.create_time'
,
index
=
1
5
,
number
=
1
5
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
number
=
1
6
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
...
@@ -153,7 +160,7 @@ _LEVEL0RECORD = _descriptor.Descriptor(
...
@@ -153,7 +160,7 @@ _LEVEL0RECORD = _descriptor.Descriptor(
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
64
,
serialized_start
=
64
,
serialized_end
=
3
62
,
serialized_end
=
3
83
,
)
)
...
@@ -190,8 +197,8 @@ _FINDLEVEL0DATAREQ_OTHERCONDITIONSENTRY = _descriptor.Descriptor(
...
@@ -190,8 +197,8 @@ _FINDLEVEL0DATAREQ_OTHERCONDITIONSENTRY = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
6
43
,
serialized_start
=
6
85
,
serialized_end
=
697
,
serialized_end
=
739
,
)
)
_FINDLEVEL0DATAREQ
=
_descriptor
.
Descriptor
(
_FINDLEVEL0DATAREQ
=
_descriptor
.
Descriptor
(
...
@@ -223,50 +230,57 @@ _FINDLEVEL0DATAREQ = _descriptor.Descriptor(
...
@@ -223,50 +230,57 @@ _FINDLEVEL0DATAREQ = _descriptor.Descriptor(
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'
exp_time_start
'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.
exp_time_start
'
,
index
=
3
,
name
=
'
object_name
'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.
object_name
'
,
index
=
3
,
number
=
4
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
number
=
4
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'exp_time_
end
'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.exp_time_
end
'
,
index
=
4
,
name
=
'exp_time_
start
'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.exp_time_
start
'
,
index
=
4
,
number
=
5
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
number
=
5
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'
qc0_status
'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.
qc0_status
'
,
index
=
5
,
name
=
'
exp_time_end
'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.
exp_time_end
'
,
index
=
5
,
number
=
6
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
number
=
6
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
)
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'
prc
_status'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.
prc
_status'
,
index
=
6
,
name
=
'
qc0
_status'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.
qc0
_status'
,
index
=
6
,
number
=
7
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
number
=
7
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'file_name'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.file_name'
,
index
=
7
,
name
=
'prc_status'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.prc_status'
,
index
=
7
,
number
=
8
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
number
=
8
,
type
=
5
,
cpp_type
=
1
,
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
=
'file_name'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.file_name'
,
index
=
8
,
number
=
9
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
has_default_value
=
False
,
default_value
=
_b
(
""
).
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'limit'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.limit'
,
index
=
8
,
name
=
'limit'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.limit'
,
index
=
9
,
number
=
9
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
number
=
10
,
type
=
5
,
cpp_type
=
1
,
label
=
1
,
has_default_value
=
False
,
default_value
=
0
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'other_conditions'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.other_conditions'
,
index
=
9
,
name
=
'other_conditions'
,
full_name
=
'dfs.ifs.level0.FindLevel0DataReq.other_conditions'
,
index
=
10
,
number
=
1
0
,
type
=
11
,
cpp_type
=
10
,
label
=
3
,
number
=
1
1
,
type
=
11
,
cpp_type
=
10
,
label
=
3
,
has_default_value
=
False
,
default_value
=
[],
has_default_value
=
False
,
default_value
=
[],
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
...
@@ -283,8 +297,8 @@ _FINDLEVEL0DATAREQ = _descriptor.Descriptor(
...
@@ -283,8 +297,8 @@ _FINDLEVEL0DATAREQ = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
36
5
,
serialized_start
=
3
8
6
,
serialized_end
=
697
,
serialized_end
=
739
,
)
)
...
@@ -335,8 +349,8 @@ _FINDLEVEL0DATARESP = _descriptor.Descriptor(
...
@@ -335,8 +349,8 @@ _FINDLEVEL0DATARESP = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
7
00
,
serialized_start
=
7
42
,
serialized_end
=
8
34
,
serialized_end
=
8
76
,
)
)
...
@@ -373,8 +387,8 @@ _GETLEVEL0DATAREQ = _descriptor.Descriptor(
...
@@ -373,8 +387,8 @@ _GETLEVEL0DATAREQ = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
8
36
,
serialized_start
=
8
78
,
serialized_end
=
885
,
serialized_end
=
927
,
)
)
...
@@ -404,8 +418,8 @@ _GETLEVEL0DATARESP = _descriptor.Descriptor(
...
@@ -404,8 +418,8 @@ _GETLEVEL0DATARESP = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
887
,
serialized_start
=
929
,
serialized_end
=
9
52
,
serialized_end
=
9
94
,
)
)
...
@@ -435,8 +449,8 @@ _WRITELEVEL0DATAREQ = _descriptor.Descriptor(
...
@@ -435,8 +449,8 @@ _WRITELEVEL0DATAREQ = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
9
54
,
serialized_start
=
9
96
,
serialized_end
=
102
0
,
serialized_end
=
10
6
2
,
)
)
...
@@ -480,8 +494,8 @@ _WRITELEVEL0DATARESP = _descriptor.Descriptor(
...
@@ -480,8 +494,8 @@ _WRITELEVEL0DATARESP = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
10
22
,
serialized_start
=
10
64
,
serialized_end
=
11
36
,
serialized_end
=
11
78
,
)
)
...
@@ -525,8 +539,8 @@ _UPDATEQC0STATUSREQ = _descriptor.Descriptor(
...
@@ -525,8 +539,8 @@ _UPDATEQC0STATUSREQ = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
11
3
8
,
serialized_start
=
118
0
,
serialized_end
=
12
05
,
serialized_end
=
12
47
,
)
)
...
@@ -563,8 +577,8 @@ _UPDATEQC0STATUSRESP = _descriptor.Descriptor(
...
@@ -563,8 +577,8 @@ _UPDATEQC0STATUSRESP = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
12
07
,
serialized_start
=
12
49
,
serialized_end
=
1
275
,
serialized_end
=
1
317
,
)
)
...
@@ -608,8 +622,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
...
@@ -608,8 +622,8 @@ _UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
1
277
,
serialized_start
=
1
319
,
serialized_end
=
13
45
,
serialized_end
=
13
87
,
)
)
...
@@ -646,8 +660,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
...
@@ -646,8 +660,8 @@ _UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
13
47
,
serialized_start
=
13
89
,
serialized_end
=
14
16
,
serialized_end
=
14
58
,
)
)
_FINDLEVEL0DATAREQ_OTHERCONDITIONSENTRY
.
containing_type
=
_FINDLEVEL0DATAREQ
_FINDLEVEL0DATAREQ_OTHERCONDITIONSENTRY
.
containing_type
=
_FINDLEVEL0DATAREQ
...
@@ -768,8 +782,8 @@ _LEVEL0SRV = _descriptor.ServiceDescriptor(
...
@@ -768,8 +782,8 @@ _LEVEL0SRV = _descriptor.ServiceDescriptor(
file
=
DESCRIPTOR
,
file
=
DESCRIPTOR
,
index
=
0
,
index
=
0
,
serialized_options
=
None
,
serialized_options
=
None
,
serialized_start
=
141
9
,
serialized_start
=
14
6
1
,
serialized_end
=
1
864
,
serialized_end
=
1
906
,
methods
=
[
methods
=
[
_descriptor
.
MethodDescriptor
(
_descriptor
.
MethodDescriptor
(
name
=
'Find'
,
name
=
'Find'
,
...
...
csst_dfs_proto/msc/level2
catalog
/__init__.py
→
csst_dfs_proto/msc/level2/__init__.py
View file @
2c219ab9
File moved
csst_dfs_proto/msc/level2
catalog/level2catalog
_pb2.py
→
csst_dfs_proto/msc/level2
/level2
_pb2.py
View file @
2c219ab9
This diff is collapsed.
Click to expand it.
csst_dfs_proto/msc/level2/level2_pb2_grpc.py
0 → 100644
View file @
2c219ab9
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
.
import
level2_pb2
as
msc_dot_level2_dot_level2__pb2
class
Level2SrvStub
(
object
):
# missing associated documentation comment in .proto file
pass
def
__init__
(
self
,
channel
):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/dfs.msc.level2.Level2Srv/Find'
,
request_serializer
=
msc_dot_level2_dot_level2__pb2
.
FindLevel2Req
.
SerializeToString
,
response_deserializer
=
msc_dot_level2_dot_level2__pb2
.
FindLevel2Resp
.
FromString
,
)
self
.
FindCatalog
=
channel
.
unary_unary
(
'/dfs.msc.level2.Level2Srv/FindCatalog'
,
request_serializer
=
msc_dot_level2_dot_level2__pb2
.
FindLevel2CatalogReq
.
SerializeToString
,
response_deserializer
=
msc_dot_level2_dot_level2__pb2
.
FindLevel2CatalogResp
.
FromString
,
)
self
.
Get
=
channel
.
unary_unary
(
'/dfs.msc.level2.Level2Srv/Get'
,
request_serializer
=
msc_dot_level2_dot_level2__pb2
.
GetLevel2Req
.
SerializeToString
,
response_deserializer
=
msc_dot_level2_dot_level2__pb2
.
GetLevel2Resp
.
FromString
,
)
self
.
Write
=
channel
.
stream_unary
(
'/dfs.msc.level2.Level2Srv/Write'
,
request_serializer
=
msc_dot_level2_dot_level2__pb2
.
WriteLevel2Req
.
SerializeToString
,
response_deserializer
=
msc_dot_level2_dot_level2__pb2
.
WriteLevel2Resp
.
FromString
,
)
self
.
UpdateQc2Status
=
channel
.
unary_unary
(
'/dfs.msc.level2.Level2Srv/UpdateQc2Status'
,
request_serializer
=
msc_dot_level2_dot_level2__pb2
.
UpdateQc2StatusReq
.
SerializeToString
,
response_deserializer
=
msc_dot_level2_dot_level2__pb2
.
UpdateQc2StatusResp
.
FromString
,
)
self
.
UpdateProcStatus
=
channel
.
unary_unary
(
'/dfs.msc.level2.Level2Srv/UpdateProcStatus'
,
request_serializer
=
msc_dot_level2_dot_level2__pb2
.
UpdateProcStatusReq
.
SerializeToString
,
response_deserializer
=
msc_dot_level2_dot_level2__pb2
.
UpdateProcStatusResp
.
FromString
,
)
class
Level2SrvServicer
(
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
FindCatalog
(
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_iterator
,
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
UpdateQc2Status
(
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_Level2SrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
request_deserializer
=
msc_dot_level2_dot_level2__pb2
.
FindLevel2Req
.
FromString
,
response_serializer
=
msc_dot_level2_dot_level2__pb2
.
FindLevel2Resp
.
SerializeToString
,
),
'FindCatalog'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
FindCatalog
,
request_deserializer
=
msc_dot_level2_dot_level2__pb2
.
FindLevel2CatalogReq
.
FromString
,
response_serializer
=
msc_dot_level2_dot_level2__pb2
.
FindLevel2CatalogResp
.
SerializeToString
,
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
request_deserializer
=
msc_dot_level2_dot_level2__pb2
.
GetLevel2Req
.
FromString
,
response_serializer
=
msc_dot_level2_dot_level2__pb2
.
GetLevel2Resp
.
SerializeToString
,
),
'Write'
:
grpc
.
stream_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
msc_dot_level2_dot_level2__pb2
.
WriteLevel2Req
.
FromString
,
response_serializer
=
msc_dot_level2_dot_level2__pb2
.
WriteLevel2Resp
.
SerializeToString
,
),
'UpdateQc2Status'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateQc2Status
,
request_deserializer
=
msc_dot_level2_dot_level2__pb2
.
UpdateQc2StatusReq
.
FromString
,
response_serializer
=
msc_dot_level2_dot_level2__pb2
.
UpdateQc2StatusResp
.
SerializeToString
,
),
'UpdateProcStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateProcStatus
,
request_deserializer
=
msc_dot_level2_dot_level2__pb2
.
UpdateProcStatusReq
.
FromString
,
response_serializer
=
msc_dot_level2_dot_level2__pb2
.
UpdateProcStatusResp
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'dfs.msc.level2.Level2Srv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
csst_dfs_proto/msc/level2catalog/level2catalog_pb2_grpc.py
deleted
100644 → 0
View file @
59d2e932
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
.
import
level2catalog_pb2
as
msc_dot_level2catalog_dot_level2catalog__pb2
class
Level2CatalogSrvStub
(
object
):
# missing associated documentation comment in .proto file
pass
def
__init__
(
self
,
channel
):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/dfs.msc.level2catalog.Level2CatalogSrv/Find'
,
request_serializer
=
msc_dot_level2catalog_dot_level2catalog__pb2
.
FindLevel2CatalogReq
.
SerializeToString
,
response_deserializer
=
msc_dot_level2catalog_dot_level2catalog__pb2
.
FindLevel2CatalogResp
.
FromString
,
)
self
.
Write
=
channel
.
unary_unary
(
'/dfs.msc.level2catalog.Level2CatalogSrv/Write'
,
request_serializer
=
msc_dot_level2catalog_dot_level2catalog__pb2
.
WriteLevel2CatalogReq
.
SerializeToString
,
response_deserializer
=
msc_dot_level2catalog_dot_level2catalog__pb2
.
WriteLevel2CatalogResp
.
FromString
,
)
class
Level2CatalogSrvServicer
(
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
add_Level2CatalogSrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
request_deserializer
=
msc_dot_level2catalog_dot_level2catalog__pb2
.
FindLevel2CatalogReq
.
FromString
,
response_serializer
=
msc_dot_level2catalog_dot_level2catalog__pb2
.
FindLevel2CatalogResp
.
SerializeToString
,
),
'Write'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
msc_dot_level2catalog_dot_level2catalog__pb2
.
WriteLevel2CatalogReq
.
FromString
,
response_serializer
=
msc_dot_level2catalog_dot_level2catalog__pb2
.
WriteLevel2CatalogResp
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'dfs.msc.level2catalog.Level2CatalogSrv'
,
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