-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement knowledge and objects v1beta2
BREAKING CHANGE: ENG-2778
- Loading branch information
1 parent
59978b9
commit 920e7ad
Showing
25 changed files
with
813 additions
and
623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
102 changes: 102 additions & 0 deletions
102
indykite_sdk/indykite/ingest/v1beta3/ingest_api_pb2_grpc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | ||
"""Client and server classes corresponding to protobuf-defined services.""" | ||
import grpc | ||
|
||
from indykite_sdk.indykite.ingest.v1beta3 import ingest_api_pb2 as indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2 | ||
|
||
|
||
class IngestAPIStub(object): | ||
"""IngestAPI represents the service interface for data ingestion. | ||
""" | ||
|
||
def __init__(self, channel): | ||
"""Constructor. | ||
Args: | ||
channel: A grpc.Channel. | ||
""" | ||
self.StreamRecords = channel.stream_stream( | ||
'/indykite.ingest.v1beta3.IngestAPI/StreamRecords', | ||
request_serializer=indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.StreamRecordsRequest.SerializeToString, | ||
response_deserializer=indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.StreamRecordsResponse.FromString, | ||
) | ||
self.IngestRecord = channel.unary_unary( | ||
'/indykite.ingest.v1beta3.IngestAPI/IngestRecord', | ||
request_serializer=indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.IngestRecordRequest.SerializeToString, | ||
response_deserializer=indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.IngestRecordResponse.FromString, | ||
) | ||
|
||
|
||
class IngestAPIServicer(object): | ||
"""IngestAPI represents the service interface for data ingestion. | ||
""" | ||
|
||
def StreamRecords(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 IngestRecord(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 add_IngestAPIServicer_to_server(servicer, server): | ||
rpc_method_handlers = { | ||
'StreamRecords': grpc.stream_stream_rpc_method_handler( | ||
servicer.StreamRecords, | ||
request_deserializer=indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.StreamRecordsRequest.FromString, | ||
response_serializer=indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.StreamRecordsResponse.SerializeToString, | ||
), | ||
'IngestRecord': grpc.unary_unary_rpc_method_handler( | ||
servicer.IngestRecord, | ||
request_deserializer=indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.IngestRecordRequest.FromString, | ||
response_serializer=indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.IngestRecordResponse.SerializeToString, | ||
), | ||
} | ||
generic_handler = grpc.method_handlers_generic_handler( | ||
'indykite.ingest.v1beta3.IngestAPI', rpc_method_handlers) | ||
server.add_generic_rpc_handlers((generic_handler,)) | ||
|
||
|
||
# This class is part of an EXPERIMENTAL API. | ||
class IngestAPI(object): | ||
"""IngestAPI represents the service interface for data ingestion. | ||
""" | ||
|
||
@staticmethod | ||
def StreamRecords(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_stream(request_iterator, target, '/indykite.ingest.v1beta3.IngestAPI/StreamRecords', | ||
indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.StreamRecordsRequest.SerializeToString, | ||
indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.StreamRecordsResponse.FromString, | ||
options, channel_credentials, | ||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) | ||
|
||
@staticmethod | ||
def IngestRecord(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, '/indykite.ingest.v1beta3.IngestAPI/IngestRecord', | ||
indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.IngestRecordRequest.SerializeToString, | ||
indykite_dot_ingest_dot_v1beta3_dot_ingest__api__pb2.IngestRecordResponse.FromString, | ||
options, channel_credentials, | ||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
Oops, something went wrong.