location_service_pb2.py 文件源码

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

项目:object-tracking 作者: athenian-robotics 项目源码 文件源码
def beta_create_LocationService_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 = {
            ('opencv_object_tracking.LocationService', 'getLocations'): ClientInfo.SerializeToString,
            ('opencv_object_tracking.LocationService', 'registerClient'): ClientInfo.SerializeToString,
        }
        response_deserializers = {
            ('opencv_object_tracking.LocationService', 'getLocations'): Location.FromString,
            ('opencv_object_tracking.LocationService', 'registerClient'): ServerInfo.FromString,
        }
        cardinalities = {
            'getLocations': cardinality.Cardinality.UNARY_STREAM,
            'registerClient': cardinality.Cardinality.UNARY_UNARY,
        }
        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, 'opencv_object_tracking.LocationService', cardinalities,
                                                 options=stub_options)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号