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
ed68193e
Commit
ed68193e
authored
Jun 27, 2023
by
Wei Shoulin
Browse files
add other data
parent
050dc0c8
Changes
3
Show whitespace changes
Inline
Side-by-side
csst_dfs_proto/facility/otherdata/__init__.py
0 → 100644
View file @
ed68193e
csst_dfs_proto/facility/otherdata/otherdata_pb2.py
0 → 100644
View file @
ed68193e
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: facility/otherdata/otherdata.proto
"""Generated protocol buffer code."""
from
google.protobuf.internal
import
builder
as
_builder
from
google.protobuf
import
descriptor
as
_descriptor
from
google.protobuf
import
descriptor_pool
as
_descriptor_pool
from
google.protobuf
import
symbol_database
as
_symbol_database
# @@protoc_insertion_point(imports)
_sym_db
=
_symbol_database
.
Default
()
from
...common
import
error_pb2
as
common_dot_error__pb2
DESCRIPTOR
=
_descriptor_pool
.
Default
().
AddSerializedFile
(
b
'
\n\"
facility/otherdata/otherdata.proto
\x12\x16\x64\x66
s.facility.otherdata
\x1a\x12\x63
ommon/error.proto
\"\xb7\x01\n\x0f
OtherDataRecord
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\x12\x0e\n\x06
obs_id
\x18\x02
\x01
(
\t\x12\x13\n\x0b\x64\x65
tector_no
\x18\x03
\x01
(
\t\x12\x11\n\t
module_id
\x18\x04
\x01
(
\t\x12\x11\n\t
file_type
\x18\x05
\x01
(
\t\x12\x10\n\x08\x66
ilename
\x18\x06
\x01
(
\t\x12\x11\n\t
file_path
\x18\x07
\x01
(
\t\x12\x13\n\x0b\x63
reate_time
\x18\x08
\x01
(
\t\x12\x13\n\x0b
pipeline_id
\x18\t
\x01
(
\t\"\xc7\x01\n\x10\x46
indOtherDataReq
\x12\x0e\n\x06
obs_id
\x18\x01
\x01
(
\t\x12\x11\n\t
module_id
\x18\x02
\x01
(
\t\x12\x13\n\x0b\x64\x65
tector_no
\x18\x03
\x01
(
\t\x12\x11\n\t
file_type
\x18\x04
\x01
(
\t\x12\x10\n\x08\x66
ilename
\x18\x05
\x01
(
\t\x12\x19\n\x11\x63
reate_time_start
\x18\x06
\x01
(
\t\x12\x17\n\x0f\x63
reate_time_end
\x18\x07
\x01
(
\t\x12\x13\n\x0b
pipeline_id
\x18\x08
\x01
(
\t\x12\r\n\x05
limit
\x18\t
\x01
(
\x05\"\x90\x01\n\x11\x46
indOtherDataResp
\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\x38\n\x07
records
\x18\x04
\x03
(
\x0b\x32\'
.dfs.facility.otherdata.OtherDataRecord
\"\x1d\n\x0f
GetOtherDataReq
\x12\n\n\x02
id
\x18\x01
\x01
(
\x03\"
K
\n\x10
GetOtherDataResp
\x12\x37\n\x06
record
\x18\x01
\x01
(
\x0b\x32\'
.dfs.facility.otherdata.OtherDataRecord
\"
Z
\n\x11
WriteOtherDataReq
\x12\x37\n\x06
record
\x18\x01
\x01
(
\x0b\x32\'
.dfs.facility.otherdata.OtherDataRecord
\x12\x0c\n\x04\x64\x61
ta
\x18\x02
\x01
(
\x0c\"
|
\n\x12
WriteOtherDataResp
\x12\x0f\n\x07
success
\x18\x01
\x01
(
\x08\x12\x1c\n\x05\x65
rror
\x18\x02
\x01
(
\x0b\x32\r
.common.Error
\x12\x37\n\x06
record
\x18\x03
\x01
(
\x0b\x32\'
.dfs.facility.otherdata.OtherDataRecord2
\xad\x02\n\x0c
OtherDataSrv
\x12
]
\n\x04\x46
ind
\x12
(.dfs.facility.otherdata.FindOtherDataReq
\x1a
).dfs.facility.otherdata.FindOtherDataResp
\"\x00\x12
Z
\n\x03
Get
\x12\'
.dfs.facility.otherdata.GetOtherDataReq
\x1a
(.dfs.facility.otherdata.GetOtherDataResp
\"\x00\x12\x62\n\x05
Write
\x12
).dfs.facility.otherdata.WriteOtherDataReq
\x1a
*.dfs.facility.otherdata.WriteOtherDataResp
\"\x00
(
\x01\x42
)Z
\'
cnlab.net/csst/proto/facility/otherdatab
\x06
proto3'
)
_builder
.
BuildMessageAndEnumDescriptors
(
DESCRIPTOR
,
globals
())
_builder
.
BuildTopDescriptorsAndMessages
(
DESCRIPTOR
,
'facility.otherdata.otherdata_pb2'
,
globals
())
if
_descriptor
.
_USE_C_DESCRIPTORS
==
False
:
DESCRIPTOR
.
_options
=
None
DESCRIPTOR
.
_serialized_options
=
b
'Z
\'
cnlab.net/csst/proto/facility/otherdata'
_OTHERDATARECORD
.
_serialized_start
=
83
_OTHERDATARECORD
.
_serialized_end
=
266
_FINDOTHERDATAREQ
.
_serialized_start
=
269
_FINDOTHERDATAREQ
.
_serialized_end
=
468
_FINDOTHERDATARESP
.
_serialized_start
=
471
_FINDOTHERDATARESP
.
_serialized_end
=
615
_GETOTHERDATAREQ
.
_serialized_start
=
617
_GETOTHERDATAREQ
.
_serialized_end
=
646
_GETOTHERDATARESP
.
_serialized_start
=
648
_GETOTHERDATARESP
.
_serialized_end
=
723
_WRITEOTHERDATAREQ
.
_serialized_start
=
725
_WRITEOTHERDATAREQ
.
_serialized_end
=
815
_WRITEOTHERDATARESP
.
_serialized_start
=
817
_WRITEOTHERDATARESP
.
_serialized_end
=
941
_OTHERDATASRV
.
_serialized_start
=
944
_OTHERDATASRV
.
_serialized_end
=
1245
# @@protoc_insertion_point(module_scope)
csst_dfs_proto/facility/otherdata/otherdata_pb2_grpc.py
0 → 100644
View file @
ed68193e
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import
grpc
from
.
import
otherdata_pb2
as
facility_dot_otherdata_dot_otherdata__pb2
class
OtherDataSrvStub
(
object
):
"""Missing associated documentation comment in .proto file."""
def
__init__
(
self
,
channel
):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/dfs.facility.otherdata.OtherDataSrv/Find'
,
request_serializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
FindOtherDataReq
.
SerializeToString
,
response_deserializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
FindOtherDataResp
.
FromString
,
)
self
.
Get
=
channel
.
unary_unary
(
'/dfs.facility.otherdata.OtherDataSrv/Get'
,
request_serializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
GetOtherDataReq
.
SerializeToString
,
response_deserializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
GetOtherDataResp
.
FromString
,
)
self
.
Write
=
channel
.
stream_unary
(
'/dfs.facility.otherdata.OtherDataSrv/Write'
,
request_serializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
WriteOtherDataReq
.
SerializeToString
,
response_deserializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
WriteOtherDataResp
.
FromString
,
)
class
OtherDataSrvServicer
(
object
):
"""Missing associated documentation comment in .proto file."""
def
Find
(
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
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Write
(
self
,
request_iterator
,
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
add_OtherDataSrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
request_deserializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
FindOtherDataReq
.
FromString
,
response_serializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
FindOtherDataResp
.
SerializeToString
,
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
request_deserializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
GetOtherDataReq
.
FromString
,
response_serializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
GetOtherDataResp
.
SerializeToString
,
),
'Write'
:
grpc
.
stream_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
WriteOtherDataReq
.
FromString
,
response_serializer
=
facility_dot_otherdata_dot_otherdata__pb2
.
WriteOtherDataResp
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'dfs.facility.otherdata.OtherDataSrv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
# This class is part of an EXPERIMENTAL API.
class
OtherDataSrv
(
object
):
"""Missing associated documentation comment in .proto file."""
@
staticmethod
def
Find
(
request
,
target
,
options
=
(),
channel_credentials
=
None
,
call_credentials
=
None
,
insecure
=
False
,
compression
=
None
,
wait_for_ready
=
None
,
timeout
=
None
,
metadata
=
None
):
return
grpc
.
experimental
.
unary_unary
(
request
,
target
,
'/dfs.facility.otherdata.OtherDataSrv/Find'
,
facility_dot_otherdata_dot_otherdata__pb2
.
FindOtherDataReq
.
SerializeToString
,
facility_dot_otherdata_dot_otherdata__pb2
.
FindOtherDataResp
.
FromString
,
options
,
channel_credentials
,
insecure
,
call_credentials
,
compression
,
wait_for_ready
,
timeout
,
metadata
)
@
staticmethod
def
Get
(
request
,
target
,
options
=
(),
channel_credentials
=
None
,
call_credentials
=
None
,
insecure
=
False
,
compression
=
None
,
wait_for_ready
=
None
,
timeout
=
None
,
metadata
=
None
):
return
grpc
.
experimental
.
unary_unary
(
request
,
target
,
'/dfs.facility.otherdata.OtherDataSrv/Get'
,
facility_dot_otherdata_dot_otherdata__pb2
.
GetOtherDataReq
.
SerializeToString
,
facility_dot_otherdata_dot_otherdata__pb2
.
GetOtherDataResp
.
FromString
,
options
,
channel_credentials
,
insecure
,
call_credentials
,
compression
,
wait_for_ready
,
timeout
,
metadata
)
@
staticmethod
def
Write
(
request_iterator
,
target
,
options
=
(),
channel_credentials
=
None
,
call_credentials
=
None
,
insecure
=
False
,
compression
=
None
,
wait_for_ready
=
None
,
timeout
=
None
,
metadata
=
None
):
return
grpc
.
experimental
.
stream_unary
(
request_iterator
,
target
,
'/dfs.facility.otherdata.OtherDataSrv/Write'
,
facility_dot_otherdata_dot_otherdata__pb2
.
WriteOtherDataReq
.
SerializeToString
,
facility_dot_otherdata_dot_otherdata__pb2
.
WriteOtherDataResp
.
FromString
,
options
,
channel_credentials
,
insecure
,
call_credentials
,
compression
,
wait_for_ready
,
timeout
,
metadata
)
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