|
| 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.daily.v2 import get_daily_pb2 as systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2 |
| 7 | + |
| 8 | + |
| 9 | +class DailyServiceStub(object): |
| 10 | + """Called to request daily prices data. |
| 11 | + """ |
| 12 | + |
| 13 | + def __init__(self, channel): |
| 14 | + """Constructor. |
| 15 | +
|
| 16 | + Args: |
| 17 | + channel: A grpc.Channel. |
| 18 | + """ |
| 19 | + self.DailyScalarStream = channel.unary_stream( |
| 20 | + '/systemathics.apis.services.daily.v2.DailyService/DailyScalarStream', |
| 21 | + request_serializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyRequest.SerializeToString, |
| 22 | + response_deserializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyScalarStreamResponse.FromString, |
| 23 | + ) |
| 24 | + self.DailyVectorStream = channel.unary_stream( |
| 25 | + '/systemathics.apis.services.daily.v2.DailyService/DailyVectorStream', |
| 26 | + request_serializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyRequest.SerializeToString, |
| 27 | + response_deserializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorStreamResponse.FromString, |
| 28 | + ) |
| 29 | + self.DailyFields = channel.unary_unary( |
| 30 | + '/systemathics.apis.services.daily.v2.DailyService/DailyFields', |
| 31 | + request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 32 | + response_deserializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyFieldsResponse.FromString, |
| 33 | + ) |
| 34 | + self.DailyAssetProviders = channel.unary_unary( |
| 35 | + '/systemathics.apis.services.daily.v2.DailyService/DailyAssetProviders', |
| 36 | + request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 37 | + response_deserializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyAssetProvidersResponse.FromString, |
| 38 | + ) |
| 39 | + |
| 40 | + |
| 41 | +class DailyServiceServicer(object): |
| 42 | + """Called to request daily prices data. |
| 43 | + """ |
| 44 | + |
| 45 | + def DailyScalarStream(self, request, context): |
| 46 | + """Gets daily historical data timeseries by identifier using streaming |
| 47 | + """ |
| 48 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 49 | + context.set_details('Method not implemented!') |
| 50 | + raise NotImplementedError('Method not implemented!') |
| 51 | + |
| 52 | + def DailyVectorStream(self, request, context): |
| 53 | + """Gets daily historical data timeseries by identifier using streaming |
| 54 | + """ |
| 55 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 56 | + context.set_details('Method not implemented!') |
| 57 | + raise NotImplementedError('Method not implemented!') |
| 58 | + |
| 59 | + def DailyFields(self, request, context): |
| 60 | + """Gets all available fields by asset and provider. |
| 61 | + """ |
| 62 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 63 | + context.set_details('Method not implemented!') |
| 64 | + raise NotImplementedError('Method not implemented!') |
| 65 | + |
| 66 | + def DailyAssetProviders(self, request, context): |
| 67 | + """Gets all available provider by asset |
| 68 | + """ |
| 69 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 70 | + context.set_details('Method not implemented!') |
| 71 | + raise NotImplementedError('Method not implemented!') |
| 72 | + |
| 73 | + |
| 74 | +def add_DailyServiceServicer_to_server(servicer, server): |
| 75 | + rpc_method_handlers = { |
| 76 | + 'DailyScalarStream': grpc.unary_stream_rpc_method_handler( |
| 77 | + servicer.DailyScalarStream, |
| 78 | + request_deserializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyRequest.FromString, |
| 79 | + response_serializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyScalarStreamResponse.SerializeToString, |
| 80 | + ), |
| 81 | + 'DailyVectorStream': grpc.unary_stream_rpc_method_handler( |
| 82 | + servicer.DailyVectorStream, |
| 83 | + request_deserializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyRequest.FromString, |
| 84 | + response_serializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorStreamResponse.SerializeToString, |
| 85 | + ), |
| 86 | + 'DailyFields': grpc.unary_unary_rpc_method_handler( |
| 87 | + servicer.DailyFields, |
| 88 | + request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, |
| 89 | + response_serializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyFieldsResponse.SerializeToString, |
| 90 | + ), |
| 91 | + 'DailyAssetProviders': grpc.unary_unary_rpc_method_handler( |
| 92 | + servicer.DailyAssetProviders, |
| 93 | + request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, |
| 94 | + response_serializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyAssetProvidersResponse.SerializeToString, |
| 95 | + ), |
| 96 | + } |
| 97 | + generic_handler = grpc.method_handlers_generic_handler( |
| 98 | + 'systemathics.apis.services.daily.v2.DailyService', rpc_method_handlers) |
| 99 | + server.add_generic_rpc_handlers((generic_handler,)) |
| 100 | + |
| 101 | + |
| 102 | + # This class is part of an EXPERIMENTAL API. |
| 103 | +class DailyService(object): |
| 104 | + """Called to request daily prices data. |
| 105 | + """ |
| 106 | + |
| 107 | + @staticmethod |
| 108 | + def DailyScalarStream(request, |
| 109 | + target, |
| 110 | + options=(), |
| 111 | + channel_credentials=None, |
| 112 | + call_credentials=None, |
| 113 | + insecure=False, |
| 114 | + compression=None, |
| 115 | + wait_for_ready=None, |
| 116 | + timeout=None, |
| 117 | + metadata=None): |
| 118 | + return grpc.experimental.unary_stream(request, target, '/systemathics.apis.services.daily.v2.DailyService/DailyScalarStream', |
| 119 | + systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyRequest.SerializeToString, |
| 120 | + systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyScalarStreamResponse.FromString, |
| 121 | + options, channel_credentials, |
| 122 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 123 | + |
| 124 | + @staticmethod |
| 125 | + def DailyVectorStream(request, |
| 126 | + target, |
| 127 | + options=(), |
| 128 | + channel_credentials=None, |
| 129 | + call_credentials=None, |
| 130 | + insecure=False, |
| 131 | + compression=None, |
| 132 | + wait_for_ready=None, |
| 133 | + timeout=None, |
| 134 | + metadata=None): |
| 135 | + return grpc.experimental.unary_stream(request, target, '/systemathics.apis.services.daily.v2.DailyService/DailyVectorStream', |
| 136 | + systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyRequest.SerializeToString, |
| 137 | + systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorStreamResponse.FromString, |
| 138 | + options, channel_credentials, |
| 139 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 140 | + |
| 141 | + @staticmethod |
| 142 | + def DailyFields(request, |
| 143 | + target, |
| 144 | + options=(), |
| 145 | + channel_credentials=None, |
| 146 | + call_credentials=None, |
| 147 | + insecure=False, |
| 148 | + compression=None, |
| 149 | + wait_for_ready=None, |
| 150 | + timeout=None, |
| 151 | + metadata=None): |
| 152 | + return grpc.experimental.unary_unary(request, target, '/systemathics.apis.services.daily.v2.DailyService/DailyFields', |
| 153 | + google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 154 | + systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyFieldsResponse.FromString, |
| 155 | + options, channel_credentials, |
| 156 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 157 | + |
| 158 | + @staticmethod |
| 159 | + def DailyAssetProviders(request, |
| 160 | + target, |
| 161 | + options=(), |
| 162 | + channel_credentials=None, |
| 163 | + call_credentials=None, |
| 164 | + insecure=False, |
| 165 | + compression=None, |
| 166 | + wait_for_ready=None, |
| 167 | + timeout=None, |
| 168 | + metadata=None): |
| 169 | + return grpc.experimental.unary_unary(request, target, '/systemathics.apis.services.daily.v2.DailyService/DailyAssetProviders', |
| 170 | + google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, |
| 171 | + systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyAssetProvidersResponse.FromString, |
| 172 | + options, channel_credentials, |
| 173 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
0 commit comments