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
a24225e7
Commit
a24225e7
authored
Mar 24, 2021
by
Wei Shoulin
Browse files
gaia2 full
parent
c0d840c8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
csst_dfs_proto/common/ephem/ephem_pb2.py
View file @
a24225e7
This diff is collapsed.
Click to expand it.
csst_dfs_proto/common/ephem/ephem_pb2_grpc.py
View file @
a24225e7
...
...
@@ -4,7 +4,7 @@ import grpc
from
.
import
ephem_pb2
as
common_dot_ephem_dot_ephem__pb2
class
Ephem
Op
Stub
(
object
):
class
Ephem
SearchSrv
Stub
(
object
):
# missing associated documentation comment in .proto file
pass
...
...
@@ -14,18 +14,18 @@ class EphemOpStub(object):
Args:
channel: A grpc.Channel.
"""
self
.
Search
Ephem
=
channel
.
unary_unary
(
'/dfs.ephem.Ephem
Op/
Search
Ephem
'
,
request_serializer
=
common_dot_ephem_dot_ephem__pb2
.
Search
Ephem
Request
.
SerializeToString
,
response_deserializer
=
common_dot_ephem_dot_ephem__pb2
.
Search
Ephem
Response
.
FromString
,
self
.
Gaia2
Search
=
channel
.
unary_unary
(
'/dfs.ephem.Ephem
SearchSrv/Gaia2
Search'
,
request_serializer
=
common_dot_ephem_dot_ephem__pb2
.
Gaia2
SearchRequest
.
SerializeToString
,
response_deserializer
=
common_dot_ephem_dot_ephem__pb2
.
Gaia2
SearchResponse
.
FromString
,
)
class
Ephem
Op
Servicer
(
object
):
class
Ephem
SearchSrv
Servicer
(
object
):
# missing associated documentation comment in .proto file
pass
def
Search
Ephem
(
self
,
request
,
context
):
def
Gaia2
Search
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
...
...
@@ -33,14 +33,14 @@ class EphemOpServicer(object):
raise
NotImplementedError
(
'Method not implemented!'
)
def
add_Ephem
Op
Servicer_to_server
(
servicer
,
server
):
def
add_Ephem
SearchSrv
Servicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Search
Ephem
'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Search
Ephem
,
request_deserializer
=
common_dot_ephem_dot_ephem__pb2
.
Search
Ephem
Request
.
FromString
,
response_serializer
=
common_dot_ephem_dot_ephem__pb2
.
Search
Ephem
Response
.
SerializeToString
,
'
Gaia2
Search'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Gaia2
Search
,
request_deserializer
=
common_dot_ephem_dot_ephem__pb2
.
Gaia2
SearchRequest
.
FromString
,
response_serializer
=
common_dot_ephem_dot_ephem__pb2
.
Gaia2
SearchResponse
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'dfs.ephem.Ephem
Op
'
,
rpc_method_handlers
)
'dfs.ephem.Ephem
SearchSrv
'
,
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