| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
- """Client and server classes corresponding to protobuf-defined services."""
- import grpc
- import fish_speech.datasets.protos.text_data_pb2 as text__data__pb2
- class DataServiceStub(object):
- """Missing associated documentation comment in .proto file."""
- def __init__(self, channel):
- """Constructor.
- Args:
- channel: A grpc.Channel.
- """
- self.SampleData = channel.unary_unary(
- "/text_data.DataService/SampleData",
- request_serializer=text__data__pb2.SampleDataRequest.SerializeToString,
- response_deserializer=text__data__pb2.SampledData.FromString,
- )
- class DataServiceServicer(object):
- """Missing associated documentation comment in .proto file."""
- def SampleData(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_DataServiceServicer_to_server(servicer, server):
- rpc_method_handlers = {
- "SampleData": grpc.unary_unary_rpc_method_handler(
- servicer.SampleData,
- request_deserializer=text__data__pb2.SampleDataRequest.FromString,
- response_serializer=text__data__pb2.SampledData.SerializeToString,
- ),
- }
- generic_handler = grpc.method_handlers_generic_handler(
- "text_data.DataService", rpc_method_handlers
- )
- server.add_generic_rpc_handlers((generic_handler,))
- # This class is part of an EXPERIMENTAL API.
- class DataService(object):
- """Missing associated documentation comment in .proto file."""
- @staticmethod
- def SampleData(
- 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,
- "/text_data.DataService/SampleData",
- text__data__pb2.SampleDataRequest.SerializeToString,
- text__data__pb2.SampledData.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- )
|