protos_remote_pb2.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:protoactor-python 作者: AsynkronIT 项目源码 文件源码
def beta_create_Remoting_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None):
    """The Beta API is deprecated for 0.15.0 and later.

    It is recommended to use the GA API (classes and functions in this
    file not marked beta) for all further purposes. This function was
    generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0"""
    request_serializers = {
      ('remote.Remoting', 'Receive'): MessageBatch.SerializeToString,
    }
    response_deserializers = {
      ('remote.Remoting', 'Receive'): Unit.FromString,
    }
    cardinalities = {
      'Receive': cardinality.Cardinality.STREAM_STREAM,
    }
    stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size)
    return beta_implementations.dynamic_stub(channel, 'remote.Remoting', cardinalities, options=stub_options)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号