Commit 80bf69db authored by Wei Shoulin's avatar Wei Shoulin
Browse files

initial commit

parents
# Python temp files
**/__pycache__/
**/*.py~
**/*.pyc
# Python virtualenv folder
**/venv/
# IDE Project files
**/.idea/
**/.vscode/
**/*.swp
# MacOS folder attributes files
**/*.DS_Store
# Files created during testing
/_build/
test_reports.xml
**/.cache
**/.pytest_cache/
# Compiled python modules.
**/.pyc
# Setuptools distribution folder.
**/build/
**/dist/
# Code coverage
**/.coverage
# log
*.log
# Python egg metadata, regenerated from source files by setuptools.
**/*.egg-info
**/*.rdb
**/.eggs
**/_version.py
**/*.proto
# CSST DFS Base Proto library
## Introduction
This package provides proto file, code genneration....
## Installation
This library can be installed with the following command:
```bash
python setup.py install
```
# 安装 python 下的 protoc 编译器
pip install grpcio-tools
# 编译 proto 文件
python -m grpc_tools.protoc --python_out=. --grpc_python_out=. -I. helloworld.proto
python -m grpc_tools.protoc: python 下的 protoc 编译器通过 python 模块(module) 实现
--python_out=. : 编译生成处理 protobuf 相关的代码的路径, 这里生成到当前目录
--grpc_python_out=. : 编译生成处理 grpc 相关的代码的路径, 这里生成到当前目录
-I. helloworld.proto : proto 文件的路径, 这里的 proto 文件在当前目录
__version_info__ = (1, 0, 0)
__version__ = '.'.join(map(str, __version_info__))
\ No newline at end of file
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: auth/auth.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
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.FileDescriptor(
name='auth/auth.proto',
package='dfs.auth',
syntax='proto3',
serialized_options=None,
serialized_pb=_b('\n\x0f\x61uth/auth.proto\x12\x08\x64\x66s.auth\x1a\x12\x63ommon/error.proto\":\n\x07Request\x12\x0e\n\x06userId\x18\x01 \x01(\x03\x12\x10\n\x08userName\x18\x02 \x01(\t\x12\r\n\x05token\x18\x03 \x01(\t\"H\n\x08Response\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12\r\n\x05token\x18\x03 \x01(\t2\xc5\x01\n\x07\x41uthSrv\x12:\n\x0fMakeAccessToken\x12\x11.dfs.auth.Request\x1a\x12.dfs.auth.Response\"\x00\x12=\n\x12\x44\x65lUserAccessToken\x12\x11.dfs.auth.Request\x1a\x12.dfs.auth.Response\"\x00\x12?\n\x14GetCachedAccessToken\x12\x11.dfs.auth.Request\x1a\x12.dfs.auth.Response\"\x00\x62\x06proto3')
,
dependencies=[common_dot_error__pb2.DESCRIPTOR,])
_REQUEST = _descriptor.Descriptor(
name='Request',
full_name='dfs.auth.Request',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='userId', full_name='dfs.auth.Request.userId', index=0,
number=1, type=3, cpp_type=2, 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='userName', full_name='dfs.auth.Request.userName', index=1,
number=2, 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='token', full_name='dfs.auth.Request.token', index=2,
number=3, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=49,
serialized_end=107,
)
_RESPONSE = _descriptor.Descriptor(
name='Response',
full_name='dfs.auth.Response',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='success', full_name='dfs.auth.Response.success', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error', full_name='dfs.auth.Response.error', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='token', full_name='dfs.auth.Response.token', index=2,
number=3, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=109,
serialized_end=181,
)
_RESPONSE.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
DESCRIPTOR.message_types_by_name['Request'] = _REQUEST
DESCRIPTOR.message_types_by_name['Response'] = _RESPONSE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Request = _reflection.GeneratedProtocolMessageType('Request', (_message.Message,), {
'DESCRIPTOR' : _REQUEST,
'__module__' : 'auth.auth_pb2'
# @@protoc_insertion_point(class_scope:dfs.auth.Request)
})
_sym_db.RegisterMessage(Request)
Response = _reflection.GeneratedProtocolMessageType('Response', (_message.Message,), {
'DESCRIPTOR' : _RESPONSE,
'__module__' : 'auth.auth_pb2'
# @@protoc_insertion_point(class_scope:dfs.auth.Response)
})
_sym_db.RegisterMessage(Response)
_AUTHSRV = _descriptor.ServiceDescriptor(
name='AuthSrv',
full_name='dfs.auth.AuthSrv',
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=184,
serialized_end=381,
methods=[
_descriptor.MethodDescriptor(
name='MakeAccessToken',
full_name='dfs.auth.AuthSrv.MakeAccessToken',
index=0,
containing_service=None,
input_type=_REQUEST,
output_type=_RESPONSE,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='DelUserAccessToken',
full_name='dfs.auth.AuthSrv.DelUserAccessToken',
index=1,
containing_service=None,
input_type=_REQUEST,
output_type=_RESPONSE,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='GetCachedAccessToken',
full_name='dfs.auth.AuthSrv.GetCachedAccessToken',
index=2,
containing_service=None,
input_type=_REQUEST,
output_type=_RESPONSE,
serialized_options=None,
),
])
_sym_db.RegisterServiceDescriptor(_AUTHSRV)
DESCRIPTOR.services_by_name['AuthSrv'] = _AUTHSRV
# @@protoc_insertion_point(module_scope)
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from . import auth_pb2 as auth_dot_auth__pb2
class AuthSrvStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.MakeAccessToken = channel.unary_unary(
'/dfs.auth.AuthSrv/MakeAccessToken',
request_serializer=auth_dot_auth__pb2.Request.SerializeToString,
response_deserializer=auth_dot_auth__pb2.Response.FromString,
)
self.DelUserAccessToken = channel.unary_unary(
'/dfs.auth.AuthSrv/DelUserAccessToken',
request_serializer=auth_dot_auth__pb2.Request.SerializeToString,
response_deserializer=auth_dot_auth__pb2.Response.FromString,
)
self.GetCachedAccessToken = channel.unary_unary(
'/dfs.auth.AuthSrv/GetCachedAccessToken',
request_serializer=auth_dot_auth__pb2.Request.SerializeToString,
response_deserializer=auth_dot_auth__pb2.Response.FromString,
)
class AuthSrvServicer(object):
# missing associated documentation comment in .proto file
pass
def MakeAccessToken(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 DelUserAccessToken(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 GetCachedAccessToken(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_AuthSrvServicer_to_server(servicer, server):
rpc_method_handlers = {
'MakeAccessToken': grpc.unary_unary_rpc_method_handler(
servicer.MakeAccessToken,
request_deserializer=auth_dot_auth__pb2.Request.FromString,
response_serializer=auth_dot_auth__pb2.Response.SerializeToString,
),
'DelUserAccessToken': grpc.unary_unary_rpc_method_handler(
servicer.DelUserAccessToken,
request_deserializer=auth_dot_auth__pb2.Request.FromString,
response_serializer=auth_dot_auth__pb2.Response.SerializeToString,
),
'GetCachedAccessToken': grpc.unary_unary_rpc_method_handler(
servicer.GetCachedAccessToken,
request_deserializer=auth_dot_auth__pb2.Request.FromString,
response_serializer=auth_dot_auth__pb2.Response.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'dfs.auth.AuthSrv', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: common/ephem/ephem.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from .. import error_pb2 as common_dot_error__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='common/ephem/ephem.proto',
package='dfs.ephem',
syntax='proto3',
serialized_options=_b('Z!cnlab.net/csst/proto/common/ephem'),
serialized_pb=_b('\n\x18\x63ommon/ephem/ephem.proto\x12\tdfs.ephem\x1a\x12\x63ommon/error.proto\":\n\x05\x45phem\x12\n\n\x02id\x18\x01 \x01(\x03\x12\n\n\x02ra\x18\x02 \x01(\x01\x12\x0b\n\x03\x64\x65\x63\x18\x03 \x01(\x01\x12\x0c\n\x04\x66lux\x18\x04 \x01(\x01\"L\n\x12SearchEphemRequest\x12\n\n\x02ra\x18\x01 \x01(\x01\x12\x0b\n\x03\x64\x65\x63\x18\x02 \x01(\x01\x12\x0e\n\x06radius\x18\x03 \x01(\x01\x12\r\n\x05limit\x18\x04 \x01(\x03\"y\n\x13SearchEphemResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x12\n\ntotalCount\x18\x02 \x01(\x05\x12\x1c\n\x05\x65rror\x18\x03 \x01(\x0b\x32\r.common.Error\x12\x1f\n\x05\x65phem\x18\x04 \x03(\x0b\x32\x10.dfs.ephem.Ephem2Y\n\x07\x45phemOp\x12N\n\x0bSearchEphem\x12\x1d.dfs.ephem.SearchEphemRequest\x1a\x1e.dfs.ephem.SearchEphemResponse\"\x00\x42#Z!cnlab.net/csst/proto/common/ephemb\x06proto3')
,
dependencies=[common_dot_error__pb2.DESCRIPTOR,])
_EPHEM = _descriptor.Descriptor(
name='Ephem',
full_name='dfs.ephem.Ephem',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='dfs.ephem.Ephem.id', index=0,
number=1, type=3, cpp_type=2, 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='ra', full_name='dfs.ephem.Ephem.ra', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dec', full_name='dfs.ephem.Ephem.dec', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='flux', full_name='dfs.ephem.Ephem.flux', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=59,
serialized_end=117,
)
_SEARCHEPHEMREQUEST = _descriptor.Descriptor(
name='SearchEphemRequest',
full_name='dfs.ephem.SearchEphemRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ra', full_name='dfs.ephem.SearchEphemRequest.ra', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dec', full_name='dfs.ephem.SearchEphemRequest.dec', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='radius', full_name='dfs.ephem.SearchEphemRequest.radius', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='limit', full_name='dfs.ephem.SearchEphemRequest.limit', index=3,
number=4, type=3, cpp_type=2, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=119,
serialized_end=195,
)
_SEARCHEPHEMRESPONSE = _descriptor.Descriptor(
name='SearchEphemResponse',
full_name='dfs.ephem.SearchEphemResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='success', full_name='dfs.ephem.SearchEphemResponse.success', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='totalCount', full_name='dfs.ephem.SearchEphemResponse.totalCount', index=1,
number=2, 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='error', full_name='dfs.ephem.SearchEphemResponse.error', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ephem', full_name='dfs.ephem.SearchEphemResponse.ephem', index=3,
number=4, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=197,
serialized_end=318,
)
_SEARCHEPHEMRESPONSE.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
_SEARCHEPHEMRESPONSE.fields_by_name['ephem'].message_type = _EPHEM
DESCRIPTOR.message_types_by_name['Ephem'] = _EPHEM
DESCRIPTOR.message_types_by_name['SearchEphemRequest'] = _SEARCHEPHEMREQUEST
DESCRIPTOR.message_types_by_name['SearchEphemResponse'] = _SEARCHEPHEMRESPONSE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Ephem = _reflection.GeneratedProtocolMessageType('Ephem', (_message.Message,), {
'DESCRIPTOR' : _EPHEM,
'__module__' : 'common.ephem.ephem_pb2'
# @@protoc_insertion_point(class_scope:dfs.ephem.Ephem)
})
_sym_db.RegisterMessage(Ephem)
SearchEphemRequest = _reflection.GeneratedProtocolMessageType('SearchEphemRequest', (_message.Message,), {
'DESCRIPTOR' : _SEARCHEPHEMREQUEST,
'__module__' : 'common.ephem.ephem_pb2'
# @@protoc_insertion_point(class_scope:dfs.ephem.SearchEphemRequest)
})
_sym_db.RegisterMessage(SearchEphemRequest)
SearchEphemResponse = _reflection.GeneratedProtocolMessageType('SearchEphemResponse', (_message.Message,), {
'DESCRIPTOR' : _SEARCHEPHEMRESPONSE,
'__module__' : 'common.ephem.ephem_pb2'
# @@protoc_insertion_point(class_scope:dfs.ephem.SearchEphemResponse)
})
_sym_db.RegisterMessage(SearchEphemResponse)
DESCRIPTOR._options = None
_EPHEMOP = _descriptor.ServiceDescriptor(
name='EphemOp',
full_name='dfs.ephem.EphemOp',
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=320,
serialized_end=409,
methods=[
_descriptor.MethodDescriptor(
name='SearchEphem',
full_name='dfs.ephem.EphemOp.SearchEphem',
index=0,
containing_service=None,
input_type=_SEARCHEPHEMREQUEST,
output_type=_SEARCHEPHEMRESPONSE,
serialized_options=None,
),
])
_sym_db.RegisterServiceDescriptor(_EPHEMOP)
DESCRIPTOR.services_by_name['EphemOp'] = _EPHEMOP
# @@protoc_insertion_point(module_scope)
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from . import ephem_pb2 as common_dot_ephem_dot_ephem__pb2
class EphemOpStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.SearchEphem = channel.unary_unary(
'/dfs.ephem.EphemOp/SearchEphem',
request_serializer=common_dot_ephem_dot_ephem__pb2.SearchEphemRequest.SerializeToString,
response_deserializer=common_dot_ephem_dot_ephem__pb2.SearchEphemResponse.FromString,
)
class EphemOpServicer(object):
# missing associated documentation comment in .proto file
pass
def SearchEphem(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_EphemOpServicer_to_server(servicer, server):
rpc_method_handlers = {
'SearchEphem': grpc.unary_unary_rpc_method_handler(
servicer.SearchEphem,
request_deserializer=common_dot_ephem_dot_ephem__pb2.SearchEphemRequest.FromString,
response_serializer=common_dot_ephem_dot_ephem__pb2.SearchEphemResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'dfs.ephem.EphemOp', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: common/error.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='common/error.proto',
package='common',
syntax='proto3',
serialized_options=_b('Z\033cnlab.net/csst/proto/common'),
serialized_pb=_b('\n\x12\x63ommon/error.proto\x12\x06\x63ommon\"%\n\x05\x45rror\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\tB\x1dZ\x1b\x63nlab.net/csst/proto/commonb\x06proto3')
)
_ERROR = _descriptor.Descriptor(
name='Error',
full_name='common.Error',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='code', full_name='common.Error.code', index=0,
number=1, 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='detail', full_name='common.Error.detail', index=1,
number=2, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=30,
serialized_end=67,
)
DESCRIPTOR.message_types_by_name['Error'] = _ERROR
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), {
'DESCRIPTOR' : _ERROR,
'__module__' : 'common.error_pb2'
# @@protoc_insertion_point(class_scope:common.Error)
})
_sym_db.RegisterMessage(Error)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: common/fits_process/fits_process.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='common/fits_process/fits_process.proto',
package='dfs.fits_process',
syntax='proto3',
serialized_options=_b('Z(cnlab.net/csst/proto/common/fits_process'),
serialized_pb=_b('\n&common/fits_process/fits_process.proto\x12\x10\x64\x66s.fits_process\"0\n\rGetHeadersReq\x12\x11\n\tfile_path\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\r\"}\n\x0eGetHeadersResp\x12<\n\x06values\x18\x01 \x03(\x0b\x32,.dfs.fits_process.GetHeadersResp.ValuesEntry\x1a-\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\x63\n\x0e\x46itsProcessSrv\x12Q\n\nGetHeaders\x12\x1f.dfs.fits_process.GetHeadersReq\x1a .dfs.fits_process.GetHeadersResp\"\x00\x42*Z(cnlab.net/csst/proto/common/fits_processb\x06proto3')
)
_GETHEADERSREQ = _descriptor.Descriptor(
name='GetHeadersReq',
full_name='dfs.fits_process.GetHeadersReq',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='file_path', full_name='dfs.fits_process.GetHeadersReq.file_path', index=0,
number=1, 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='type', full_name='dfs.fits_process.GetHeadersReq.type', index=1,
number=2, type=13, cpp_type=3, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=60,
serialized_end=108,
)
_GETHEADERSRESP_VALUESENTRY = _descriptor.Descriptor(
name='ValuesEntry',
full_name='dfs.fits_process.GetHeadersResp.ValuesEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='dfs.fits_process.GetHeadersResp.ValuesEntry.key', index=0,
number=1, 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='value', full_name='dfs.fits_process.GetHeadersResp.ValuesEntry.value', index=1,
number=2, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=190,
serialized_end=235,
)
_GETHEADERSRESP = _descriptor.Descriptor(
name='GetHeadersResp',
full_name='dfs.fits_process.GetHeadersResp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='values', full_name='dfs.fits_process.GetHeadersResp.values', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_GETHEADERSRESP_VALUESENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=110,
serialized_end=235,
)
_GETHEADERSRESP_VALUESENTRY.containing_type = _GETHEADERSRESP
_GETHEADERSRESP.fields_by_name['values'].message_type = _GETHEADERSRESP_VALUESENTRY
DESCRIPTOR.message_types_by_name['GetHeadersReq'] = _GETHEADERSREQ
DESCRIPTOR.message_types_by_name['GetHeadersResp'] = _GETHEADERSRESP
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
GetHeadersReq = _reflection.GeneratedProtocolMessageType('GetHeadersReq', (_message.Message,), {
'DESCRIPTOR' : _GETHEADERSREQ,
'__module__' : 'common.fits_process.fits_process_pb2'
# @@protoc_insertion_point(class_scope:dfs.fits_process.GetHeadersReq)
})
_sym_db.RegisterMessage(GetHeadersReq)
GetHeadersResp = _reflection.GeneratedProtocolMessageType('GetHeadersResp', (_message.Message,), {
'ValuesEntry' : _reflection.GeneratedProtocolMessageType('ValuesEntry', (_message.Message,), {
'DESCRIPTOR' : _GETHEADERSRESP_VALUESENTRY,
'__module__' : 'common.fits_process.fits_process_pb2'
# @@protoc_insertion_point(class_scope:dfs.fits_process.GetHeadersResp.ValuesEntry)
})
,
'DESCRIPTOR' : _GETHEADERSRESP,
'__module__' : 'common.fits_process.fits_process_pb2'
# @@protoc_insertion_point(class_scope:dfs.fits_process.GetHeadersResp)
})
_sym_db.RegisterMessage(GetHeadersResp)
_sym_db.RegisterMessage(GetHeadersResp.ValuesEntry)
DESCRIPTOR._options = None
_GETHEADERSRESP_VALUESENTRY._options = None
_FITSPROCESSSRV = _descriptor.ServiceDescriptor(
name='FitsProcessSrv',
full_name='dfs.fits_process.FitsProcessSrv',
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=237,
serialized_end=336,
methods=[
_descriptor.MethodDescriptor(
name='GetHeaders',
full_name='dfs.fits_process.FitsProcessSrv.GetHeaders',
index=0,
containing_service=None,
input_type=_GETHEADERSREQ,
output_type=_GETHEADERSRESP,
serialized_options=None,
),
])
_sym_db.RegisterServiceDescriptor(_FITSPROCESSSRV)
DESCRIPTOR.services_by_name['FitsProcessSrv'] = _FITSPROCESSSRV
# @@protoc_insertion_point(module_scope)
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from . import fits_process_pb2 as common_dot_fits__process_dot_fits__process__pb2
class FitsProcessSrvStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetHeaders = channel.unary_unary(
'/dfs.fits_process.FitsProcessSrv/GetHeaders',
request_serializer=common_dot_fits__process_dot_fits__process__pb2.GetHeadersReq.SerializeToString,
response_deserializer=common_dot_fits__process_dot_fits__process__pb2.GetHeadersResp.FromString,
)
class FitsProcessSrvServicer(object):
# missing associated documentation comment in .proto file
pass
def GetHeaders(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_FitsProcessSrvServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetHeaders': grpc.unary_unary_rpc_method_handler(
servicer.GetHeaders,
request_deserializer=common_dot_fits__process_dot_fits__process__pb2.GetHeadersReq.FromString,
response_serializer=common_dot_fits__process_dot_fits__process__pb2.GetHeadersResp.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'dfs.fits_process.FitsProcessSrv', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: ifs/fits/fits.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
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.FileDescriptor(
name='ifs/fits/fits.proto',
package='ifs.fits',
syntax='proto3',
serialized_options=_b('Z\035cnlab.net/csst/proto/ifs/fits'),
serialized_pb=_b('\n\x13ifs/fits/fits.proto\x12\x08ifs.fits\x1a\x12\x63ommon/error.proto\"\xd1\x01\n\x07RawFits\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tfile_name\x18\x02 \x01(\t\x12\x10\n\x08obs_time\x18\x03 \x01(\r\x12\x10\n\x08\x65xp_time\x18\x04 \x01(\x03\x12\x11\n\tfile_path\x18\x05 \x01(\t\x12\x0f\n\x07\x63\x63\x64_num\x18\x06 \x01(\r\x12\x12\n\nqc0_status\x18\x07 \x01(\r\x12\x10\n\x08qc0_time\x18\x08 \x01(\x03\x12\x12\n\nprc_status\x18\t \x01(\r\x12\x10\n\x08prc_time\x18\n \x01(\x03\x12\x13\n\x0b\x63reate_time\x18\x0b \x01(\x03\"\x9d\x02\n\x0e\x46indRawFitsReq\x12\x10\n\x08obs_time\x18\x01 \x01(\r\x12\x11\n\tfile_name\x18\x02 \x01(\t\x12\x16\n\x0e\x65xp_time_start\x18\x03 \x01(\t\x12\x14\n\x0c\x65xp_time_end\x18\x04 \x01(\t\x12\x0f\n\x07\x63\x63\x64_num\x18\x05 \x01(\r\x12\x12\n\nqc0_status\x18\x06 \x01(\r\x12\x12\n\nprc_status\x18\x07 \x01(\r\x12G\n\x10other_conditions\x18\x08 \x03(\x0b\x32-.ifs.fits.FindRawFitsReq.OtherConditionsEntry\x1a\x36\n\x14OtherConditionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"x\n\x0f\x46indRawFitsResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x12\n\ntotalCount\x18\x02 \x01(\x05\x12\x1c\n\x05\x65rror\x18\x03 \x01(\x0b\x32\r.common.Error\x12\"\n\x07rawFits\x18\x04 \x03(\x0b\x32\x11.ifs.fits.RawFits\" \n\rGetRawFitsReq\x12\x0f\n\x07\x66its_id\x18\x01 \x01(\x03\"4\n\x0eGetRawFitsResp\x12\"\n\x07rawFits\x18\x01 \x01(\x0b\x32\x11.ifs.fits.RawFits\"H\n\x0eReadRawFitsReq\x12\x0f\n\x07\x66its_id\x18\x01 \x01(\x03\x12\x11\n\tfile_path\x18\x02 \x01(\t\x12\x12\n\nchunk_size\x18\x03 \x01(\r\"\x1f\n\x0fReadRawFitsResp\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"6\n\x0fWriteRawFitsReq\x12\x11\n\tfile_name\x18\x01 \x01(\t\x12\x10\n\x08\x66itsData\x18\x02 \x01(\x0c\"e\n\x10WriteRawFitsResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\x12\"\n\x07rawFits\x18\x03 \x01(\x0b\x32\x11.ifs.fits.RawFits\"5\n\x12UpdateQc0StatusReq\x12\x0f\n\x07\x66its_id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\r\"D\n\x13UpdateQc0StatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error\"6\n\x13UpdateProcStatusReq\x12\x0f\n\x07\x66its_id\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\r\"E\n\x14UpdateProcStatusResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x1c\n\x05\x65rror\x18\x02 \x01(\x0b\x32\r.common.Error2\xb4\x03\n\x07\x46itsSrv\x12=\n\x04\x66ind\x12\x18.ifs.fits.FindRawFitsReq\x1a\x19.ifs.fits.FindRawFitsResp\"\x00\x12:\n\x03get\x12\x17.ifs.fits.GetRawFitsReq\x1a\x18.ifs.fits.GetRawFitsResp\"\x00\x12?\n\x04read\x12\x18.ifs.fits.ReadRawFitsReq\x1a\x19.ifs.fits.ReadRawFitsResp\"\x00\x30\x01\x12\x42\n\x05write\x12\x19.ifs.fits.WriteRawFitsReq\x1a\x1a.ifs.fits.WriteRawFitsResp\"\x00(\x01\x12R\n\x11update_qc0_status\x12\x1c.ifs.fits.UpdateQc0StatusReq\x1a\x1d.ifs.fits.UpdateQc0StatusResp\"\x00\x12U\n\x12update_proc_status\x12\x1d.ifs.fits.UpdateProcStatusReq\x1a\x1e.ifs.fits.UpdateProcStatusResp\"\x00\x42\x1fZ\x1d\x63nlab.net/csst/proto/ifs/fitsb\x06proto3')
,
dependencies=[common_dot_error__pb2.DESCRIPTOR,])
_RAWFITS = _descriptor.Descriptor(
name='RawFits',
full_name='ifs.fits.RawFits',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='ifs.fits.RawFits.id', index=0,
number=1, type=3, cpp_type=2, 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='ifs.fits.RawFits.file_name', index=1,
number=2, 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='obs_time', full_name='ifs.fits.RawFits.obs_time', index=2,
number=3, type=13, cpp_type=3, 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='exp_time', full_name='ifs.fits.RawFits.exp_time', index=3,
number=4, type=3, cpp_type=2, 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_path', full_name='ifs.fits.RawFits.file_path', index=4,
number=5, 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='ccd_num', full_name='ifs.fits.RawFits.ccd_num', index=5,
number=6, type=13, cpp_type=3, 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='qc0_status', full_name='ifs.fits.RawFits.qc0_status', index=6,
number=7, type=13, cpp_type=3, 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='qc0_time', full_name='ifs.fits.RawFits.qc0_time', index=7,
number=8, type=3, cpp_type=2, 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='prc_status', full_name='ifs.fits.RawFits.prc_status', index=8,
number=9, type=13, cpp_type=3, 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='prc_time', full_name='ifs.fits.RawFits.prc_time', index=9,
number=10, type=3, cpp_type=2, 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='create_time', full_name='ifs.fits.RawFits.create_time', index=10,
number=11, type=3, cpp_type=2, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=54,
serialized_end=263,
)
_FINDRAWFITSREQ_OTHERCONDITIONSENTRY = _descriptor.Descriptor(
name='OtherConditionsEntry',
full_name='ifs.fits.FindRawFitsReq.OtherConditionsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='ifs.fits.FindRawFitsReq.OtherConditionsEntry.key', index=0,
number=1, 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='value', full_name='ifs.fits.FindRawFitsReq.OtherConditionsEntry.value', index=1,
number=2, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=497,
serialized_end=551,
)
_FINDRAWFITSREQ = _descriptor.Descriptor(
name='FindRawFitsReq',
full_name='ifs.fits.FindRawFitsReq',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='obs_time', full_name='ifs.fits.FindRawFitsReq.obs_time', index=0,
number=1, type=13, cpp_type=3, 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='ifs.fits.FindRawFitsReq.file_name', index=1,
number=2, 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_start', full_name='ifs.fits.FindRawFitsReq.exp_time_start', index=2,
number=3, 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_end', full_name='ifs.fits.FindRawFitsReq.exp_time_end', index=3,
number=4, 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='ccd_num', full_name='ifs.fits.FindRawFitsReq.ccd_num', index=4,
number=5, type=13, cpp_type=3, 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='qc0_status', full_name='ifs.fits.FindRawFitsReq.qc0_status', index=5,
number=6, type=13, cpp_type=3, 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='prc_status', full_name='ifs.fits.FindRawFitsReq.prc_status', index=6,
number=7, type=13, cpp_type=3, 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='other_conditions', full_name='ifs.fits.FindRawFitsReq.other_conditions', index=7,
number=8, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_FINDRAWFITSREQ_OTHERCONDITIONSENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=266,
serialized_end=551,
)
_FINDRAWFITSRESP = _descriptor.Descriptor(
name='FindRawFitsResp',
full_name='ifs.fits.FindRawFitsResp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='success', full_name='ifs.fits.FindRawFitsResp.success', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='totalCount', full_name='ifs.fits.FindRawFitsResp.totalCount', index=1,
number=2, 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='error', full_name='ifs.fits.FindRawFitsResp.error', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='rawFits', full_name='ifs.fits.FindRawFitsResp.rawFits', index=3,
number=4, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=553,
serialized_end=673,
)
_GETRAWFITSREQ = _descriptor.Descriptor(
name='GetRawFitsReq',
full_name='ifs.fits.GetRawFitsReq',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='fits_id', full_name='ifs.fits.GetRawFitsReq.fits_id', index=0,
number=1, type=3, cpp_type=2, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=675,
serialized_end=707,
)
_GETRAWFITSRESP = _descriptor.Descriptor(
name='GetRawFitsResp',
full_name='ifs.fits.GetRawFitsResp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='rawFits', full_name='ifs.fits.GetRawFitsResp.rawFits', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=709,
serialized_end=761,
)
_READRAWFITSREQ = _descriptor.Descriptor(
name='ReadRawFitsReq',
full_name='ifs.fits.ReadRawFitsReq',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='fits_id', full_name='ifs.fits.ReadRawFitsReq.fits_id', index=0,
number=1, type=3, cpp_type=2, 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_path', full_name='ifs.fits.ReadRawFitsReq.file_path', index=1,
number=2, 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='chunk_size', full_name='ifs.fits.ReadRawFitsReq.chunk_size', index=2,
number=3, type=13, cpp_type=3, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=763,
serialized_end=835,
)
_READRAWFITSRESP = _descriptor.Descriptor(
name='ReadRawFitsResp',
full_name='ifs.fits.ReadRawFitsResp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='data', full_name='ifs.fits.ReadRawFitsResp.data', index=0,
number=1, 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=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=837,
serialized_end=868,
)
_WRITERAWFITSREQ = _descriptor.Descriptor(
name='WriteRawFitsReq',
full_name='ifs.fits.WriteRawFitsReq',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='file_name', full_name='ifs.fits.WriteRawFitsReq.file_name', index=0,
number=1, 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='fitsData', full_name='ifs.fits.WriteRawFitsReq.fitsData', 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=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=870,
serialized_end=924,
)
_WRITERAWFITSRESP = _descriptor.Descriptor(
name='WriteRawFitsResp',
full_name='ifs.fits.WriteRawFitsResp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='success', full_name='ifs.fits.WriteRawFitsResp.success', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error', full_name='ifs.fits.WriteRawFitsResp.error', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='rawFits', full_name='ifs.fits.WriteRawFitsResp.rawFits', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=926,
serialized_end=1027,
)
_UPDATEQC0STATUSREQ = _descriptor.Descriptor(
name='UpdateQc0StatusReq',
full_name='ifs.fits.UpdateQc0StatusReq',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='fits_id', full_name='ifs.fits.UpdateQc0StatusReq.fits_id', index=0,
number=1, type=3, cpp_type=2, 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='status', full_name='ifs.fits.UpdateQc0StatusReq.status', index=1,
number=2, type=13, cpp_type=3, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1029,
serialized_end=1082,
)
_UPDATEQC0STATUSRESP = _descriptor.Descriptor(
name='UpdateQc0StatusResp',
full_name='ifs.fits.UpdateQc0StatusResp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='success', full_name='ifs.fits.UpdateQc0StatusResp.success', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error', full_name='ifs.fits.UpdateQc0StatusResp.error', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1084,
serialized_end=1152,
)
_UPDATEPROCSTATUSREQ = _descriptor.Descriptor(
name='UpdateProcStatusReq',
full_name='ifs.fits.UpdateProcStatusReq',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='fits_id', full_name='ifs.fits.UpdateProcStatusReq.fits_id', index=0,
number=1, type=3, cpp_type=2, 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='status', full_name='ifs.fits.UpdateProcStatusReq.status', index=1,
number=2, type=13, cpp_type=3, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1154,
serialized_end=1208,
)
_UPDATEPROCSTATUSRESP = _descriptor.Descriptor(
name='UpdateProcStatusResp',
full_name='ifs.fits.UpdateProcStatusResp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='success', full_name='ifs.fits.UpdateProcStatusResp.success', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error', full_name='ifs.fits.UpdateProcStatusResp.error', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1210,
serialized_end=1279,
)
_FINDRAWFITSREQ_OTHERCONDITIONSENTRY.containing_type = _FINDRAWFITSREQ
_FINDRAWFITSREQ.fields_by_name['other_conditions'].message_type = _FINDRAWFITSREQ_OTHERCONDITIONSENTRY
_FINDRAWFITSRESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
_FINDRAWFITSRESP.fields_by_name['rawFits'].message_type = _RAWFITS
_GETRAWFITSRESP.fields_by_name['rawFits'].message_type = _RAWFITS
_WRITERAWFITSRESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
_WRITERAWFITSRESP.fields_by_name['rawFits'].message_type = _RAWFITS
_UPDATEQC0STATUSRESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
_UPDATEPROCSTATUSRESP.fields_by_name['error'].message_type = common_dot_error__pb2._ERROR
DESCRIPTOR.message_types_by_name['RawFits'] = _RAWFITS
DESCRIPTOR.message_types_by_name['FindRawFitsReq'] = _FINDRAWFITSREQ
DESCRIPTOR.message_types_by_name['FindRawFitsResp'] = _FINDRAWFITSRESP
DESCRIPTOR.message_types_by_name['GetRawFitsReq'] = _GETRAWFITSREQ
DESCRIPTOR.message_types_by_name['GetRawFitsResp'] = _GETRAWFITSRESP
DESCRIPTOR.message_types_by_name['ReadRawFitsReq'] = _READRAWFITSREQ
DESCRIPTOR.message_types_by_name['ReadRawFitsResp'] = _READRAWFITSRESP
DESCRIPTOR.message_types_by_name['WriteRawFitsReq'] = _WRITERAWFITSREQ
DESCRIPTOR.message_types_by_name['WriteRawFitsResp'] = _WRITERAWFITSRESP
DESCRIPTOR.message_types_by_name['UpdateQc0StatusReq'] = _UPDATEQC0STATUSREQ
DESCRIPTOR.message_types_by_name['UpdateQc0StatusResp'] = _UPDATEQC0STATUSRESP
DESCRIPTOR.message_types_by_name['UpdateProcStatusReq'] = _UPDATEPROCSTATUSREQ
DESCRIPTOR.message_types_by_name['UpdateProcStatusResp'] = _UPDATEPROCSTATUSRESP
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
RawFits = _reflection.GeneratedProtocolMessageType('RawFits', (_message.Message,), {
'DESCRIPTOR' : _RAWFITS,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.RawFits)
})
_sym_db.RegisterMessage(RawFits)
FindRawFitsReq = _reflection.GeneratedProtocolMessageType('FindRawFitsReq', (_message.Message,), {
'OtherConditionsEntry' : _reflection.GeneratedProtocolMessageType('OtherConditionsEntry', (_message.Message,), {
'DESCRIPTOR' : _FINDRAWFITSREQ_OTHERCONDITIONSENTRY,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.FindRawFitsReq.OtherConditionsEntry)
})
,
'DESCRIPTOR' : _FINDRAWFITSREQ,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.FindRawFitsReq)
})
_sym_db.RegisterMessage(FindRawFitsReq)
_sym_db.RegisterMessage(FindRawFitsReq.OtherConditionsEntry)
FindRawFitsResp = _reflection.GeneratedProtocolMessageType('FindRawFitsResp', (_message.Message,), {
'DESCRIPTOR' : _FINDRAWFITSRESP,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.FindRawFitsResp)
})
_sym_db.RegisterMessage(FindRawFitsResp)
GetRawFitsReq = _reflection.GeneratedProtocolMessageType('GetRawFitsReq', (_message.Message,), {
'DESCRIPTOR' : _GETRAWFITSREQ,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.GetRawFitsReq)
})
_sym_db.RegisterMessage(GetRawFitsReq)
GetRawFitsResp = _reflection.GeneratedProtocolMessageType('GetRawFitsResp', (_message.Message,), {
'DESCRIPTOR' : _GETRAWFITSRESP,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.GetRawFitsResp)
})
_sym_db.RegisterMessage(GetRawFitsResp)
ReadRawFitsReq = _reflection.GeneratedProtocolMessageType('ReadRawFitsReq', (_message.Message,), {
'DESCRIPTOR' : _READRAWFITSREQ,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.ReadRawFitsReq)
})
_sym_db.RegisterMessage(ReadRawFitsReq)
ReadRawFitsResp = _reflection.GeneratedProtocolMessageType('ReadRawFitsResp', (_message.Message,), {
'DESCRIPTOR' : _READRAWFITSRESP,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.ReadRawFitsResp)
})
_sym_db.RegisterMessage(ReadRawFitsResp)
WriteRawFitsReq = _reflection.GeneratedProtocolMessageType('WriteRawFitsReq', (_message.Message,), {
'DESCRIPTOR' : _WRITERAWFITSREQ,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.WriteRawFitsReq)
})
_sym_db.RegisterMessage(WriteRawFitsReq)
WriteRawFitsResp = _reflection.GeneratedProtocolMessageType('WriteRawFitsResp', (_message.Message,), {
'DESCRIPTOR' : _WRITERAWFITSRESP,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.WriteRawFitsResp)
})
_sym_db.RegisterMessage(WriteRawFitsResp)
UpdateQc0StatusReq = _reflection.GeneratedProtocolMessageType('UpdateQc0StatusReq', (_message.Message,), {
'DESCRIPTOR' : _UPDATEQC0STATUSREQ,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.UpdateQc0StatusReq)
})
_sym_db.RegisterMessage(UpdateQc0StatusReq)
UpdateQc0StatusResp = _reflection.GeneratedProtocolMessageType('UpdateQc0StatusResp', (_message.Message,), {
'DESCRIPTOR' : _UPDATEQC0STATUSRESP,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.UpdateQc0StatusResp)
})
_sym_db.RegisterMessage(UpdateQc0StatusResp)
UpdateProcStatusReq = _reflection.GeneratedProtocolMessageType('UpdateProcStatusReq', (_message.Message,), {
'DESCRIPTOR' : _UPDATEPROCSTATUSREQ,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.UpdateProcStatusReq)
})
_sym_db.RegisterMessage(UpdateProcStatusReq)
UpdateProcStatusResp = _reflection.GeneratedProtocolMessageType('UpdateProcStatusResp', (_message.Message,), {
'DESCRIPTOR' : _UPDATEPROCSTATUSRESP,
'__module__' : 'ifs.fits.fits_pb2'
# @@protoc_insertion_point(class_scope:ifs.fits.UpdateProcStatusResp)
})
_sym_db.RegisterMessage(UpdateProcStatusResp)
DESCRIPTOR._options = None
_FINDRAWFITSREQ_OTHERCONDITIONSENTRY._options = None
_FITSSRV = _descriptor.ServiceDescriptor(
name='FitsSrv',
full_name='ifs.fits.FitsSrv',
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=1282,
serialized_end=1718,
methods=[
_descriptor.MethodDescriptor(
name='find',
full_name='ifs.fits.FitsSrv.find',
index=0,
containing_service=None,
input_type=_FINDRAWFITSREQ,
output_type=_FINDRAWFITSRESP,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='get',
full_name='ifs.fits.FitsSrv.get',
index=1,
containing_service=None,
input_type=_GETRAWFITSREQ,
output_type=_GETRAWFITSRESP,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='read',
full_name='ifs.fits.FitsSrv.read',
index=2,
containing_service=None,
input_type=_READRAWFITSREQ,
output_type=_READRAWFITSRESP,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='write',
full_name='ifs.fits.FitsSrv.write',
index=3,
containing_service=None,
input_type=_WRITERAWFITSREQ,
output_type=_WRITERAWFITSRESP,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='update_qc0_status',
full_name='ifs.fits.FitsSrv.update_qc0_status',
index=4,
containing_service=None,
input_type=_UPDATEQC0STATUSREQ,
output_type=_UPDATEQC0STATUSRESP,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='update_proc_status',
full_name='ifs.fits.FitsSrv.update_proc_status',
index=5,
containing_service=None,
input_type=_UPDATEPROCSTATUSREQ,
output_type=_UPDATEPROCSTATUSRESP,
serialized_options=None,
),
])
_sym_db.RegisterServiceDescriptor(_FITSSRV)
DESCRIPTOR.services_by_name['FitsSrv'] = _FITSSRV
# @@protoc_insertion_point(module_scope)
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from ifs.fits import fits_pb2 as ifs_dot_fits_dot_fits__pb2
class FitsSrvStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.find = channel.unary_unary(
'/ifs.fits.FitsSrv/find',
request_serializer=ifs_dot_fits_dot_fits__pb2.FindRawFitsReq.SerializeToString,
response_deserializer=ifs_dot_fits_dot_fits__pb2.FindRawFitsResp.FromString,
)
self.get = channel.unary_unary(
'/ifs.fits.FitsSrv/get',
request_serializer=ifs_dot_fits_dot_fits__pb2.GetRawFitsReq.SerializeToString,
response_deserializer=ifs_dot_fits_dot_fits__pb2.GetRawFitsResp.FromString,
)
self.read = channel.unary_stream(
'/ifs.fits.FitsSrv/read',
request_serializer=ifs_dot_fits_dot_fits__pb2.ReadRawFitsReq.SerializeToString,
response_deserializer=ifs_dot_fits_dot_fits__pb2.ReadRawFitsResp.FromString,
)
self.write = channel.stream_unary(
'/ifs.fits.FitsSrv/write',
request_serializer=ifs_dot_fits_dot_fits__pb2.WriteRawFitsReq.SerializeToString,
response_deserializer=ifs_dot_fits_dot_fits__pb2.WriteRawFitsResp.FromString,
)
self.update_qc0_status = channel.unary_unary(
'/ifs.fits.FitsSrv/update_qc0_status',
request_serializer=ifs_dot_fits_dot_fits__pb2.UpdateQc0StatusReq.SerializeToString,
response_deserializer=ifs_dot_fits_dot_fits__pb2.UpdateQc0StatusResp.FromString,
)
self.update_proc_status = channel.unary_unary(
'/ifs.fits.FitsSrv/update_proc_status',
request_serializer=ifs_dot_fits_dot_fits__pb2.UpdateProcStatusReq.SerializeToString,
response_deserializer=ifs_dot_fits_dot_fits__pb2.UpdateProcStatusResp.FromString,
)
class FitsSrvServicer(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 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 read(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 update_qc0_status(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 update_proc_status(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_FitsSrvServicer_to_server(servicer, server):
rpc_method_handlers = {
'find': grpc.unary_unary_rpc_method_handler(
servicer.find,
request_deserializer=ifs_dot_fits_dot_fits__pb2.FindRawFitsReq.FromString,
response_serializer=ifs_dot_fits_dot_fits__pb2.FindRawFitsResp.SerializeToString,
),
'get': grpc.unary_unary_rpc_method_handler(
servicer.get,
request_deserializer=ifs_dot_fits_dot_fits__pb2.GetRawFitsReq.FromString,
response_serializer=ifs_dot_fits_dot_fits__pb2.GetRawFitsResp.SerializeToString,
),
'read': grpc.unary_stream_rpc_method_handler(
servicer.read,
request_deserializer=ifs_dot_fits_dot_fits__pb2.ReadRawFitsReq.FromString,
response_serializer=ifs_dot_fits_dot_fits__pb2.ReadRawFitsResp.SerializeToString,
),
'write': grpc.stream_unary_rpc_method_handler(
servicer.write,
request_deserializer=ifs_dot_fits_dot_fits__pb2.WriteRawFitsReq.FromString,
response_serializer=ifs_dot_fits_dot_fits__pb2.WriteRawFitsResp.SerializeToString,
),
'update_qc0_status': grpc.unary_unary_rpc_method_handler(
servicer.update_qc0_status,
request_deserializer=ifs_dot_fits_dot_fits__pb2.UpdateQc0StatusReq.FromString,
response_serializer=ifs_dot_fits_dot_fits__pb2.UpdateQc0StatusResp.SerializeToString,
),
'update_proc_status': grpc.unary_unary_rpc_method_handler(
servicer.update_proc_status,
request_deserializer=ifs_dot_fits_dot_fits__pb2.UpdateProcStatusReq.FromString,
response_serializer=ifs_dot_fits_dot_fits__pb2.UpdateProcStatusResp.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'ifs.fits.FitsSrv', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment