def encode_request(local_only):
    client_message = ClientMessage(payload_size=calculate_size(local_only))
    client_message.set_message_type(REQUEST_TYPE)
    client_message.set_retryable(RETRYABLE)
    client_message.append_bool(local_only)
    client_message.update_frame_length()
    return client_message
Encode request into client_message
dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/protocol/codec/client_add_partition_lost_listener_codec.py/encode_request