Python grpc.beta.implementations.server_options() Examples
The following are 30
code examples of grpc.beta.implementations.server_options().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
grpc.beta.implementations
, or try the search function
.
Example #1
Source File: worldhello_pb2.py From sea with MIT License | 6 votes |
def beta_create_Greeter_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('worldhello.Greeter', 'SayHello'): HelloRequest.FromString, ('worldhello.Greeter', 'SayHelloAgain'): HelloRequest.FromString, } response_serializers = { ('worldhello.Greeter', 'SayHello'): HelloReply.SerializeToString, ('worldhello.Greeter', 'SayHelloAgain'): HelloReply.SerializeToString, } method_implementations = { ('worldhello.Greeter', 'SayHello'): face_utilities.unary_unary_inline(servicer.SayHello), ('worldhello.Greeter', 'SayHelloAgain'): face_utilities.unary_unary_inline(servicer.SayHelloAgain), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #2
Source File: helloworld_pb2.py From proto_parser with GNU General Public License v3.0 | 6 votes |
def beta_create_Greeter_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('hello_world.Greeter', 'SayHello'): HelloRequest.FromString, } response_serializers = { ('hello_world.Greeter', 'SayHello'): HelloReply.SerializeToString, } method_implementations = { ('hello_world.Greeter', 'SayHello'): face_utilities.unary_unary_inline(servicer.SayHello), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #3
Source File: grpc_service_pb2.py From python-compat-runtime with Apache License 2.0 | 6 votes |
def beta_create_CallHandler_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('apphosting.tools.devappserver2.CallHandler', 'HandleCall'): Request.FromString, } response_serializers = { ('apphosting.tools.devappserver2.CallHandler', 'HandleCall'): Response.SerializeToString, } method_implementations = { ('apphosting.tools.devappserver2.CallHandler', 'HandleCall'): face_utilities.unary_unary_inline(servicer.HandleCall), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #4
Source File: router_pb2.py From python-app-sdk with MIT License | 6 votes |
def beta_create_RouterManager_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('router.RouterManager', 'GatewayStatus'): GatewayStatusRequest.FromString, ('router.RouterManager', 'GetStatus'): StatusRequest.FromString, } response_serializers = { ('router.RouterManager', 'GatewayStatus'): GatewayStatusResponse.SerializeToString, ('router.RouterManager', 'GetStatus'): Status.SerializeToString, } method_implementations = { ('router.RouterManager', 'GatewayStatus'): face_utilities.unary_unary_inline(servicer.GatewayStatus), ('router.RouterManager', 'GetStatus'): face_utilities.unary_unary_inline(servicer.GetStatus), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #5
Source File: broker_pb2.py From python-app-sdk with MIT License | 6 votes |
def beta_create_BrokerManager_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('broker.BrokerManager', 'GetStatus'): StatusRequest.FromString, ('broker.BrokerManager', 'RegisterApplicationHandler'): ApplicationHandlerRegistration.FromString, } response_serializers = { ('broker.BrokerManager', 'GetStatus'): Status.SerializeToString, ('broker.BrokerManager', 'RegisterApplicationHandler'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, } method_implementations = { ('broker.BrokerManager', 'GetStatus'): face_utilities.unary_unary_inline(servicer.GetStatus), ('broker.BrokerManager', 'RegisterApplicationHandler'): face_utilities.unary_unary_inline(servicer.RegisterApplicationHandler), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #6
Source File: handler_pb2.py From python-app-sdk with MIT License | 6 votes |
def beta_create_HandlerManager_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('handler.HandlerManager', 'GetStatus'): StatusRequest.FromString, } response_serializers = { ('handler.HandlerManager', 'GetStatus'): Status.SerializeToString, } method_implementations = { ('handler.HandlerManager', 'GetStatus'): face_utilities.unary_unary_inline(servicer.GetStatus), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #7
Source File: handler_pb2.py From python-app-sdk with MIT License | 6 votes |
def beta_create_Handler_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('handler.Handler', 'Activate'): github__com_dot_TheThingsNetwork_dot_api_dot_broker_dot_broker__pb2.DeduplicatedDeviceActivationRequest.FromString, ('handler.Handler', 'ActivationChallenge'): github__com_dot_TheThingsNetwork_dot_api_dot_broker_dot_broker__pb2.ActivationChallengeRequest.FromString, } response_serializers = { ('handler.Handler', 'Activate'): DeviceActivationResponse.SerializeToString, ('handler.Handler', 'ActivationChallenge'): github__com_dot_TheThingsNetwork_dot_api_dot_broker_dot_broker__pb2.ActivationChallengeResponse.SerializeToString, } method_implementations = { ('handler.Handler', 'Activate'): face_utilities.unary_unary_inline(servicer.Activate), ('handler.Handler', 'ActivationChallenge'): face_utilities.unary_unary_inline(servicer.ActivationChallenge), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #8
Source File: device_pb2.py From python-app-sdk with MIT License | 6 votes |
def beta_create_DeviceManager_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('lorawan.DeviceManager', 'DeleteDevice'): DeviceIdentifier.FromString, ('lorawan.DeviceManager', 'GetDevice'): DeviceIdentifier.FromString, ('lorawan.DeviceManager', 'SetDevice'): Device.FromString, } response_serializers = { ('lorawan.DeviceManager', 'DeleteDevice'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ('lorawan.DeviceManager', 'GetDevice'): Device.SerializeToString, ('lorawan.DeviceManager', 'SetDevice'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, } method_implementations = { ('lorawan.DeviceManager', 'DeleteDevice'): face_utilities.unary_unary_inline(servicer.DeleteDevice), ('lorawan.DeviceManager', 'GetDevice'): face_utilities.unary_unary_inline(servicer.GetDevice), ('lorawan.DeviceManager', 'SetDevice'): face_utilities.unary_unary_inline(servicer.SetDevice), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #9
Source File: device_address_pb2.py From python-app-sdk with MIT License | 6 votes |
def beta_create_DevAddrManager_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('lorawan.DevAddrManager', 'GetDevAddr'): DevAddrRequest.FromString, ('lorawan.DevAddrManager', 'GetPrefixes'): PrefixesRequest.FromString, } response_serializers = { ('lorawan.DevAddrManager', 'GetDevAddr'): DevAddrResponse.SerializeToString, ('lorawan.DevAddrManager', 'GetPrefixes'): PrefixesResponse.SerializeToString, } method_implementations = { ('lorawan.DevAddrManager', 'GetDevAddr'): face_utilities.unary_unary_inline(servicer.GetDevAddr), ('lorawan.DevAddrManager', 'GetPrefixes'): face_utilities.unary_unary_inline(servicer.GetPrefixes), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #10
Source File: networkserver_pb2.py From python-app-sdk with MIT License | 6 votes |
def beta_create_NetworkServerManager_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('networkserver.NetworkServerManager', 'GetStatus'): StatusRequest.FromString, } response_serializers = { ('networkserver.NetworkServerManager', 'GetStatus'): Status.SerializeToString, } method_implementations = { ('networkserver.NetworkServerManager', 'GetStatus'): face_utilities.unary_unary_inline(servicer.GetStatus), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #11
Source File: ServerSideExtension_pb2.py From qlik-py-tools with MIT License | 6 votes |
def beta_create_Connector_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('qlik.sse.Connector', 'EvaluateScript'): BundledRows.FromString, ('qlik.sse.Connector', 'ExecuteFunction'): BundledRows.FromString, ('qlik.sse.Connector', 'GetCapabilities'): Empty.FromString, } response_serializers = { ('qlik.sse.Connector', 'EvaluateScript'): BundledRows.SerializeToString, ('qlik.sse.Connector', 'ExecuteFunction'): BundledRows.SerializeToString, ('qlik.sse.Connector', 'GetCapabilities'): Capabilities.SerializeToString, } method_implementations = { ('qlik.sse.Connector', 'EvaluateScript'): face_utilities.stream_stream_inline(servicer.EvaluateScript), ('qlik.sse.Connector', 'ExecuteFunction'): face_utilities.stream_stream_inline(servicer.ExecuteFunction), ('qlik.sse.Connector', 'GetCapabilities'): face_utilities.unary_unary_inline(servicer.GetCapabilities), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #12
Source File: calculator_pb2.py From basic-grpc-python with MIT License | 6 votes |
def beta_create_Calculator_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('Calculator', 'SquareRoot'): Number.FromString, } response_serializers = { ('Calculator', 'SquareRoot'): Number.SerializeToString, } method_implementations = { ('Calculator', 'SquareRoot'): face_utilities.unary_unary_inline(servicer.SquareRoot), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #13
Source File: EventHub_pb2.py From predixpy with BSD 3-Clause "New" or "Revised" License | 6 votes |
def beta_create_Subscriber_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('predix.eventhub.Subscriber', 'receive'): SubscriptionRequest.FromString, ('predix.eventhub.Subscriber', 'receiveWithAcks'): SubscriptionResponse.FromString, ('predix.eventhub.Subscriber', 'subscribe'): SubscriptionAcks.FromString, } response_serializers = { ('predix.eventhub.Subscriber', 'receive'): Message.SerializeToString, ('predix.eventhub.Subscriber', 'receiveWithAcks'): Message.SerializeToString, ('predix.eventhub.Subscriber', 'subscribe'): SubscriptionMessage.SerializeToString, } method_implementations = { ('predix.eventhub.Subscriber', 'receive'): face_utilities.unary_stream_inline(servicer.receive), ('predix.eventhub.Subscriber', 'receiveWithAcks'): face_utilities.stream_stream_inline(servicer.receiveWithAcks), ('predix.eventhub.Subscriber', 'subscribe'): face_utilities.stream_stream_inline(servicer.subscribe), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #14
Source File: EventHub_pb2.py From predixpy with BSD 3-Clause "New" or "Revised" License | 6 votes |
def beta_create_Publisher_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('predix.eventhub.Publisher', 'send'): PublishRequest.FromString, } response_serializers = { ('predix.eventhub.Publisher', 'send'): PublishResponse.SerializeToString, } method_implementations = { ('predix.eventhub.Publisher', 'send'): face_utilities.stream_stream_inline(servicer.send), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #15
Source File: Health_pb2.py From predixpy with BSD 3-Clause "New" or "Revised" License | 6 votes |
def beta_create_Health_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('grpc.health.v1.Health', 'Check'): HealthCheckRequest.FromString, } response_serializers = { ('grpc.health.v1.Health', 'Check'): HealthCheckResponse.SerializeToString, } method_implementations = { ('grpc.health.v1.Health', 'Check'): face_utilities.unary_unary_inline(servicer.Check), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #16
Source File: command_line_pb2.py From python-grpc with Apache License 2.0 | 6 votes |
def beta_create_CommandLine_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('command_line.CommandLine', 'Echo'): CommandRequest.FromString, } response_serializers = { ('command_line.CommandLine', 'Echo'): CommandResponse.SerializeToString, } method_implementations = { ('command_line.CommandLine', 'Echo'): face_utilities.unary_unary_inline(servicer.Echo), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #17
Source File: command_line_pb2.py From python-grpc with Apache License 2.0 | 6 votes |
def beta_create_CommandLine_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('command_line.CommandLine', 'Echo'): CommandRequest.FromString, } response_serializers = { ('command_line.CommandLine', 'Echo'): CommandResponse.SerializeToString, } method_implementations = { ('command_line.CommandLine', 'Echo'): face_utilities.unary_unary_inline(servicer.Echo), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #18
Source File: prediction_service_pb2.py From Make_Money_with_Tensorflow with GNU General Public License v3.0 | 6 votes |
def beta_create_PredictionService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('tensorflow.serving.PredictionService', 'Predict'): PredictRequest.FromString, } response_serializers = { ('tensorflow.serving.PredictionService', 'Predict'): PredictResponse.SerializeToString, } method_implementations = { ('tensorflow.serving.PredictionService', 'Predict'): face_utilities.unary_unary_inline(servicer.Predict), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #19
Source File: clusterspecgenerator_pb2.py From hops-tensorflow with Apache License 2.0 | 6 votes |
def beta_create_ClusterSpecGenerator_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('clusterspecgenerator.ClusterSpecGenerator', 'GetClusterSpec'): GetClusterSpecRequest.FromString, ('clusterspecgenerator.ClusterSpecGenerator', 'RegisterContainer'): RegisterContainerRequest.FromString, } response_serializers = { ('clusterspecgenerator.ClusterSpecGenerator', 'GetClusterSpec'): GetClusterSpecReply.SerializeToString, ('clusterspecgenerator.ClusterSpecGenerator', 'RegisterContainer'): RegisterContainerReply.SerializeToString, } method_implementations = { ('clusterspecgenerator.ClusterSpecGenerator', 'GetClusterSpec'): face_utilities.unary_unary_inline(servicer.GetClusterSpec), ('clusterspecgenerator.ClusterSpecGenerator', 'RegisterContainer'): face_utilities.unary_unary_inline(servicer.RegisterContainer), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #20
Source File: helloworld_pb2.py From sea with MIT License | 6 votes |
def beta_create_Greeter_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('helloworld.Greeter', 'SayHello'): HelloRequest.FromString, } response_serializers = { ('helloworld.Greeter', 'SayHello'): HelloReply.SerializeToString, } method_implementations = { ('helloworld.Greeter', 'SayHello'): face_utilities.unary_unary_inline(servicer.SayHello), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #21
Source File: prediction_service_pb2.py From text-antispam with MIT License | 6 votes |
def beta_create_PredictionService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('tensorflow.serving.PredictionService', 'Predict'): predict__pb2.PredictRequest.FromString, } response_serializers = { ('tensorflow.serving.PredictionService', 'Predict'): predict__pb2.PredictResponse.SerializeToString, } method_implementations = { ('tensorflow.serving.PredictionService', 'Predict'): face_utilities.unary_unary_inline(servicer.Predict), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #22
Source File: actions_pb2.py From marvin-python-toolbox with Apache License 2.0 | 6 votes |
def beta_create_OnlineActionHandler_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('OnlineActionHandler', '_health_check'): HealthCheckRequest.FromString, ('OnlineActionHandler', '_remote_execute'): OnlineActionRequest.FromString, ('OnlineActionHandler', '_remote_reload'): ReloadRequest.FromString, } response_serializers = { ('OnlineActionHandler', '_health_check'): HealthCheckResponse.SerializeToString, ('OnlineActionHandler', '_remote_execute'): OnlineActionResponse.SerializeToString, ('OnlineActionHandler', '_remote_reload'): ReloadResponse.SerializeToString, } method_implementations = { ('OnlineActionHandler', '_health_check'): face_utilities.unary_unary_inline(servicer._health_check), ('OnlineActionHandler', '_remote_execute'): face_utilities.unary_unary_inline(servicer._remote_execute), ('OnlineActionHandler', '_remote_reload'): face_utilities.unary_unary_inline(servicer._remote_reload), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #23
Source File: actions_pb2.py From marvin-python-toolbox with Apache License 2.0 | 6 votes |
def beta_create_BatchActionHandler_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('BatchActionHandler', '_health_check'): HealthCheckRequest.FromString, ('BatchActionHandler', '_remote_execute'): BatchActionRequest.FromString, ('BatchActionHandler', '_remote_reload'): ReloadRequest.FromString, } response_serializers = { ('BatchActionHandler', '_health_check'): HealthCheckResponse.SerializeToString, ('BatchActionHandler', '_remote_execute'): BatchActionResponse.SerializeToString, ('BatchActionHandler', '_remote_reload'): ReloadResponse.SerializeToString, } method_implementations = { ('BatchActionHandler', '_health_check'): face_utilities.unary_unary_inline(servicer._health_check), ('BatchActionHandler', '_remote_execute'): face_utilities.unary_unary_inline(servicer._remote_execute), ('BatchActionHandler', '_remote_reload'): face_utilities.unary_unary_inline(servicer._remote_reload), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #24
Source File: model_service_pb2.py From Gather-Deployment with MIT License | 6 votes |
def beta_create_ModelService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('tensorflow.serving.ModelService', 'GetModelStatus'): tensorflow__serving_dot_apis_dot_get__model__status__pb2.GetModelStatusRequest.FromString, } response_serializers = { ('tensorflow.serving.ModelService', 'GetModelStatus'): tensorflow__serving_dot_apis_dot_get__model__status__pb2.GetModelStatusResponse.SerializeToString, } method_implementations = { ('tensorflow.serving.ModelService', 'GetModelStatus'): face_utilities.unary_unary_inline(servicer.GetModelStatus), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #25
Source File: prediction_service_pb2.py From cloud-ml-sdk with Apache License 2.0 | 5 votes |
def beta_create_PredictionService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None): request_deserializers = { ('tensorflow.serving.PredictionService', 'Predict'): predict__pb2.PredictRequest.FromString, } response_serializers = { ('tensorflow.serving.PredictionService', 'Predict'): predict__pb2.PredictResponse.SerializeToString, } method_implementations = { ('tensorflow.serving.PredictionService', 'Predict'): face_utilities.unary_unary_inline(servicer.Predict), } server_options = beta_implementations.server_options( request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server( method_implementations, options=server_options)
Example #26
Source File: prediction_service_pb2.py From Machine-Learning-with-TensorFlow-1.x with MIT License | 5 votes |
def beta_create_PredictionService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('tensorflow.serving.PredictionService', 'Classify'): tensorflow__serving_dot_apis_dot_classification__pb2.ClassificationRequest.FromString, ('tensorflow.serving.PredictionService', 'GetModelMetadata'): tensorflow__serving_dot_apis_dot_get__model__metadata__pb2.GetModelMetadataRequest.FromString, ('tensorflow.serving.PredictionService', 'Predict'): tensorflow__serving_dot_apis_dot_predict__pb2.PredictRequest.FromString, ('tensorflow.serving.PredictionService', 'Regress'): tensorflow__serving_dot_apis_dot_regression__pb2.RegressionRequest.FromString, } response_serializers = { ('tensorflow.serving.PredictionService', 'Classify'): tensorflow__serving_dot_apis_dot_classification__pb2.ClassificationResponse.SerializeToString, ('tensorflow.serving.PredictionService', 'GetModelMetadata'): tensorflow__serving_dot_apis_dot_get__model__metadata__pb2.GetModelMetadataResponse.SerializeToString, ('tensorflow.serving.PredictionService', 'Predict'): tensorflow__serving_dot_apis_dot_predict__pb2.PredictResponse.SerializeToString, ('tensorflow.serving.PredictionService', 'Regress'): tensorflow__serving_dot_apis_dot_regression__pb2.RegressionResponse.SerializeToString, } method_implementations = { ('tensorflow.serving.PredictionService', 'Classify'): face_utilities.unary_unary_inline(servicer.Classify), ('tensorflow.serving.PredictionService', 'GetModelMetadata'): face_utilities.unary_unary_inline(servicer.GetModelMetadata), ('tensorflow.serving.PredictionService', 'Predict'): face_utilities.unary_unary_inline(servicer.Predict), ('tensorflow.serving.PredictionService', 'Regress'): face_utilities.unary_unary_inline(servicer.Regress), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #27
Source File: router_pb2.py From python-app-sdk with MIT License | 5 votes |
def beta_create_Router_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('router.Router', 'Activate'): DeviceActivationRequest.FromString, ('router.Router', 'GatewayStatus'): github__com_dot_TheThingsNetwork_dot_api_dot_gateway_dot_gateway__pb2.Status.FromString, ('router.Router', 'Subscribe'): SubscribeRequest.FromString, ('router.Router', 'Uplink'): UplinkMessage.FromString, } response_serializers = { ('router.Router', 'Activate'): DeviceActivationResponse.SerializeToString, ('router.Router', 'GatewayStatus'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ('router.Router', 'Subscribe'): DownlinkMessage.SerializeToString, ('router.Router', 'Uplink'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, } method_implementations = { ('router.Router', 'Activate'): face_utilities.unary_unary_inline(servicer.Activate), ('router.Router', 'GatewayStatus'): face_utilities.stream_unary_inline(servicer.GatewayStatus), ('router.Router', 'Subscribe'): face_utilities.unary_stream_inline(servicer.Subscribe), ('router.Router', 'Uplink'): face_utilities.stream_unary_inline(servicer.Uplink), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #28
Source File: broker_pb2.py From python-app-sdk with MIT License | 5 votes |
def beta_create_Broker_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('broker.Broker', 'Activate'): DeviceActivationRequest.FromString, ('broker.Broker', 'Associate'): UplinkMessage.FromString, ('broker.Broker', 'Publish'): DownlinkMessage.FromString, ('broker.Broker', 'Subscribe'): SubscribeRequest.FromString, } response_serializers = { ('broker.Broker', 'Activate'): DeviceActivationResponse.SerializeToString, ('broker.Broker', 'Associate'): DownlinkMessage.SerializeToString, ('broker.Broker', 'Publish'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ('broker.Broker', 'Subscribe'): DeduplicatedUplinkMessage.SerializeToString, } method_implementations = { ('broker.Broker', 'Activate'): face_utilities.unary_unary_inline(servicer.Activate), ('broker.Broker', 'Associate'): face_utilities.stream_stream_inline(servicer.Associate), ('broker.Broker', 'Publish'): face_utilities.stream_unary_inline(servicer.Publish), ('broker.Broker', 'Subscribe'): face_utilities.unary_stream_inline(servicer.Subscribe), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #29
Source File: hetr_pb2.py From ngraph-python with Apache License 2.0 | 5 votes |
def beta_create_Hetr_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('Hetr', 'BuildTransformer'): BuildTransformerRequest.FromString, ('Hetr', 'Close'): CloseRequest.FromString, ('Hetr', 'CloseTransformer'): CloseTransformerRequest.FromString, ('Hetr', 'Computation'): ComputationRequest.FromString, ('Hetr', 'FeedInput'): FeedInputRequest.FromString, ('Hetr', 'GetResults'): GetResultsRequest.FromString, } response_serializers = { ('Hetr', 'BuildTransformer'): BuildTransformerReply.SerializeToString, ('Hetr', 'Close'): CloseReply.SerializeToString, ('Hetr', 'CloseTransformer'): CloseTransformerReply.SerializeToString, ('Hetr', 'Computation'): ComputationReply.SerializeToString, ('Hetr', 'FeedInput'): FeedInputReply.SerializeToString, ('Hetr', 'GetResults'): GetResultsReply.SerializeToString, } method_implementations = { ('Hetr', 'BuildTransformer'): face_utilities.unary_unary_inline(servicer.BuildTransformer), ('Hetr', 'Close'): face_utilities.unary_unary_inline(servicer.Close), ('Hetr', 'CloseTransformer'): face_utilities.unary_unary_inline(servicer.CloseTransformer), ('Hetr', 'Computation'): face_utilities.stream_unary_inline(servicer.Computation), ('Hetr', 'FeedInput'): face_utilities.unary_unary_inline(servicer.FeedInput), ('Hetr', 'GetResults'): face_utilities.unary_unary_inline(servicer.GetResults), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)
Example #30
Source File: discovery_pb2.py From python-app-sdk with MIT License | 5 votes |
def beta_create_Discovery_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=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_deserializers = { ('discovery.Discovery', 'AddMetadata'): MetadataRequest.FromString, ('discovery.Discovery', 'Announce'): Announcement.FromString, ('discovery.Discovery', 'DeleteMetadata'): MetadataRequest.FromString, ('discovery.Discovery', 'Get'): GetRequest.FromString, ('discovery.Discovery', 'GetAll'): GetServiceRequest.FromString, ('discovery.Discovery', 'GetByAppEUI'): GetByAppEUIRequest.FromString, ('discovery.Discovery', 'GetByAppID'): GetByAppIDRequest.FromString, ('discovery.Discovery', 'GetByGatewayID'): GetByGatewayIDRequest.FromString, } response_serializers = { ('discovery.Discovery', 'AddMetadata'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ('discovery.Discovery', 'Announce'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ('discovery.Discovery', 'DeleteMetadata'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ('discovery.Discovery', 'Get'): Announcement.SerializeToString, ('discovery.Discovery', 'GetAll'): AnnouncementsResponse.SerializeToString, ('discovery.Discovery', 'GetByAppEUI'): Announcement.SerializeToString, ('discovery.Discovery', 'GetByAppID'): Announcement.SerializeToString, ('discovery.Discovery', 'GetByGatewayID'): Announcement.SerializeToString, } method_implementations = { ('discovery.Discovery', 'AddMetadata'): face_utilities.unary_unary_inline(servicer.AddMetadata), ('discovery.Discovery', 'Announce'): face_utilities.unary_unary_inline(servicer.Announce), ('discovery.Discovery', 'DeleteMetadata'): face_utilities.unary_unary_inline(servicer.DeleteMetadata), ('discovery.Discovery', 'Get'): face_utilities.unary_unary_inline(servicer.Get), ('discovery.Discovery', 'GetAll'): face_utilities.unary_unary_inline(servicer.GetAll), ('discovery.Discovery', 'GetByAppEUI'): face_utilities.unary_unary_inline(servicer.GetByAppEUI), ('discovery.Discovery', 'GetByAppID'): face_utilities.unary_unary_inline(servicer.GetByAppID), ('discovery.Discovery', 'GetByGatewayID'): face_utilities.unary_unary_inline(servicer.GetByGatewayID), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options)