def encode_request(name, expected, updated):
    client_message = ClientMessage(payload_size=calculate_size(name, expected, updated))
    client_message.set_message_type(REQUEST_TYPE)
    client_message.set_retryable(RETRYABLE)
    client_message.append_str(name)
    client_message.append_bool(expected is None)
    if expected is not None:
        client_message.append_data(expected)
    client_message.append_bool(updated is None)
    if updated is not None:
        client_message.append_data(updated)
    client_message.update_frame_length()
    return client_message
Get or set the beginning of the event.
dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/protocol/codec/atomic_reference_compare_and_set_codec.py/encode_request--crossover with--dataset/ETHPy150Open C4ptainCrunch/ics.py/ics/event.py/Event.begin