Skip to content

Commit

Permalink
'Protobuf files change'
Browse files Browse the repository at this point in the history
  • Loading branch information
Build System committed Dec 3, 2024
1 parent 1099f01 commit 963f7f6
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 42 deletions.
46 changes: 25 additions & 21 deletions src/systemathics/apis/services/daily/v2/get_daily_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions src/systemathics/apis/services/daily/v2/get_daily_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ def __init__(self, channel):
request_serializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyRequest.SerializeToString,
response_deserializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorStreamResponse.FromString,
)
self.DailyVectorKeyStream = channel.unary_stream(
'/systemathics.apis.services.daily.v2.DailyService/DailyVectorKeyStream',
request_serializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorKeyRequest.SerializeToString,
response_deserializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorStreamResponse.FromString,
)
self.DailyFields = channel.unary_unary(
'/systemathics.apis.services.daily.v2.DailyService/DailyFields',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
Expand Down Expand Up @@ -56,6 +61,13 @@ def DailyVectorStream(self, request, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def DailyVectorKeyStream(self, request, context):
"""Gets daily historical data timeseries by identifier and key using streaming
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def DailyFields(self, request, context):
"""Gets all available fields by asset and provider.
"""
Expand Down Expand Up @@ -83,6 +95,11 @@ def add_DailyServiceServicer_to_server(servicer, server):
request_deserializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyRequest.FromString,
response_serializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorStreamResponse.SerializeToString,
),
'DailyVectorKeyStream': grpc.unary_stream_rpc_method_handler(
servicer.DailyVectorKeyStream,
request_deserializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorKeyRequest.FromString,
response_serializer=systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorStreamResponse.SerializeToString,
),
'DailyFields': grpc.unary_unary_rpc_method_handler(
servicer.DailyFields,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
Expand Down Expand Up @@ -138,6 +155,23 @@ def DailyVectorStream(request,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def DailyVectorKeyStream(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_stream(request, target, '/systemathics.apis.services.daily.v2.DailyService/DailyVectorKeyStream',
systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorKeyRequest.SerializeToString,
systemathics_dot_apis_dot_services_dot_daily_dot_v2_dot_get__daily__pb2.DailyVectorStreamResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def DailyFields(request,
target,
Expand Down
Loading

0 comments on commit 963f7f6

Please sign in to comment.