async def _fbthrift__handler_retrieve_binary( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types._fbthrift_SimpleService_retrieve_binary_args, args, protocol) value = await self.retrieve_binary(args_struct.something, ) return_struct = module.thrift_types._fbthrift_SimpleService_retrieve_binary_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_contain_enum( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types._fbthrift_SimpleService_contain_enum_args, args, protocol) value = await self.contain_enum(args_struct.the_enum, ) return_struct = module.thrift_types._fbthrift_SimpleService_contain_enum_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_get_keys( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types._fbthrift_SimpleService_get_keys_args, args, protocol) value = await self.get_keys(args_struct.string_map, ) return_struct = module.thrift_types._fbthrift_SimpleService_get_keys_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_lookup_double( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types._fbthrift_SimpleService_lookup_double_args, args, protocol) value = await self.lookup_double(args_struct.key, ) return_struct = module.thrift_types._fbthrift_SimpleService_lookup_double_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_nested_map_argument( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types. _fbthrift_SimpleService_nested_map_argument_args, args, protocol) value = await self.nested_map_argument(args_struct.struct_map, ) return_struct = module.thrift_types._fbthrift_SimpleService_nested_map_argument_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_make_sentence( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types._fbthrift_SimpleService_make_sentence_args, args, protocol) value = await self.make_sentence(args_struct.word_chars, ) return_struct = module.thrift_types._fbthrift_SimpleService_make_sentence_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_repeat_name( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types._fbthrift_SimpleService_repeat_name_args, args, protocol) value = await self.repeat_name(args_struct.counter, ) return_struct = module.thrift_types._fbthrift_SimpleService_repeat_name_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_list_of_sets( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types._fbthrift_SimpleService_list_of_sets_args, args, protocol) value = await self.list_of_sets(args_struct.some_words, ) return_struct = module.thrift_types._fbthrift_SimpleService_list_of_sets_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_map_length( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types._fbthrift_SimpleService_map_length_args, args, protocol) value = await self.map_length(args_struct.items, ) return_struct = module.thrift_types._fbthrift_SimpleService_map_length_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_sum_set( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types._fbthrift_SimpleService_sum_set_args, args, protocol) value = await self.sum_set(args_struct.numbers, ) return_struct = module.thrift_types._fbthrift_SimpleService_sum_set_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_unexpected_exception( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types. _fbthrift_SimpleService_unexpected_exception_args, args, protocol) value = await self.unexpected_exception() return_struct = module.thrift_types._fbthrift_SimpleService_unexpected_exception_result( success=value) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_do_nothing( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types._fbthrift_SimpleService_do_nothing_args, args, protocol) value = await self.do_nothing() return_struct = module.thrift_types._fbthrift_SimpleService_do_nothing_result( ) return serialize_iobuf(return_struct, protocol)
async def _fbthrift__handler_expected_exception( self, args: _fbthrift_iobuf.IOBuf, protocol: Protocol) -> _fbthrift_iobuf.IOBuf: args_struct = deserialize( module.thrift_types. _fbthrift_SimpleService_expected_exception_args, args, protocol) try: value = await self.expected_exception() return_struct = module.thrift_types._fbthrift_SimpleService_expected_exception_result( ) except module.thrift_types.SimpleException as e: return_struct = module.thrift_types._fbthrift_SimpleService_expected_exception_result( se=e) buf = serialize_iobuf(return_struct, protocol) exp = PythonUserException('SimpleException', str(e), buf) raise exp return serialize_iobuf(return_struct, protocol)