def calculate_size(credentials, uuid, owner_uuid, is_owner_connection, client_type, serialization_version, client_hazelcast_version):
data_size = <NUM_LIT:0><EOL>data_size += calculate_size_data(credentials)<EOL>data_size += BOOLEAN_SIZE_IN_BYTES<EOL>if uuid is not None:<EOL><INDENT>data_size += calculate_size_str(uuid)<EOL><DEDENT>data_size += BOOLEAN_SIZE_IN_BYTES<EOL>if owner_uuid is not None:<EOL><INDENT>data_size += calculate_size_str(owner_uuid)<EOL><DEDENT>data_size += BOOLEAN_SIZE_IN_BYTES<EOL>data_size += calculate_size_str(client_type)<EOL>data_size += BYTE_SIZE_IN_BYTES<EOL>data_size += calculate_size_str(client_hazelcast_version)<EOL>return data_size<EOL>
Calculates the request payload size