|
| 1 | +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! |
| 2 | +"""Client and server classes corresponding to protobuf-defined services.""" |
| 3 | +import grpc |
| 4 | + |
| 5 | +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 |
| 6 | +from systemathics.apis.services.static_data.v1 import static_data_set_pb2 as systemathics_dot_apis_dot_services_dot_static__data_dot_v1_dot_static__data__set__pb2 |
| 7 | + |
| 8 | + |
| 9 | +class StaticDataSetServiceStub(object): |
| 10 | + """Called to request reference data. |
| 11 | + """ |
| 12 | + |
| 13 | + def __init__(self, channel): |
| 14 | + """Constructor. |
| 15 | +
|
| 16 | + Args: |
| 17 | + channel: A grpc.Channel. |
| 18 | + """ |
| 19 | + self.CreateStaticDataOtcStreaming = channel.unary_unary( |
| 20 | + '/systemathics.apis.services.static_data.v1.StaticDataSetService/CreateStaticDataOtcStreaming', |
| 21 | + request_serializer=systemathics_dot_apis_dot_services_dot_static__data_dot_v1_dot_static__data__set__pb2.StaticDataOtcStreamingRequest.SerializeToString, |
| 22 | + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, |
| 23 | + ) |
| 24 | + |
| 25 | + |
| 26 | +class StaticDataSetServiceServicer(object): |
| 27 | + """Called to request reference data. |
| 28 | + """ |
| 29 | + |
| 30 | + def CreateStaticDataOtcStreaming(self, request, context): |
| 31 | + """Gets reference data |
| 32 | + """ |
| 33 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 34 | + context.set_details('Method not implemented!') |
| 35 | + raise NotImplementedError('Method not implemented!') |
| 36 | + |
| 37 | + |
| 38 | +def add_StaticDataSetServiceServicer_to_server(servicer, server): |
| 39 | + rpc_method_handlers = { |
| 40 | + 'CreateStaticDataOtcStreaming': grpc.unary_unary_rpc_method_handler( |
| 41 | + servicer.CreateStaticDataOtcStreaming, |
| 42 | + request_deserializer=systemathics_dot_apis_dot_services_dot_static__data_dot_v1_dot_static__data__set__pb2.StaticDataOtcStreamingRequest.FromString, |
| 43 | + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 44 | + ), |
| 45 | + } |
| 46 | + generic_handler = grpc.method_handlers_generic_handler( |
| 47 | + 'systemathics.apis.services.static_data.v1.StaticDataSetService', rpc_method_handlers) |
| 48 | + server.add_generic_rpc_handlers((generic_handler,)) |
| 49 | + |
| 50 | + |
| 51 | + # This class is part of an EXPERIMENTAL API. |
| 52 | +class StaticDataSetService(object): |
| 53 | + """Called to request reference data. |
| 54 | + """ |
| 55 | + |
| 56 | + @staticmethod |
| 57 | + def CreateStaticDataOtcStreaming(request, |
| 58 | + target, |
| 59 | + options=(), |
| 60 | + channel_credentials=None, |
| 61 | + call_credentials=None, |
| 62 | + insecure=False, |
| 63 | + compression=None, |
| 64 | + wait_for_ready=None, |
| 65 | + timeout=None, |
| 66 | + metadata=None): |
| 67 | + return grpc.experimental.unary_unary(request, target, '/systemathics.apis.services.static_data.v1.StaticDataSetService/CreateStaticDataOtcStreaming', |
| 68 | + systemathics_dot_apis_dot_services_dot_static__data_dot_v1_dot_static__data__set__pb2.StaticDataOtcStreamingRequest.SerializeToString, |
| 69 | + google_dot_protobuf_dot_empty__pb2.Empty.FromString, |
| 70 | + options, channel_credentials, |
| 71 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
0 commit comments