def set_field(java_object, field_name, value):
 command_part = get_command_part(value, java_object._gateway_client.gateway_property.pool)
 command = ((((((((proto.FIELD_COMMAND_NAME + proto.FIELD_SET_SUBCOMMAND_NAME) + java_object._target_id) + u'\n') + field_name) + u'\n') + command_part) + u'\n') + proto.END_COMMAND_PART)
 answer = java_object._gateway_client.send_command(command)
 if ((answer == proto.NO_MEMBER_COMMAND) or is_error(answer)[0]):
  raise Py4JError(u'no field {0} in object {1}'.format(field_name, java_object._target_id))
 return get_return_value(answer, java_object._gateway_client, java_object._target_id, field_name)

def set_field ( java_object , field_name , value ) : command_part = get_command_part ( value , java_object . _gateway_client . gateway_property . pool ) command = ( ( ( ( ( ( ( ( proto . FIELD_COMMAND_NAME + proto . FIELD_SET_SUBCOMMAND_NAME ) + java_object . _target_id ) + u'\n' ) + field_name ) + u'\n' ) + command_part ) + u'\n' ) + proto . END_COMMAND_PART ) answer = java_object . _gateway_client . send_command ( command ) if ( ( answer == proto . NO_MEMBER_COMMAND ) or is_error ( answer ) [ 0 ] ) : raise Py4JError ( u'no field {0} in object {1}' . format ( field_name , java_object . _target_id ) ) return get_return_value ( answer , java_object . _gateway_client , java_object . _target_id , field_name )
sets the field named field_name of java_object to value .